tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 52d543b5497cf31d6baeb0bcfe5a5474c3238578 commit: f334f5668bedf7307f6df1d98b14f55902931926 ilog2: force inlining of __ilog2_u32() and __ilog2_u64() date: 2 days ago config: riscv-randconfig-r031-20220325 (https://download.01.org/0day-ci/archive/20220326/202203261403.MQr5HvWs-lkp@xxxxxxxxx/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0f6d9501cf49ce02937099350d08f20c4af86f3d) 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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f334f5668bedf7307f6df1d98b14f55902931926 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout f334f5668bedf7307f6df1d98b14f55902931926 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>, old ones prefixed by <<): >> WARNING: modpost: vmlinux.o(.data+0x10816c): Section mismatch in reference from the variable sensor_dev_attr_fan1_min to the function .init.text:set_reset_devices() The variable sensor_dev_attr_fan1_min references the function __init set_reset_devices() If the reference is valid then annotate the variable with or __refdata (see linux/init.h) or name the variable: -- >> WARNING: modpost: vmlinux.o(.data+0x10820c): Section mismatch in reference from the variable sensor_dev_attr_fan2_div to the function .init.text:set_reset_devices() The variable sensor_dev_attr_fan2_div references the function __init set_reset_devices() If the reference is valid then annotate the variable with or __refdata (see linux/init.h) or name the variable: -- >> WARNING: modpost: vmlinux.o(.data+0x106cf0): Section mismatch in reference from the variable sensor_dev_attr_in2_min to the function .init.text:set_reset_devices() The variable sensor_dev_attr_in2_min references the function __init set_reset_devices() If the reference is valid then annotate the variable with or __refdata (see linux/init.h) or name the variable: -- >> WARNING: modpost: vmlinux.o(.data+0x10da34): Section mismatch in reference from the variable sensor_dev_attr_in2_input to the function .init.text:set_reset_devices() The variable sensor_dev_attr_in2_input references the function __init set_reset_devices() If the reference is valid then annotate the variable with or __refdata (see linux/init.h) or name the variable: -- >> WARNING: modpost: vmlinux.o(.data+0x10e468): Section mismatch in reference from the variable sensor_dev_attr_temp1_alarm to the function .init.text:set_reset_devices() The variable sensor_dev_attr_temp1_alarm references the function __init set_reset_devices() If the reference is valid then annotate the variable with or __refdata (see linux/init.h) or name the variable: -- >> WARNING: modpost: vmlinux.o(.data+0x10e488): Section mismatch in reference from the variable sensor_dev_attr_temp2_alarm to the function .init.text:set_reset_devices() The variable sensor_dev_attr_temp2_alarm references the function __init set_reset_devices() If the reference is valid then annotate the variable with or __refdata (see linux/init.h) or name the variable: -- >> WARNING: modpost: vmlinux.o(.data+0x10e4a8): Section mismatch in reference from the variable sensor_dev_attr_temp3_alarm to the function .init.text:set_reset_devices() The variable sensor_dev_attr_temp3_alarm references the function __init set_reset_devices() If the reference is valid then annotate the variable with or __refdata (see linux/init.h) or name the variable: -- >> WARNING: modpost: vmlinux.o(.data+0x101ed0): Section mismatch in reference from the variable dev_attr_w1_seq to the function .init.text:set_reset_devices() The variable dev_attr_w1_seq references the function __init set_reset_devices() If the reference is valid then annotate the variable with or __refdata (see linux/init.h) or name the variable: -- >> WARNING: modpost: vmlinux.o(.data+0x10e528): Section mismatch in reference from the variable sensor_dev_attr_in3_max to the function .init.text:set_reset_devices() The variable sensor_dev_attr_in3_max references the function __init set_reset_devices() If the reference is valid then annotate the variable with or __refdata (see linux/init.h) or name the variable: -- >> WARNING: modpost: vmlinux.o(.data+0x10e5a8): Section mismatch in reference from the variable sensor_dev_attr_in7_max to the function .init.text:set_reset_devices() The variable sensor_dev_attr_in7_max references the function __init set_reset_devices() If the reference is valid then annotate the variable with or __refdata (see linux/init.h) or name the variable: -- >> WARNING: modpost: vmlinux.o(.data+0x10eb88): Section mismatch in reference from the variable sensor_dev_attr_in2_alarm to the function .init.text:set_reset_devices() The variable sensor_dev_attr_in2_alarm references the function __init set_reset_devices() If the reference is valid then annotate the variable with or __refdata (see linux/init.h) or name the variable: .. Note: the below error/warnings can be found in parent commit: << WARNING: modpost: vmlinux.o(.data+0xff0ac): Section mismatch in reference from the variable af9033_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x104ff0): Section mismatch in reference from the variable twl4030_bci_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108408): Section mismatch in reference from the variable sensor_dev_attr_fan5_min to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108428): Section mismatch in reference from the variable sensor_dev_attr_fan5_div to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108448): Section mismatch in reference from the variable sensor_dev_attr_fan5_alarm to the variable .init.text:.LBB58_27 << WARNING: modpost: vmlinux.o(.data+0x108488): Section mismatch in reference from the variable sensor_dev_attr_pwm5_mode to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084a8): Section mismatch in reference from the variable sensor_dev_attr_fan6_input to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084c8): Section mismatch in reference from the variable sensor_dev_attr_fan6_min to the variable .init.text:.LBB58_28 << WARNING: modpost: vmlinux.o(.data+0x108508): Section mismatch in reference from the variable sensor_dev_attr_fan6_alarm to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108528): Section mismatch in reference from the variable sensor_dev_attr_pwm6 to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0xff0ac): Section mismatch in reference from the variable af9033_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x104ff0): Section mismatch in reference from the variable twl4030_bci_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108408): Section mismatch in reference from the variable sensor_dev_attr_fan5_min to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108428): Section mismatch in reference from the variable sensor_dev_attr_fan5_div to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108448): Section mismatch in reference from the variable sensor_dev_attr_fan5_alarm to the variable .init.text:.LBB58_27 << WARNING: modpost: vmlinux.o(.data+0x108488): Section mismatch in reference from the variable sensor_dev_attr_pwm5_mode to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084a8): Section mismatch in reference from the variable sensor_dev_attr_fan6_input to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084c8): Section mismatch in reference from the variable sensor_dev_attr_fan6_min to the variable .init.text:.LBB58_28 << WARNING: modpost: vmlinux.o(.data+0x108508): Section mismatch in reference from the variable sensor_dev_attr_fan6_alarm to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108528): Section mismatch in reference from the variable sensor_dev_attr_pwm6 to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0xff0ac): Section mismatch in reference from the variable af9033_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x104ff0): Section mismatch in reference from the variable twl4030_bci_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108408): Section mismatch in reference from the variable sensor_dev_attr_fan5_min to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108428): Section mismatch in reference from the variable sensor_dev_attr_fan5_div to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108448): Section mismatch in reference from the variable sensor_dev_attr_fan5_alarm to the variable .init.text:.LBB58_27 << WARNING: modpost: vmlinux.o(.data+0x108488): Section mismatch in reference from the variable sensor_dev_attr_pwm5_mode to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084a8): Section mismatch in reference from the variable sensor_dev_attr_fan6_input to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084c8): Section mismatch in reference from the variable sensor_dev_attr_fan6_min to the variable .init.text:.LBB58_28 << WARNING: modpost: vmlinux.o(.data+0x108508): Section mismatch in reference from the variable sensor_dev_attr_fan6_alarm to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108528): Section mismatch in reference from the variable sensor_dev_attr_pwm6 to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0xff0ac): Section mismatch in reference from the variable af9033_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x104ff0): Section mismatch in reference from the variable twl4030_bci_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108408): Section mismatch in reference from the variable sensor_dev_attr_fan5_min to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108428): Section mismatch in reference from the variable sensor_dev_attr_fan5_div to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108448): Section mismatch in reference from the variable sensor_dev_attr_fan5_alarm to the variable .init.text:.LBB58_27 << WARNING: modpost: vmlinux.o(.data+0x108488): Section mismatch in reference from the variable sensor_dev_attr_pwm5_mode to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084a8): Section mismatch in reference from the variable sensor_dev_attr_fan6_input to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084c8): Section mismatch in reference from the variable sensor_dev_attr_fan6_min to the variable .init.text:.LBB58_28 << WARNING: modpost: vmlinux.o(.data+0x108508): Section mismatch in reference from the variable sensor_dev_attr_fan6_alarm to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108528): Section mismatch in reference from the variable sensor_dev_attr_pwm6 to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0xff0ac): Section mismatch in reference from the variable af9033_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x104ff0): Section mismatch in reference from the variable twl4030_bci_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108408): Section mismatch in reference from the variable sensor_dev_attr_fan5_min to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108428): Section mismatch in reference from the variable sensor_dev_attr_fan5_div to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108448): Section mismatch in reference from the variable sensor_dev_attr_fan5_alarm to the variable .init.text:.LBB58_27 << WARNING: modpost: vmlinux.o(.data+0x108488): Section mismatch in reference from the variable sensor_dev_attr_pwm5_mode to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084a8): Section mismatch in reference from the variable sensor_dev_attr_fan6_input to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084c8): Section mismatch in reference from the variable sensor_dev_attr_fan6_min to the variable .init.text:.LBB58_28 << WARNING: modpost: vmlinux.o(.data+0x108508): Section mismatch in reference from the variable sensor_dev_attr_fan6_alarm to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108528): Section mismatch in reference from the variable sensor_dev_attr_pwm6 to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0xff0ac): Section mismatch in reference from the variable af9033_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x104ff0): Section mismatch in reference from the variable twl4030_bci_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108408): Section mismatch in reference from the variable sensor_dev_attr_fan5_min to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108428): Section mismatch in reference from the variable sensor_dev_attr_fan5_div to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108448): Section mismatch in reference from the variable sensor_dev_attr_fan5_alarm to the variable .init.text:.LBB58_27 << WARNING: modpost: vmlinux.o(.data+0x108488): Section mismatch in reference from the variable sensor_dev_attr_pwm5_mode to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084a8): Section mismatch in reference from the variable sensor_dev_attr_fan6_input to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084c8): Section mismatch in reference from the variable sensor_dev_attr_fan6_min to the variable .init.text:.LBB58_28 << WARNING: modpost: vmlinux.o(.data+0x108508): Section mismatch in reference from the variable sensor_dev_attr_fan6_alarm to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108528): Section mismatch in reference from the variable sensor_dev_attr_pwm6 to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0xff0ac): Section mismatch in reference from the variable af9033_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x104ff0): Section mismatch in reference from the variable twl4030_bci_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108408): Section mismatch in reference from the variable sensor_dev_attr_fan5_min to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108428): Section mismatch in reference from the variable sensor_dev_attr_fan5_div to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108448): Section mismatch in reference from the variable sensor_dev_attr_fan5_alarm to the variable .init.text:.LBB58_27 << WARNING: modpost: vmlinux.o(.data+0x108488): Section mismatch in reference from the variable sensor_dev_attr_pwm5_mode to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084a8): Section mismatch in reference from the variable sensor_dev_attr_fan6_input to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084c8): Section mismatch in reference from the variable sensor_dev_attr_fan6_min to the variable .init.text:.LBB58_28 << WARNING: modpost: vmlinux.o(.data+0x108508): Section mismatch in reference from the variable sensor_dev_attr_fan6_alarm to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108528): Section mismatch in reference from the variable sensor_dev_attr_pwm6 to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0xff0ac): Section mismatch in reference from the variable af9033_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x104ff0): Section mismatch in reference from the variable twl4030_bci_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108408): Section mismatch in reference from the variable sensor_dev_attr_fan5_min to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108428): Section mismatch in reference from the variable sensor_dev_attr_fan5_div to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108448): Section mismatch in reference from the variable sensor_dev_attr_fan5_alarm to the variable .init.text:.LBB58_27 << WARNING: modpost: vmlinux.o(.data+0x108488): Section mismatch in reference from the variable sensor_dev_attr_pwm5_mode to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084a8): Section mismatch in reference from the variable sensor_dev_attr_fan6_input to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084c8): Section mismatch in reference from the variable sensor_dev_attr_fan6_min to the variable .init.text:.LBB58_28 << WARNING: modpost: vmlinux.o(.data+0x108508): Section mismatch in reference from the variable sensor_dev_attr_fan6_alarm to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108528): Section mismatch in reference from the variable sensor_dev_attr_pwm6 to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0xff0ac): Section mismatch in reference from the variable af9033_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x104ff0): Section mismatch in reference from the variable twl4030_bci_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108408): Section mismatch in reference from the variable sensor_dev_attr_fan5_min to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108428): Section mismatch in reference from the variable sensor_dev_attr_fan5_div to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108448): Section mismatch in reference from the variable sensor_dev_attr_fan5_alarm to the variable .init.text:.LBB58_27 << WARNING: modpost: vmlinux.o(.data+0x108488): Section mismatch in reference from the variable sensor_dev_attr_pwm5_mode to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084a8): Section mismatch in reference from the variable sensor_dev_attr_fan6_input to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084c8): Section mismatch in reference from the variable sensor_dev_attr_fan6_min to the variable .init.text:.LBB58_28 << WARNING: modpost: vmlinux.o(.data+0x108508): Section mismatch in reference from the variable sensor_dev_attr_fan6_alarm to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108528): Section mismatch in reference from the variable sensor_dev_attr_pwm6 to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0xff0ac): Section mismatch in reference from the variable af9033_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x104ff0): Section mismatch in reference from the variable twl4030_bci_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108408): Section mismatch in reference from the variable sensor_dev_attr_fan5_min to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108428): Section mismatch in reference from the variable sensor_dev_attr_fan5_div to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108448): Section mismatch in reference from the variable sensor_dev_attr_fan5_alarm to the variable .init.text:.LBB58_27 << WARNING: modpost: vmlinux.o(.data+0x108488): Section mismatch in reference from the variable sensor_dev_attr_pwm5_mode to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084a8): Section mismatch in reference from the variable sensor_dev_attr_fan6_input to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084c8): Section mismatch in reference from the variable sensor_dev_attr_fan6_min to the variable .init.text:.LBB58_28 << WARNING: modpost: vmlinux.o(.data+0x108508): Section mismatch in reference from the variable sensor_dev_attr_fan6_alarm to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108528): Section mismatch in reference from the variable sensor_dev_attr_pwm6 to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0xff0ac): Section mismatch in reference from the variable af9033_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x104ff0): Section mismatch in reference from the variable twl4030_bci_driver to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108408): Section mismatch in reference from the variable sensor_dev_attr_fan5_min to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108428): Section mismatch in reference from the variable sensor_dev_attr_fan5_div to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108448): Section mismatch in reference from the variable sensor_dev_attr_fan5_alarm to the variable .init.text:.LBB58_27 << WARNING: modpost: vmlinux.o(.data+0x108488): Section mismatch in reference from the variable sensor_dev_attr_pwm5_mode to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084a8): Section mismatch in reference from the variable sensor_dev_attr_fan6_input to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x1084c8): Section mismatch in reference from the variable sensor_dev_attr_fan6_min to the variable .init.text:.LBB58_28 << WARNING: modpost: vmlinux.o(.data+0x108508): Section mismatch in reference from the variable sensor_dev_attr_fan6_alarm to the function .init.text:set_reset_devices() << WARNING: modpost: vmlinux.o(.data+0x108528): Section mismatch in reference from the variable sensor_dev_attr_pwm6 to the function .init.text:set_reset_devices() -- 0-DAY CI Kernel Test Service https://01.org/lkp