Hi Ville, kernel test robot noticed the following build warnings:
[auto build test WARNING on drm-tip/drm-tip] [cannot apply to drm-i915/for-linux-next drm-i915/for-linux-next-fixes linus/master v6.18 next-20251208] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Ville-Syrjala/drm-i915-vga-Register-vgaarb-client-later/20251209-030730 base: https://gitlab.freedesktop.org/drm/tip.git drm-tip patch link: https://lore.kernel.org/r/20251208182637.334-15-ville.syrjala%40linux.intel.com patch subject: [PATCH 14/19] video/vga: Add VGA_IS0_R config: i386-randconfig-141-20251209 (https://download.01.org/0day-ci/archive/20251209/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251209/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/tiny/bochs.c:29: include/video/vga.h:489:1: error: expected identifier or '(' before '?' token 489 | ? | ^ In file included from include/linux/module.h:23, from drivers/gpu/drm/tiny/bochs.c:5: drivers/gpu/drm/tiny/bochs.c: In function '__check_modeset': drivers/gpu/drm/tiny/bochs.c:66:29: error: 'bochs_modeset' undeclared (first use in this function) 66 | module_param_named(modeset, bochs_modeset, int, 0444); | ^~~~~~~~~~~~~ include/linux/moduleparam.h:430:75: note: in definition of macro '__param_check' 430 | static inline type __always_unused *__check_##name(void) { return(p); } | ^ include/linux/moduleparam.h:155:9: note: in expansion of macro 'param_check_int' 155 | param_check_##type(name, &(value)); \ | ^~~~~~~~~~~~ drivers/gpu/drm/tiny/bochs.c:66:1: note: in expansion of macro 'module_param_named' 66 | module_param_named(modeset, bochs_modeset, int, 0444); | ^~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tiny/bochs.c:66:29: note: each undeclared identifier is reported only once for each function it appears in 66 | module_param_named(modeset, bochs_modeset, int, 0444); | ^~~~~~~~~~~~~ include/linux/moduleparam.h:430:75: note: in definition of macro '__param_check' 430 | static inline type __always_unused *__check_##name(void) { return(p); } | ^ include/linux/moduleparam.h:155:9: note: in expansion of macro 'param_check_int' 155 | param_check_##type(name, &(value)); \ | ^~~~~~~~~~~~ drivers/gpu/drm/tiny/bochs.c:66:1: note: in expansion of macro 'module_param_named' 66 | module_param_named(modeset, bochs_modeset, int, 0444); | ^~~~~~~~~~~~~~~~~~ drivers/gpu/drm/tiny/bochs.c: At top level: drivers/gpu/drm/tiny/bochs.c:66:29: error: 'bochs_modeset' undeclared here (not in a function) 66 | module_param_named(modeset, bochs_modeset, int, 0444); | ^~~~~~~~~~~~~ include/linux/moduleparam.h:298:61: note: in definition of macro '__module_param_call' 298 | VERIFY_OCTAL_PERMISSIONS(perm), level, flags, { arg } } | ^~~ include/linux/moduleparam.h:156:9: note: in expansion of macro 'module_param_cb' 156 | module_param_cb(name, ¶m_ops_##type, &value, perm); \ | ^~~~~~~~~~~~~~~ drivers/gpu/drm/tiny/bochs.c:66:1: note: in expansion of macro 'module_param_named' 66 | module_param_named(modeset, bochs_modeset, int, 0444); | ^~~~~~~~~~~~~~~~~~ In file included from include/linux/device.h:32, from include/linux/pci.h:37, from drivers/gpu/drm/tiny/bochs.c:6: drivers/gpu/drm/tiny/bochs.c: In function 'bochs_pci_driver_init': >> include/linux/device/driver.h:261:1: warning: control reaches end of >> non-void function [-Wreturn-type] 261 | } \ | ^ include/drm/drm_module.h:93:9: note: in expansion of macro 'module_driver' 93 | module_driver(__pci_drv, drm_pci_register_driver_if_modeset, \ | ^~~~~~~~~~~~~ drivers/gpu/drm/tiny/bochs.c:835:1: note: in expansion of macro 'drm_module_pci_driver_if_modeset' 835 | drm_module_pci_driver_if_modeset(bochs_pci_driver, bochs_modeset); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +261 include/linux/device/driver.h 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 242 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 243 /** 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 244 * module_driver() - Helper macro for drivers that don't do anything 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 245 * special in module init/exit. This eliminates a lot of boilerplate. 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 246 * Each module may only use this macro once, and calling it replaces 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 247 * module_init() and module_exit(). 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 248 * 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 249 * @__driver: driver name 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 250 * @__register: register function for this driver type 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 251 * @__unregister: unregister function for this driver type 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 252 * @...: Additional arguments to be passed to __register and __unregister. 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 253 * 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 254 * Use this macro to construct bus specific macros for registering 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 255 * drivers, and do not use it on its own. 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 256 */ 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 257 #define module_driver(__driver, __register, __unregister, ...) \ 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 258 static int __init __driver##_init(void) \ 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 259 { \ 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 260 return __register(&(__driver) , ##__VA_ARGS__); \ 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 @261 } \ 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 262 module_init(__driver##_init); \ 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 263 static void __exit __driver##_exit(void) \ 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 264 { \ 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 265 __unregister(&(__driver) , ##__VA_ARGS__); \ 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 266 } \ 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 267 module_exit(__driver##_exit); 4c002c978b7f2f Greg Kroah-Hartman 2019-12-09 268 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
