coreboot/src
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
..
acpi
arch lib: Remove the BOOTBLOCK_CUSTOM compile guard 2019-07-17 23:15:08 +00:00
commonlib commonlib/storage: use ALIGN_UP instead of ALIGN for better readability 2019-06-21 12:49:43 +00:00
console src: Make implicit fall throughs explicit 2019-07-19 09:57:54 +00:00
cpu cpu/x86: Fix DEBUG_SMM_RELOCATION dependency 2019-07-15 04:49:30 +00:00
device device/oprom/realmode: Add vbe return status support as per VBE spec 3.0 2019-07-18 16:12:05 +00:00
drivers src: Use '#include <timestamp.h>' when needed 2019-07-15 02:26:52 +00:00
ec ec/google/chromeec: Pass reference of object to BBST() method 2019-07-18 16:24:44 +00:00
include devicetree: Add accessors for chip_info 2019-07-18 15:22:09 +00:00
lib src: Make implicit fall throughs explicit 2019-07-19 09:57:54 +00:00
mainboard mb/google/hatch: Fix SD card is detected as read only issue 2019-07-19 05:02:05 +00:00
northbridge nb/intel/pineview: Remove dead code in switch 2019-07-19 09:57:32 +00:00
security security/tpm/tss/tcg-2.0: Add TPM2 function tlcl_getcapability() 2019-07-19 09:56:56 +00:00
soc src: Make implicit fall throughs explicit 2019-07-19 09:57:54 +00:00
southbridge src: Make implicit fall throughs explicit 2019-07-19 09:57:54 +00:00
superio nuvoton/early_serial: improve comments on serial pinmux settings 2019-06-22 11:39:12 +00:00
vendorcode src: Make implicit fall throughs explicit 2019-07-19 09:57:54 +00:00
Kconfig Kconfig: Remove HAVE_RAMSTAGE dependency from RELOCATABLE_RAMSTAGE 2019-07-12 02:22:27 +00:00