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

net: rose: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Gustavo A. R. Silva and committed by
David S. Miller
a05b8c43 279badc2

+3
+1
net/rose/rose_in.c
··· 219 219 switch (frametype) { 220 220 case ROSE_RESET_REQUEST: 221 221 rose_write_internal(sk, ROSE_RESET_CONFIRMATION); 222 + /* fall through */ 222 223 case ROSE_RESET_CONFIRMATION: 223 224 rose_stop_timer(sk); 224 225 rose_start_idletimer(sk);
+2
net/rose/rose_route.c
··· 346 346 case 0: 347 347 rose_node->neighbour[0] = 348 348 rose_node->neighbour[1]; 349 + /* fall through */ 349 350 case 1: 350 351 rose_node->neighbour[1] = 351 352 rose_node->neighbour[2]; ··· 508 507 switch (i) { 509 508 case 0: 510 509 t->neighbour[0] = t->neighbour[1]; 510 + /* fall through */ 511 511 case 1: 512 512 t->neighbour[1] = t->neighbour[2]; 513 513 case 2: