CC: [email protected] CC: [email protected] TO: Thomas Gleixner <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/fpu head: a365ccb2764d58791ee5946b16fa0ffceb17021f commit: e97b554e4657cfc9e5a2948194b7167a5bcecf29 [54/77] x86/fpu: Rework restore_regs_from_fpstate() :::::: branch date: 6 hours ago :::::: commit date: 6 hours ago config: x86_64-randconfig-m001-20211011 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> smatch warnings: arch/x86/kernel/fpu/xstate.c:349 os_xrstor_booting() warn: mask and shift to zero vim +349 arch/x86/kernel/fpu/xstate.c 996952e0148026 Yu-cheng Yu 2016-06-17 340 1351c2efb4721a Thomas Gleixner 2021-10-03 341 /* 1351c2efb4721a Thomas Gleixner 2021-10-03 342 * This function is called only during boot time when x86 caps are not set 1351c2efb4721a Thomas Gleixner 2021-10-03 343 * up and alternative can not be used yet. 1351c2efb4721a Thomas Gleixner 2021-10-03 344 */ 1351c2efb4721a Thomas Gleixner 2021-10-03 345 static __init void os_xrstor_booting(struct xregs_state *xstate) 1351c2efb4721a Thomas Gleixner 2021-10-03 346 { e97b554e4657cf Thomas Gleixner 2021-10-06 347 u64 mask = fpu_kernel_cfg.max_features & XFEATURE_MASK_FPSTATE; 1351c2efb4721a Thomas Gleixner 2021-10-03 348 u32 lmask = mask; 1351c2efb4721a Thomas Gleixner 2021-10-03 @349 u32 hmask = mask >> 32; 1351c2efb4721a Thomas Gleixner 2021-10-03 350 int err; 1351c2efb4721a Thomas Gleixner 2021-10-03 351 1351c2efb4721a Thomas Gleixner 2021-10-03 352 if (cpu_feature_enabled(X86_FEATURE_XSAVES)) 1351c2efb4721a Thomas Gleixner 2021-10-03 353 XSTATE_OP(XRSTORS, xstate, lmask, hmask, err); 1351c2efb4721a Thomas Gleixner 2021-10-03 354 else 1351c2efb4721a Thomas Gleixner 2021-10-03 355 XSTATE_OP(XRSTOR, xstate, lmask, hmask, err); 1351c2efb4721a Thomas Gleixner 2021-10-03 356 1351c2efb4721a Thomas Gleixner 2021-10-03 357 /* 1351c2efb4721a Thomas Gleixner 2021-10-03 358 * We should never fault when copying from a kernel buffer, and the FPU 1351c2efb4721a Thomas Gleixner 2021-10-03 359 * state we set at boot time should be valid. 1351c2efb4721a Thomas Gleixner 2021-10-03 360 */ 1351c2efb4721a Thomas Gleixner 2021-10-03 361 WARN_ON_FPU(err); 1351c2efb4721a Thomas Gleixner 2021-10-03 362 } 1351c2efb4721a Thomas Gleixner 2021-10-03 363 :::::: The code at line 349 was first introduced by commit :::::: 1351c2efb4721adb5637428b1d7a0e8c2f1f36e7 x86/fpu: Make os_xrstor_booting() private :::::: TO: Thomas Gleixner <[email protected]> :::::: CC: Thomas Gleixner <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
