diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-08-20 19:29:16 -0500 |
---|---|---|
committer | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-08-20 19:42:48 -0500 |
commit | 06264adfa2bcc8abb556dec9af0e86150a67faf0 (patch) | |
tree | 5442559acdcf1afc8cb15034d3f975fec3aa324f /arch/arm | |
parent | 377ec83643efcae869528b4b26a5070fdeba3abd (diff) | |
download | linux-06264adfa2bcc8abb556dec9af0e86150a67faf0.tar.gz linux-06264adfa2bcc8abb556dec9af0e86150a67faf0.tar.bz2 linux-06264adfa2bcc8abb556dec9af0e86150a67faf0.zip |
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>
Diffstat (limited to 'arch/arm')
-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 0ce56ad754ce..ea2c84214bac 100644 --- a/arch/arm/mach-rpc/riscpc.c +++ b/arch/arm/mach-rpc/riscpc.c @@ -46,6 +46,7 @@ static int __init parse_tag_acorn(const struct tag *tag) switch (tag->u.acorn.vram_pages) { case 512: vram_size += PAGE_SIZE * 256; + /* Fall through - ??? */ case 256: vram_size += PAGE_SIZE * 256; default: |