tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup head: d33387c085c2d53e86b2430ddf2861d48b573383 commit: 269c69a016f0c493a9932ea4bbc31bce4d64b059 [2/6] drm: make .debugfs_init and drm_debugfs_create_files() return void config: xtensa-allyesconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 7.5.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 269c69a016f0c493a9932ea4bbc31bce4d64b059 # save the attached .config to linux build tree GCC_VERSION=7.5.0 make.cross ARCH=xtensa If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): drivers/gpu/drm/drm_gem_vram_helper.c: In function 'drm_vram_mm_debugfs_init': >> drivers/gpu/drm/drm_gem_vram_helper.c:1043:6: error: void value not ignored as it ought to be ret = drm_debugfs_create_files(drm_vram_mm_debugfs_list, ^ -- In file included from drivers/gpu/drm/ast/ast_drv.c:35:0: >> include/drm/drm_gem_vram_helper.h:160:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .debugfs_init = drm_vram_mm_debugfs_init, \ ^ drivers/gpu/drm/ast/ast_drv.c:219:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER' DRM_GEM_VRAM_DRIVER ^~~~~~~~~~~~~~~~~~~ include/drm/drm_gem_vram_helper.h:160:30: note: (near initialization for 'driver.debugfs_init') .debugfs_init = drm_vram_mm_debugfs_init, \ ^ drivers/gpu/drm/ast/ast_drv.c:219:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER' DRM_GEM_VRAM_DRIVER ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- In file included from drivers/gpu/drm/bochs/bochs.h:11:0, from drivers/gpu/drm/bochs/bochs_drv.c:11: >> include/drm/drm_gem_vram_helper.h:160:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .debugfs_init = drm_vram_mm_debugfs_init, \ ^ drivers/gpu/drm/bochs/bochs_drv.c:71:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER' DRM_GEM_VRAM_DRIVER, ^~~~~~~~~~~~~~~~~~~ include/drm/drm_gem_vram_helper.h:160:30: note: (near initialization for 'bochs_driver.debugfs_init') .debugfs_init = drm_vram_mm_debugfs_init, \ ^ drivers/gpu/drm/bochs/bochs_drv.c:71:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER' DRM_GEM_VRAM_DRIVER, ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- In file included from drivers/gpu/drm/mgag200/mgag200_drv.h:21:0, from drivers/gpu/drm/mgag200/mgag200_drv.c:18: >> include/drm/drm_gem_vram_helper.h:160:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .debugfs_init = drm_vram_mm_debugfs_init, \ ^ drivers/gpu/drm/mgag200/mgag200_drv.c:74:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER' DRM_GEM_VRAM_DRIVER ^~~~~~~~~~~~~~~~~~~ include/drm/drm_gem_vram_helper.h:160:30: note: (near initialization for 'driver.debugfs_init') .debugfs_init = drm_vram_mm_debugfs_init, \ ^ drivers/gpu/drm/mgag200/mgag200_drv.c:74:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER' DRM_GEM_VRAM_DRIVER ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- In file included from drivers/gpu//drm/ast/ast_drv.c:35:0: >> include/drm/drm_gem_vram_helper.h:160:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .debugfs_init = drm_vram_mm_debugfs_init, \ ^ drivers/gpu//drm/ast/ast_drv.c:219:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER' DRM_GEM_VRAM_DRIVER ^~~~~~~~~~~~~~~~~~~ include/drm/drm_gem_vram_helper.h:160:30: note: (near initialization for 'driver.debugfs_init') .debugfs_init = drm_vram_mm_debugfs_init, \ ^ drivers/gpu//drm/ast/ast_drv.c:219:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER' DRM_GEM_VRAM_DRIVER ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- In file included from drivers/gpu//drm/bochs/bochs.h:11:0, from drivers/gpu//drm/bochs/bochs_drv.c:11: >> include/drm/drm_gem_vram_helper.h:160:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .debugfs_init = drm_vram_mm_debugfs_init, \ ^ drivers/gpu//drm/bochs/bochs_drv.c:71:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER' DRM_GEM_VRAM_DRIVER, ^~~~~~~~~~~~~~~~~~~ include/drm/drm_gem_vram_helper.h:160:30: note: (near initialization for 'bochs_driver.debugfs_init') .debugfs_init = drm_vram_mm_debugfs_init, \ ^ drivers/gpu//drm/bochs/bochs_drv.c:71:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER' DRM_GEM_VRAM_DRIVER, ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- In file included from drivers/gpu//drm/mgag200/mgag200_drv.h:21:0, from drivers/gpu//drm/mgag200/mgag200_drv.c:18: >> include/drm/drm_gem_vram_helper.h:160:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .debugfs_init = drm_vram_mm_debugfs_init, \ ^ drivers/gpu//drm/mgag200/mgag200_drv.c:74:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER' DRM_GEM_VRAM_DRIVER ^~~~~~~~~~~~~~~~~~~ include/drm/drm_gem_vram_helper.h:160:30: note: (near initialization for 'driver.debugfs_init') .debugfs_init = drm_vram_mm_debugfs_init, \ ^ drivers/gpu//drm/mgag200/mgag200_drv.c:74:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER' DRM_GEM_VRAM_DRIVER ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +1043 drivers/gpu/drm/drm_gem_vram_helper.c 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1028 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1029 /** 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1030 * drm_vram_mm_debugfs_init() - Register VRAM MM debugfs file. 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1031 * 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1032 * @minor: drm minor device. 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1033 * 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1034 * Returns: 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1035 * 0 on success, or 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1036 * a negative error code otherwise. 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1037 */ 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1038 int drm_vram_mm_debugfs_init(struct drm_minor *minor) 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1039 { 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1040 int ret = 0; 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1041 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1042 #if defined(CONFIG_DEBUG_FS) 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 @1043 ret = drm_debugfs_create_files(drm_vram_mm_debugfs_list, 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1044 ARRAY_SIZE(drm_vram_mm_debugfs_list), 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1045 minor->debugfs_root, minor); 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1046 #endif 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1047 return ret; 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1048 } 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1049 EXPORT_SYMBOL(drm_vram_mm_debugfs_init); 6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 1050 :::::: The code at line 1043 was first introduced by commit :::::: 6b5ce4a1fb84898d454c0f3c34abc801f86f4145 drm/vram: Move VRAM memory manager to GEM VRAM implementation :::::: TO: Thomas Zimmermann <tzimmermann@xxxxxxx> :::::: CC: Thomas Zimmermann <tzimmermann@xxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel