[chenxing:mstar_v6_5_reorder 558/700] include/linux/mod_devicetable.h:285:28: error: 'CONFIG_OF_COMPATIBLE_MAX_LEN' undeclared here (not in a function)
kernel test robot <[email protected]> Wed, 29 Jul 2026 16:50:56 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/linux-chenxing/linux.git mstar_v6_5_reorder head: 1a5c60e65ea399670a5384b869c4958338af2799 commit: b7d5076da46c7e185995d14f63385bc05766ff08 [558/700] of: Allow the user to override the maximum length of compatible strings config: alpha-allnoconfig (https://download.01.org/0day-ci/archive/20260729/[email protected]/config) compiler: alpha-linux-gcc (GCC) 16.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260729/[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 errors (new ones prefixed by >>): In file included from scripts/mod/devicetable-offsets.c:3: >> include/linux/mod_devicetable.h:285:28: error: 'CONFIG_OF_COMPATIBLE_MAX_LEN' undeclared here (not in a function) 285 | char compatible[CONFIG_OF_COMPATIBLE_MAX_LEN]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [scripts/Makefile.build:116: scripts/mod/devicetable-offsets.s] Error 1 make[3]: Target 'scripts/mod/' not remade because of errors. make[2]: *** [Makefile:1286: prepare0] Error 2 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:234: __sub-make] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:234: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +/CONFIG_OF_COMPATIBLE_MAX_LEN +285 include/linux/mod_devicetable.h 278 279 /* 280 * Struct used for matching a device 281 */ 282 struct of_device_id { 283 char name[32]; 284 char type[32]; > 285 char compatible[CONFIG_OF_COMPATIBLE_MAX_LEN]; 286 const void *data; 287 }; 288 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki