diff options
author | Gustavo A. R. Silva | 2021-07-26 15:06:22 -0500 |
---|---|---|
committer | Gustavo A. R. Silva | 2021-07-29 12:51:00 -0500 |
commit | 696e572dc85c674b31f4f13f59d8e217ee1b057f (patch) | |
tree | 5a0236e595dbf38f884f84cb0029b9206cc25665 | |
parent | ff1176468d368232b684f75e82563369208bc371 (diff) |
ARM: riscpc: Fix fall-through warning for Clang
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>
-rw-r--r-- | arch/arm/mach-rpc/riscpc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-rpc/riscpc.c b/arch/arm/mach-rpc/riscpc.c index d23970bd638d..f70fb9c4b0cb 100644 --- a/arch/arm/mach-rpc/riscpc.c +++ b/arch/arm/mach-rpc/riscpc.c @@ -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; } |