Skip to content

Commit 696e572

Browse files
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 <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent ff11764 commit 696e572

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm/mach-rpc/riscpc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ static int __init parse_tag_acorn(const struct tag *tag)
4949
fallthrough; /* ??? */
5050
case 256:
5151
vram_size += PAGE_SIZE * 256;
52+
break;
5253
default:
5354
break;
5455
}

0 commit comments

Comments
 (0)