tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: ef2982312942ba96fb8217df5d832051bae4afd2 commit: 204b824482ac7eec274458871cf25e9d5baea20e [21052/21589] x86/speculation: Add force option to GDS mitigation config: x86_64-randconfig-013-20240129 (https://download.01.org/0day-ci/archive/20240130/202401300802.zocYeDrt-lkp@i...) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240130/202401300802.zocYeDrt-lkp@i...)
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 lkp@intel.com | Closes: https://lore.kernel.org/oe-kbuild-all/202401300802.zocYeDrt-lkp@intel.com/
Note: it may well be a FALSE warning. FWIW you are at least aware of it now. http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
In file included from arch/x86/include/asm/irqflags.h:72:0, from include/linux/irqflags.h:16, from include/linux/rcupdate.h:39, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/utsname.h:6, from arch/x86/kernel/cpu/bugs.c:12: arch/x86/kernel/cpu/bugs.c: In function 'update_gds_msr':
arch/x86/include/asm/paravirt.h:150:32: warning: 'mcu_ctrl' may be used uninitialized in this function [-Wmaybe-uninitialized]
wrmsr(msr, (u32)val, (u32)(val>>32)); ^~ arch/x86/kernel/cpu/bugs.c:669:6: note: 'mcu_ctrl' was declared here u64 mcu_ctrl; ^~~~~~~~
vim +/mcu_ctrl +150 arch/x86/include/asm/paravirt.h
d3561b7fa0fb0f include/asm-i386/paravirt.h Rusty Russell 2006-12-07 147 47edb65178cb70 arch/x86/include/asm/paravirt.h Andy Lutomirski 2015-07-23 148 static inline void wrmsrl(unsigned msr, u64 val) 47edb65178cb70 arch/x86/include/asm/paravirt.h Andy Lutomirski 2015-07-23 149 { 47edb65178cb70 arch/x86/include/asm/paravirt.h Andy Lutomirski 2015-07-23 @150 wrmsr(msr, (u32)val, (u32)(val>>32)); 47edb65178cb70 arch/x86/include/asm/paravirt.h Andy Lutomirski 2015-07-23 151 } 47edb65178cb70 arch/x86/include/asm/paravirt.h Andy Lutomirski 2015-07-23 152
:::::: The code at line 150 was first introduced by commit :::::: 47edb65178cb7056c2eea0b6c41a7d8c84547192 x86/asm/msr: Make wrmsrl() a function
:::::: TO: Andy Lutomirski luto@kernel.org :::::: CC: Ingo Molnar mingo@kernel.org