]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
powerpc/pasemi: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 15 Jul 2021 05:10:26 +0000 (00:10 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 19 Jul 2021 21:47:03 +0000 (16:47 -0500)
Fix the following fallthrough warning:

arch/powerpc/platforms/pasemi/idle.c:45:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/lkml/60efbf18.d9n6eXv275OJcc7T%25lkp@intel.com/
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
arch/powerpc/platforms/pasemi/idle.c

index 9b88e3cded7d2dc07d165444688071d9c51a3b95..534b0317fc152b6fc742210958e93be6d9571d5e 100644 (file)
@@ -42,6 +42,7 @@ static int pasemi_system_reset_exception(struct pt_regs *regs)
        switch (regs->msr & SRR1_WAKEMASK) {
        case SRR1_WAKEDEC:
                set_dec(1);
+               break;
        case SRR1_WAKEEE:
                /*
                 * Handle these when interrupts get re-enabled and we take