Skip to content

Commit 646558f

Browse files
GustavoARSilvaDaniel Thompson
authored andcommitted
kdb: kdb_support: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Notice that in this particular case, I replaced the code comments with a proper "fall through" annotation, which is what GCC is expecting to find. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
1 parent 01cb373 commit 646558f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎kernel/debug/kdb/kdb_support.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ int kdb_getphysword(unsigned long *word, unsigned long addr, size_t size)
432432
*word = w8;
433433
break;
434434
}
435-
/* drop through */
435+
/* fall through */
436436
default:
437437
diag = KDB_BADWIDTH;
438438
kdb_printf("kdb_getphysword: bad width %ld\n", (long) size);
@@ -481,7 +481,7 @@ int kdb_getword(unsigned long *word, unsigned long addr, size_t size)
481481
*word = w8;
482482
break;
483483
}
484-
/* drop through */
484+
/* fall through */
485485
default:
486486
diag = KDB_BADWIDTH;
487487
kdb_printf("kdb_getword: bad width %ld\n", (long) size);
@@ -525,7 +525,7 @@ int kdb_putword(unsigned long addr, unsigned long word, size_t size)
525525
diag = kdb_putarea(addr, w8);
526526
break;
527527
}
528-
/* drop through */
528+
/* fall through */
529529
default:
530530
diag = KDB_BADWIDTH;
531531
kdb_printf("kdb_putword: bad width %ld\n", (long) size);

0 commit comments

Comments
 (0)