[radeon-alex:amd-staging-drm-next 3/3] drivers/staging/vboxvideo/vbox_ttm.c:204:9: error: undefined identifier 'vbox_ttm_global_release'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   4cab470e01108ad0a7a74c6a30d83e7e8e60aa9e
commit: 4cab470e01108ad0a7a74c6a30d83e7e8e60aa9e [3/3] drm/amdgpu/amdkfd: clean up mmhub and gfxhub includes
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 4cab470e01108ad0a7a74c6a30d83e7e8e60aa9e
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> drivers/staging/vboxvideo/vbox_ttm.c:204:9: error: undefined identifier 'vbox_ttm_global_release'
   drivers/staging/vboxvideo/vbox_ttm.c:218:9: error: undefined identifier 'vbox_ttm_global_release'
   In file included from drivers/staging/vboxvideo/vbox_ttm.c:30:0:
   drivers/staging/vboxvideo/vbox_drv.h:98:28: error: field 'bo_global_ref' has incomplete type
      struct ttm_bo_global_ref bo_global_ref;
                               ^~~~~~~~~~~~~
   drivers/staging/vboxvideo/vbox_ttm.c: In function 'vbox_mm_init':
   drivers/staging/vboxvideo/vbox_ttm.c:204:2: error: implicit declaration of function 'vbox_ttm_global_release'; did you mean 'ttm_mem_global_release'? [-Werror=implicit-function-declaration]
     vbox_ttm_global_release(vbox);
     ^~~~~~~~~~~~~~~~~~~~~~~
     ttm_mem_global_release
   cc1: some warnings being treated as errors
--
>> drivers/gpu/drm/v3d/v3d_sched.c:221:29: error: too many arguments for function drm_sched_init
   drivers/gpu/drm/v3d/v3d_sched.c: In function 'v3d_sched_init':
   drivers/gpu/drm/v3d/v3d_sched.c:221:8: error: too many arguments to function 'drm_sched_init'
     ret = drm_sched_init(&v3d->queue[V3D_RENDER].sched,
           ^~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/v3d/v3d_drv.h:9:0,
                    from drivers/gpu/drm/v3d/v3d_sched.c:23:
   include/drm/gpu_scheduler.h:290:5: note: declared here
    int drm_sched_init(struct drm_gpu_scheduler *sched,
        ^~~~~~~~~~~~~~

vim +/vbox_ttm_global_release +204 drivers/staging/vboxvideo/vbox_ttm.c

dd55d44f Hans de Goede 2017-07-06  168  
dd55d44f Hans de Goede 2017-07-06  169  int vbox_mm_init(struct vbox_private *vbox)
dd55d44f Hans de Goede 2017-07-06  170  {
dd55d44f Hans de Goede 2017-07-06  171  	int ret;
dd55d44f Hans de Goede 2017-07-06  172  	struct drm_device *dev = vbox->dev;
dd55d44f Hans de Goede 2017-07-06  173  	struct ttm_bo_device *bdev = &vbox->ttm.bdev;
dd55d44f Hans de Goede 2017-07-06  174  
dd55d44f Hans de Goede 2017-07-06  175  	ret = ttm_bo_device_init(&vbox->ttm.bdev,
dd55d44f Hans de Goede 2017-07-06  176  				 &vbox_bo_driver,
dd55d44f Hans de Goede 2017-07-06  177  				 dev->anon_inode->i_mapping,
dd55d44f Hans de Goede 2017-07-06  178  				 DRM_FILE_PAGE_OFFSET, true);
dd55d44f Hans de Goede 2017-07-06  179  	if (ret) {
dd55d44f Hans de Goede 2017-07-06  180  		DRM_ERROR("Error initialising bo driver; %d\n", ret);
dd55d44f Hans de Goede 2017-07-06  181  		goto err_ttm_global_release;
dd55d44f Hans de Goede 2017-07-06  182  	}
dd55d44f Hans de Goede 2017-07-06  183  
dd55d44f Hans de Goede 2017-07-06  184  	ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM,
dd55d44f Hans de Goede 2017-07-06  185  			     vbox->available_vram_size >> PAGE_SHIFT);
dd55d44f Hans de Goede 2017-07-06  186  	if (ret) {
dd55d44f Hans de Goede 2017-07-06  187  		DRM_ERROR("Failed ttm VRAM init: %d\n", ret);
dd55d44f Hans de Goede 2017-07-06  188  		goto err_device_release;
dd55d44f Hans de Goede 2017-07-06  189  	}
dd55d44f Hans de Goede 2017-07-06  190  
dd55d44f Hans de Goede 2017-07-06  191  #ifdef DRM_MTRR_WC
dd55d44f Hans de Goede 2017-07-06  192  	vbox->fb_mtrr = drm_mtrr_add(pci_resource_start(dev->pdev, 0),
dd55d44f Hans de Goede 2017-07-06  193  				     pci_resource_len(dev->pdev, 0),
dd55d44f Hans de Goede 2017-07-06  194  				     DRM_MTRR_WC);
dd55d44f Hans de Goede 2017-07-06  195  #else
dd55d44f Hans de Goede 2017-07-06  196  	vbox->fb_mtrr = arch_phys_wc_add(pci_resource_start(dev->pdev, 0),
dd55d44f Hans de Goede 2017-07-06  197  					 pci_resource_len(dev->pdev, 0));
dd55d44f Hans de Goede 2017-07-06  198  #endif
dd55d44f Hans de Goede 2017-07-06  199  	return 0;
dd55d44f Hans de Goede 2017-07-06  200  
dd55d44f Hans de Goede 2017-07-06  201  err_device_release:
dd55d44f Hans de Goede 2017-07-06  202  	ttm_bo_device_release(&vbox->ttm.bdev);
dd55d44f Hans de Goede 2017-07-06  203  err_ttm_global_release:
dd55d44f Hans de Goede 2017-07-06 @204  	vbox_ttm_global_release(vbox);
dd55d44f Hans de Goede 2017-07-06  205  	return ret;
dd55d44f Hans de Goede 2017-07-06  206  }
dd55d44f Hans de Goede 2017-07-06  207  

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

:::::: TO: Hans de Goede <hdegoede@xxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip

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

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux