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:   c5c17547b778975b3d83a73c8d84e8fb5ecf3ba5
commit: a61ec782a754229b24aae2d6c2109510d6420ae6 powerpc/breakpoint: Cleanup
date:   5 weeks ago
:::::: branch date: 25 hours ago
:::::: commit date: 5 weeks ago
config: powerpc-randconfig-m031-20211101 
(https://download.01.org/0day-ci/archive/20211128/[email protected]/config)
compiler: powerpc-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]>

smatch warnings:
arch/powerpc/kernel/hw_breakpoint_constraints.c:142 wp_get_instr_detail() warn: 
bitwise AND condition is false here

vim +142 arch/powerpc/kernel/hw_breakpoint_constraints.c

edc8dd99b29e4d Ravi Bangoria    2020-09-02  129  
edc8dd99b29e4d Ravi Bangoria    2020-09-02  130  void 
wp_get_instr_detail(struct pt_regs *regs, struct ppc_inst *instr,
edc8dd99b29e4d Ravi Bangoria    2020-09-02  131                          int 
*type, int *size, unsigned long *ea)
edc8dd99b29e4d Ravi Bangoria    2020-09-02  132  {
edc8dd99b29e4d Ravi Bangoria    2020-09-02  133         struct instruction_op 
op;
edc8dd99b29e4d Ravi Bangoria    2020-09-02  134  
bad956b8fe1a8b Christophe Leroy 2021-03-10  135         if 
(__get_user_instr(*instr, (void __user *)regs->nip))
edc8dd99b29e4d Ravi Bangoria    2020-09-02  136                 return;
edc8dd99b29e4d Ravi Bangoria    2020-09-02  137  
edc8dd99b29e4d Ravi Bangoria    2020-09-02  138         analyse_instr(&op, 
regs, *instr);
edc8dd99b29e4d Ravi Bangoria    2020-09-02  139         *type = 
GETTYPE(op.type);
edc8dd99b29e4d Ravi Bangoria    2020-09-02  140         *ea = op.ea;
a61ec782a75422 Christophe Leroy 2021-09-22  141  
edc8dd99b29e4d Ravi Bangoria    2020-09-02 @142         if (!(regs->msr & 
MSR_64BIT))

:::::: The code at line 142 was first introduced by commit
:::::: edc8dd99b29e4d705c45e2a3a6c01b096ee056db powerpc/watchpoint: Move DAWR 
detection logic outside of hw_breakpoint.c

:::::: TO: Ravi Bangoria <[email protected]>
:::::: CC: Michael Ellerman <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to