CC: [email protected] CC: [email protected] TO: Christophe Leroy <[email protected]> CC: Michael Ellerman <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: bf9f243f23e6623f310ba03fbb14e10ec3a61290 commit: 532ed1900d37a47c821718a0d8d28eb05b2c4d28 powerpc/process: Remove useless #ifdef CONFIG_SPE date: 12 months ago :::::: branch date: 7 hours ago :::::: commit date: 12 months ago config: powerpc64-randconfig-m031-20210910 (attached as .config) compiler: powerpc64le-linux-gcc (GCC) 11.2.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]> New smatch warnings: arch/powerpc/kernel/process.c:447 giveup_all() warn: bitwise AND condition is false here Old smatch warnings: arch/powerpc/kernel/process.c:589 save_all() warn: bitwise AND condition is false here arch/powerpc/kernel/process.c:1963 get_fpexc_mode() error: uninitialized symbol 'val'. vim +447 arch/powerpc/kernel/process.c c208505900b232 Anton Blanchard 2015-10-29 422 c208505900b232 Anton Blanchard 2015-10-29 423 void giveup_all(struct task_struct *tsk) c208505900b232 Anton Blanchard 2015-10-29 424 { c208505900b232 Anton Blanchard 2015-10-29 425 unsigned long usermsr; c208505900b232 Anton Blanchard 2015-10-29 426 c208505900b232 Anton Blanchard 2015-10-29 427 if (!tsk->thread.regs) c208505900b232 Anton Blanchard 2015-10-29 428 return; c208505900b232 Anton Blanchard 2015-10-29 429 8205d5d98ef7f1 Gustavo Romero 2019-09-04 430 check_if_tm_restore_required(tsk); 8205d5d98ef7f1 Gustavo Romero 2019-09-04 431 c208505900b232 Anton Blanchard 2015-10-29 432 usermsr = tsk->thread.regs->msr; c208505900b232 Anton Blanchard 2015-10-29 433 c208505900b232 Anton Blanchard 2015-10-29 434 if ((usermsr & msr_all_available) == 0) c208505900b232 Anton Blanchard 2015-10-29 435 return; c208505900b232 Anton Blanchard 2015-10-29 436 c208505900b232 Anton Blanchard 2015-10-29 437 msr_check_and_set(msr_all_available); c208505900b232 Anton Blanchard 2015-10-29 438 96c79b6bd74039 Benjamin Herrenschmidt 2017-08-16 439 WARN_ON((usermsr & MSR_VSX) && !((usermsr & MSR_FP) && (usermsr & MSR_VEC))); 96c79b6bd74039 Benjamin Herrenschmidt 2017-08-16 440 c208505900b232 Anton Blanchard 2015-10-29 441 #ifdef CONFIG_PPC_FPU c208505900b232 Anton Blanchard 2015-10-29 442 if (usermsr & MSR_FP) c208505900b232 Anton Blanchard 2015-10-29 443 __giveup_fpu(tsk); c208505900b232 Anton Blanchard 2015-10-29 444 #endif c208505900b232 Anton Blanchard 2015-10-29 445 if (usermsr & MSR_VEC) c208505900b232 Anton Blanchard 2015-10-29 446 __giveup_altivec(tsk); c208505900b232 Anton Blanchard 2015-10-29 @447 if (usermsr & MSR_SPE) c208505900b232 Anton Blanchard 2015-10-29 448 __giveup_spe(tsk); c208505900b232 Anton Blanchard 2015-10-29 449 c208505900b232 Anton Blanchard 2015-10-29 450 msr_check_and_clear(msr_all_available); c208505900b232 Anton Blanchard 2015-10-29 451 } c208505900b232 Anton Blanchard 2015-10-29 452 EXPORT_SYMBOL(giveup_all); c208505900b232 Anton Blanchard 2015-10-29 453 :::::: The code at line 447 was first introduced by commit :::::: c208505900b232ecdc81dee54cb3a032e75d88d6 powerpc: create giveup_all() :::::: TO: Anton Blanchard <[email protected]> :::::: CC: Michael Ellerman <[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]
