Commit 646558ff authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Daniel Thompson

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
parent 01cb3735
...@@ -432,7 +432,7 @@ int kdb_getphysword(unsigned long *word, unsigned long addr, size_t size) ...@@ -432,7 +432,7 @@ int kdb_getphysword(unsigned long *word, unsigned long addr, size_t size)
*word = w8; *word = w8;
break; break;
} }
/* drop through */ /* fall through */
default: default:
diag = KDB_BADWIDTH; diag = KDB_BADWIDTH;
kdb_printf("kdb_getphysword: bad width %ld\n", (long) size); 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) ...@@ -481,7 +481,7 @@ int kdb_getword(unsigned long *word, unsigned long addr, size_t size)
*word = w8; *word = w8;
break; break;
} }
/* drop through */ /* fall through */
default: default:
diag = KDB_BADWIDTH; diag = KDB_BADWIDTH;
kdb_printf("kdb_getword: bad width %ld\n", (long) size); 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) ...@@ -525,7 +525,7 @@ int kdb_putword(unsigned long addr, unsigned long word, size_t size)
diag = kdb_putarea(addr, w8); diag = kdb_putarea(addr, w8);
break; break;
} }
/* drop through */ /* fall through */
default: default:
diag = KDB_BADWIDTH; diag = KDB_BADWIDTH;
kdb_printf("kdb_putword: bad width %ld\n", (long) size); kdb_printf("kdb_putword: bad width %ld\n", (long) size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment