All of lore.kernel.org
 help / color / mirror / Atom feed
* [radeon-alex:amd-staging-drm-next 413/475] drivers/staging/vboxvideo/vbox_ttm.c:392:8: error: too many arguments to function 'ttm_bo_validate'
@ 2017-11-28  2:38 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-11-28  2:38 UTC (permalink / raw)
  To: Christian König; +Cc: Michel Dänzer, kbuild-all, dri-devel

[-- Attachment #1: Type: text/plain, Size: 4374 bytes --]

tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   f3769c94f4e6a794dbb72601936199d9b258f7b7
commit: f4d284ea58186199a9e2757dd9571d8386172141 [413/475] drm/ttm: add operation ctx to ttm_bo_validate v2
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout f4d284ea58186199a9e2757dd9571d8386172141
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/staging/vboxvideo/vbox_ttm.c: In function 'vbox_bo_pin':
>> drivers/staging/vboxvideo/vbox_ttm.c:392:8: error: too many arguments to function 'ttm_bo_validate'
     ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false);
           ^~~~~~~~~~~~~~~
   In file included from drivers/staging/vboxvideo/vbox_drv.h:43:0,
                    from drivers/staging/vboxvideo/vbox_ttm.c:30:
   include/drm/ttm/ttm_bo_api.h:333:5: note: declared here
    int ttm_bo_validate(struct ttm_buffer_object *bo,
        ^~~~~~~~~~~~~~~
   drivers/staging/vboxvideo/vbox_ttm.c: In function 'vbox_bo_unpin':
   drivers/staging/vboxvideo/vbox_ttm.c:419:8: error: too many arguments to function 'ttm_bo_validate'
     ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false);
           ^~~~~~~~~~~~~~~
   In file included from drivers/staging/vboxvideo/vbox_drv.h:43:0,
                    from drivers/staging/vboxvideo/vbox_ttm.c:30:
   include/drm/ttm/ttm_bo_api.h:333:5: note: declared here
    int ttm_bo_validate(struct ttm_buffer_object *bo,
        ^~~~~~~~~~~~~~~
   drivers/staging/vboxvideo/vbox_ttm.c: In function 'vbox_bo_push_sysram':
   drivers/staging/vboxvideo/vbox_ttm.c:451:8: error: too many arguments to function 'ttm_bo_validate'
     ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false);
           ^~~~~~~~~~~~~~~
   In file included from drivers/staging/vboxvideo/vbox_drv.h:43:0,
                    from drivers/staging/vboxvideo/vbox_ttm.c:30:
   include/drm/ttm/ttm_bo_api.h:333:5: note: declared here
    int ttm_bo_validate(struct ttm_buffer_object *bo,
        ^~~~~~~~~~~~~~~

vim +/ttm_bo_validate +392 drivers/staging/vboxvideo/vbox_ttm.c

dd55d44f4 Hans de Goede 2017-07-06  374  
dd55d44f4 Hans de Goede 2017-07-06  375  int vbox_bo_pin(struct vbox_bo *bo, u32 pl_flag, u64 *gpu_addr)
dd55d44f4 Hans de Goede 2017-07-06  376  {
dd55d44f4 Hans de Goede 2017-07-06  377  	int i, ret;
dd55d44f4 Hans de Goede 2017-07-06  378  
dd55d44f4 Hans de Goede 2017-07-06  379  	if (bo->pin_count) {
dd55d44f4 Hans de Goede 2017-07-06  380  		bo->pin_count++;
dd55d44f4 Hans de Goede 2017-07-06  381  		if (gpu_addr)
dd55d44f4 Hans de Goede 2017-07-06  382  			*gpu_addr = vbox_bo_gpu_offset(bo);
dd55d44f4 Hans de Goede 2017-07-06  383  
dd55d44f4 Hans de Goede 2017-07-06  384  		return 0;
dd55d44f4 Hans de Goede 2017-07-06  385  	}
dd55d44f4 Hans de Goede 2017-07-06  386  
dd55d44f4 Hans de Goede 2017-07-06  387  	vbox_ttm_placement(bo, pl_flag);
dd55d44f4 Hans de Goede 2017-07-06  388  
dd55d44f4 Hans de Goede 2017-07-06  389  	for (i = 0; i < bo->placement.num_placement; i++)
dd55d44f4 Hans de Goede 2017-07-06  390  		bo->placements[i].flags |= TTM_PL_FLAG_NO_EVICT;
dd55d44f4 Hans de Goede 2017-07-06  391  
dd55d44f4 Hans de Goede 2017-07-06 @392  	ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false);
dd55d44f4 Hans de Goede 2017-07-06  393  	if (ret)
dd55d44f4 Hans de Goede 2017-07-06  394  		return ret;
dd55d44f4 Hans de Goede 2017-07-06  395  
dd55d44f4 Hans de Goede 2017-07-06  396  	bo->pin_count = 1;
dd55d44f4 Hans de Goede 2017-07-06  397  
dd55d44f4 Hans de Goede 2017-07-06  398  	if (gpu_addr)
dd55d44f4 Hans de Goede 2017-07-06  399  		*gpu_addr = vbox_bo_gpu_offset(bo);
dd55d44f4 Hans de Goede 2017-07-06  400  
dd55d44f4 Hans de Goede 2017-07-06  401  	return 0;
dd55d44f4 Hans de Goede 2017-07-06  402  }
dd55d44f4 Hans de Goede 2017-07-06  403  

:::::: The code at line 392 was first introduced by commit
:::::: dd55d44f408419278c00887bfcb2261d0caae350 staging: vboxvideo: Add vboxvideo to drivers/staging

:::::: TO: Hans de Goede <hdegoede@redhat.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 61960 bytes --]

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-28  2:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-28  2:38 [radeon-alex:amd-staging-drm-next 413/475] drivers/staging/vboxvideo/vbox_ttm.c:392:8: error: too many arguments to function 'ttm_bo_validate' kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.