[radeon-alex:amd-staging-drm-next 4/7] drivers/staging/vboxvideo/vbox_ttm.c:218:33: sparse: not enough arguments for function ttm_pool_populate

kbuild test robot fengguang.wu at intel.com
Wed Dec 27 18:02:02 UTC 2017


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   4a3734b36305f90b13299d49ebc827a4d7e3b24f
commit: eb86c985cf747ce7fb59a521f7e94fc4a51852ba [4/7] drm/ttm: use an operation ctx for ttm_tt_populate in ttm_bo_driver
reproduce:
        # apt-get install sparse
        git checkout eb86c985cf747ce7fb59a521f7e94fc4a51852ba
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)


vim +218 drivers/staging/vboxvideo/vbox_ttm.c

dd55d44f4 Hans de Goede  2017-07-06  215  
dd55d44f4 Hans de Goede  2017-07-06  216  static int vbox_ttm_tt_populate(struct ttm_tt *ttm)
dd55d44f4 Hans de Goede  2017-07-06  217  {
dd55d44f4 Hans de Goede  2017-07-06 @218  	return ttm_pool_populate(ttm);
dd55d44f4 Hans de Goede  2017-07-06  219  }
dd55d44f4 Hans de Goede  2017-07-06  220  
dd55d44f4 Hans de Goede  2017-07-06  221  static void vbox_ttm_tt_unpopulate(struct ttm_tt *ttm)
dd55d44f4 Hans de Goede  2017-07-06  222  {
dd55d44f4 Hans de Goede  2017-07-06  223  	ttm_pool_unpopulate(ttm);
dd55d44f4 Hans de Goede  2017-07-06  224  }
dd55d44f4 Hans de Goede  2017-07-06  225  
cb67fa13c Colin Ian King 2017-07-19  226  static struct ttm_bo_driver vbox_bo_driver = {
dd55d44f4 Hans de Goede  2017-07-06  227  	.ttm_tt_create = vbox_ttm_tt_create,
dd55d44f4 Hans de Goede  2017-07-06 @228  	.ttm_tt_populate = vbox_ttm_tt_populate,
dd55d44f4 Hans de Goede  2017-07-06  229  	.ttm_tt_unpopulate = vbox_ttm_tt_unpopulate,
dd55d44f4 Hans de Goede  2017-07-06  230  	.init_mem_type = vbox_bo_init_mem_type,
dd55d44f4 Hans de Goede  2017-07-06  231  	.eviction_valuable = ttm_bo_eviction_valuable,
dd55d44f4 Hans de Goede  2017-07-06  232  	.evict_flags = vbox_bo_evict_flags,
dd55d44f4 Hans de Goede  2017-07-06  233  	.verify_access = vbox_bo_verify_access,
dd55d44f4 Hans de Goede  2017-07-06  234  	.io_mem_reserve = &vbox_ttm_io_mem_reserve,
dd55d44f4 Hans de Goede  2017-07-06  235  	.io_mem_free = &vbox_ttm_io_mem_free,
dd55d44f4 Hans de Goede  2017-07-06  236  	.io_mem_pfn = ttm_bo_default_io_mem_pfn,
dd55d44f4 Hans de Goede  2017-07-06  237  };
dd55d44f4 Hans de Goede  2017-07-06  238  

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

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

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


More information about the dri-devel mailing list