]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ARM: riscpc: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 26 Jul 2021 20:06:22 +0000 (15:06 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 29 Jul 2021 17:51:00 +0000 (12:51 -0500)
Fix the following fallthrough warning:

arch/arm/mach-rpc/riscpc.c:52:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           default:
           ^
arch/arm/mach-rpc/riscpc.c:52:2: note: insert 'break;' to avoid fall-through
           default:
           ^
           break;

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/lkml/202107260355.bF00i5bi-lkp@intel.com/
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
arch/arm/mach-rpc/riscpc.c

index d23970bd638d9bd0d4f93a507752d0ec54f9392e..f70fb9c4b0cbbd070653b1feff4c389aa36d6366 100644 (file)
@@ -49,6 +49,7 @@ static int __init parse_tag_acorn(const struct tag *tag)
                fallthrough;    /* ??? */
        case 256:
                vram_size += PAGE_SIZE * 256;
+               break;
        default:
                break;
        }