Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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
+1
arch/arm/mach-rpc/riscpc.c
··· 46 46 switch (tag->u.acorn.vram_pages) { 47 47 case 512: 48 48 vram_size += PAGE_SIZE * 256; 49 + /* Fall through - ??? */ 49 50 case 256: 50 51 vram_size += PAGE_SIZE * 256; 51 52 default: