]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sparc64: uprobes: add missing break
authorRosen Penev <rosenp@gmail.com>
Wed, 6 May 2026 03:18:15 +0000 (20:18 -0700)
committerAndreas Larsson <andreas@gaisler.com>
Fri, 12 Jun 2026 11:51:18 +0000 (13:51 +0200)
Missing fallthrough causes failure with newer compilers:

arch/sparc/kernel/uprobes.c:284:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
  284 |         default:
      |         ^
arch/sparc/kernel/uprobes.c:284:2: note: insert 'break;' to avoid fall-through
  284 |         default:
      |         ^
      |         break;

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
arch/sparc/kernel/uprobes.c

index 305017bec164f8bed0e85a847d1eb0505c5235af..c8cac64e9988a46086f5ab0655835559bbcc8e8d 100644 (file)
@@ -280,6 +280,7 @@ int arch_uprobe_exception_notify(struct notifier_block *self,
        case DIE_SSTEP:
                if (uprobe_post_sstep_notifier(args->regs))
                        ret = NOTIFY_STOP;
+               break;
 
        default:
                break;