coreboot-kgpe-d16/src/console
Jacob Garber 4c33a3aaa3 src: Make implicit fall throughs explicit
Implicit fall throughs are a perpetual source of bugs and Coverity Scan
issues, so let's squash them once and for all. GCC can flag implicit fall
throughs using the -Wimplicit-fallthrough warning, and this should
ensure no more enter the code base. However, many fall throughs are
intentional, and we can use the following comment style to have GCC
suppress the warning.

    switch (x) {
    case 1:
            y += 1;
	    /* fall through */
    case 2:
            y += 2;
	    /* fall through - but this time with an explanation */
    default:
            y += 3;
    }

This patch adds comments for all remaining intentional fall throughs,
and tweaks some existing fall through comments to fit the syntax that
GCC expects.

Change-Id: I1d75637a434a955a58d166ad203e49620d7395ed
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34297
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
2019-07-19 09:57:54 +00:00
..
Kconfig console/Kconfig - only print UART addresses for I/O based UARTs 2019-07-13 17:53:22 +00:00
Makefile.inc arch/x86: Replace some uses of SMM_TSEG 2019-07-09 12:44:10 +00:00
console.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
die.c console: Make die() and friends variadic 2019-06-11 17:24:53 +00:00
hw-debug_sink.adb console/hw-debug_sink: Do not cache state of log level 2018-06-07 16:35:20 +00:00
hw-debug_sink.ads Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
init.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
post.c post: during post_code, only call elog when enabled 2019-05-22 14:21:42 +00:00
printk.c console: Allow using vprintk() with disabled console 2019-06-11 17:29:02 +00:00
vsprintf.c src/console: Fix coding style 2018-06-04 08:48:33 +00:00
vtxprintf.c src: Make implicit fall throughs explicit 2019-07-19 09:57:54 +00:00