tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git class_cleanup head: e4156fe7129aa2716f4370f5ba049416d7c3e8c6 commit: 6e30a66433afee90e902ced95d7136e8f7edcc7e [12/107] driver core: class: remove struct module owner out of struct class config: mips-randconfig-c003-20230402 (https://download.01.org/0day-ci/archive/20230402/202304020802.xbRTJKjW-lkp@xxxxxxxxx/config) compiler: mipsel-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=6e30a66433afee90e902ced95d7136e8f7edcc7e git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git git fetch --no-tags driver-core class_cleanup git checkout 6e30a66433afee90e902ced95d7136e8f7edcc7e # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Link: https://lore.kernel.org/oe-kbuild-all/202304020802.xbRTJKjW-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> arch/mips/kernel/vpe-cmp.c:82:10: error: 'struct class' has no member named 'owner' 82 | .owner = THIS_MODULE, | ^~~~~ In file included from include/linux/linkage.h:7, from include/linux/kernel.h:17, from arch/mips/kernel/vpe-cmp.c:9: >> include/linux/export.h:29:21: error: initialization of 'const struct attribute_group **' from incompatible pointer type 'struct module *' [-Werror=incompatible-pointer-types] 29 | #define THIS_MODULE ((struct module *)0) | ^ arch/mips/kernel/vpe-cmp.c:82:18: note: in expansion of macro 'THIS_MODULE' 82 | .owner = THIS_MODULE, | ^~~~~~~~~~~ include/linux/export.h:29:21: note: (near initialization for 'vpe_class.class_groups') 29 | #define THIS_MODULE ((struct module *)0) | ^ arch/mips/kernel/vpe-cmp.c:82:18: note: in expansion of macro 'THIS_MODULE' 82 | .owner = THIS_MODULE, | ^~~~~~~~~~~ cc1: some warnings being treated as errors vim +29 include/linux/export.h d143b9db8069f0 Greg Kroah-Hartman 2022-04-27 6 f50169324df4ad Paul Gortmaker 2011-05-23 7 /* f50169324df4ad Paul Gortmaker 2011-05-23 8 * Export symbols from the kernel to modules. Forked from module.h f50169324df4ad Paul Gortmaker 2011-05-23 9 * to reduce the amount of pointless cruft we feed to gcc when only f50169324df4ad Paul Gortmaker 2011-05-23 10 * exporting a simple symbol or two. f50169324df4ad Paul Gortmaker 2011-05-23 11 * b92021b09df70c Rusty Russell 2013-03-15 12 * Try not to add #includes here. It slows compilation and makes kernel b92021b09df70c Rusty Russell 2013-03-15 13 * hackers place grumpy comments in header files. f50169324df4ad Paul Gortmaker 2011-05-23 14 */ f50169324df4ad Paul Gortmaker 2011-05-23 15 7b4537199a4a84 Masahiro Yamada 2022-05-13 16 /* 7b4537199a4a84 Masahiro Yamada 2022-05-13 17 * This comment block is used by fixdep. Please do not remove. 7b4537199a4a84 Masahiro Yamada 2022-05-13 18 * 7b4537199a4a84 Masahiro Yamada 2022-05-13 19 * When CONFIG_MODVERSIONS is changed from n to y, all source files having 7b4537199a4a84 Masahiro Yamada 2022-05-13 20 * EXPORT_SYMBOL variants must be re-compiled because genksyms is run as a 7b4537199a4a84 Masahiro Yamada 2022-05-13 21 * side effect of the *.o build rule. 7b4537199a4a84 Masahiro Yamada 2022-05-13 22 */ 7b4537199a4a84 Masahiro Yamada 2022-05-13 23 b92021b09df70c Rusty Russell 2013-03-15 24 #ifndef __ASSEMBLY__ f50169324df4ad Paul Gortmaker 2011-05-23 25 #ifdef MODULE f50169324df4ad Paul Gortmaker 2011-05-23 26 extern struct module __this_module; f50169324df4ad Paul Gortmaker 2011-05-23 27 #define THIS_MODULE (&__this_module) f50169324df4ad Paul Gortmaker 2011-05-23 28 #else f50169324df4ad Paul Gortmaker 2011-05-23 @29 #define THIS_MODULE ((struct module *)0) f50169324df4ad Paul Gortmaker 2011-05-23 30 #endif f50169324df4ad Paul Gortmaker 2011-05-23 31 :::::: The code at line 29 was first introduced by commit :::::: f50169324df4ad942e544386d136216c8617636a module.h: split out the EXPORT_SYMBOL into export.h :::::: TO: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx> :::::: CC: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel