Content-Type: multipart/mixed; boundary="===============7324314814328041245==" MIME-Version: 1.0 From: Julia Lawall To: kbuild-all@lists.01.org Subject: [PATCH] lib: fix bugon.cocci warnings Date: Tue, 06 Jul 2021 10:51:38 +0200 Message-ID: List-Id: --===============7324314814328041245== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot Use BUG_ON instead of a if condition followed by BUG. Generated by: scripts/coccinelle/misc/bugon.cocci Fixes: 7d37cb2c912d ("lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTE= RS") CC: Julian Braha Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: a180bd1d7e16173d965b263c5a536aa40afa2a2a commit: 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 lib: fix kconfig dependenc= y on ARCH_WANT_FRAME_POINTERS :::::: branch date: 21 hours ago :::::: commit date: 3 months ago kprobes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/arch/csky/kernel/probes/kprobes.c +++ b/arch/csky/kernel/probes/kprobes.c @@ -283,8 +283,7 @@ int __kprobes kprobe_fault_handler(struc * normal page fault. */ regs->pc =3D (unsigned long) cur->addr; - if (!instruction_pointer(regs)) - BUG(); + BUG_ON(!instruction_pointer(regs)); if (kcb->kprobe_status =3D=3D KPROBE_REENTER) restore_previous_kprobe(kcb); --===============7324314814328041245==--