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

arcnet: com20020-isa: Mark expected switch fall-throughs

Mark switch cases where we are expecting to fall through.

This patch fixes the following warnings:

drivers/net/arcnet/com20020-isa.c: warning: this statement may fall
through [-Wimplicit-fallthrough=]: => 205:13, 203:10, 209:7, 201:11,
207:8

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Gustavo A. R. Silva and committed by
David S. Miller
e1ab2431 d7bae09f

+6
+6
drivers/net/arcnet/com20020-isa.c
··· 197 197 switch (ints[0]) { 198 198 default: /* ERROR */ 199 199 pr_info("Too many arguments\n"); 200 + /* Fall through */ 200 201 case 6: /* Timeout */ 201 202 timeout = ints[6]; 203 + /* Fall through */ 202 204 case 5: /* CKP value */ 203 205 clockp = ints[5]; 206 + /* Fall through */ 204 207 case 4: /* Backplane flag */ 205 208 backplane = ints[4]; 209 + /* Fall through */ 206 210 case 3: /* Node ID */ 207 211 node = ints[3]; 212 + /* Fall through */ 208 213 case 2: /* IRQ */ 209 214 irq = ints[2]; 215 + /* Fall through */ 210 216 case 1: /* IO address */ 211 217 io = ints[1]; 212 218 }