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 config: i386-allmodconfig (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: git checkout eb86c985cf747ce7fb59a521f7e94fc4a51852ba # save the attached .config to linux build tree make ARCH=i386 All error/warnings (new ones prefixed by >>): drivers/staging/vboxvideo/vbox_ttm.c: In function 'vbox_ttm_tt_populate': >> drivers/staging/vboxvideo/vbox_ttm.c:218:9: error: too few arguments to function 'ttm_pool_populate' return ttm_pool_populate(ttm); ^~~~~~~~~~~~~~~~~ In file included from drivers/staging/vboxvideo/vbox_ttm.c:31:0: include/drm/ttm/ttm_page_alloc.h:50:5: note: declared here int ttm_pool_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx); ^~~~~~~~~~~~~~~~~ drivers/staging/vboxvideo/vbox_ttm.c: At top level: drivers/staging/vboxvideo/vbox_ttm.c:228:21: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .ttm_tt_populate = vbox_ttm_tt_populate, ^~~~~~~~~~~~~~~~~~~~ drivers/staging/vboxvideo/vbox_ttm.c:228:21: note: (near initialization for 'vbox_bo_driver.ttm_tt_populate') drivers/staging/vboxvideo/vbox_ttm.c: In function 'vbox_ttm_tt_populate': >> drivers/staging/vboxvideo/vbox_ttm.c:219:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cc1: some warnings being treated as errors vim +/ttm_pool_populate +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@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