Skip to content

Commit 06264ad

Browse files
ARM: riscpc: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through. Fix the following warning (Building: rpc_defconfig arm): arch/arm/mach-rpc/riscpc.c: In function ‘parse_tag_acorn’: arch/arm/mach-rpc/riscpc.c:48:13: warning: this statement may fall through [-Wimplicit-fallthrough=] vram_size += PAGE_SIZE * 256; ~~~~~~~~~~^~~~~~~~~~~~~~~~~~ arch/arm/mach-rpc/riscpc.c:49:2: note: here case 256: ^~~~ Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
1 parent 377ec83 commit 06264ad

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/arm/mach-rpc/riscpc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ static int __init parse_tag_acorn(const struct tag *tag)
4646
switch (tag->u.acorn.vram_pages) {
4747
case 512:
4848
vram_size += PAGE_SIZE * 256;
49+
/* Fall through - ??? */
4950
case 256:
5051
vram_size += PAGE_SIZE * 256;
5152
default:

0 commit comments

Comments
 (0)