diff options
author | Andre Przywara <andre.przywara@arm.com> | 2025-03-27 15:33:09 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-04-08 16:23:51 -0600 |
commit | 452dfcc3b461c1bfbc2126623f42f551000a9ca3 (patch) | |
tree | 53eeed4876e4742313033ee8e7de735afb7d8653 /drivers/mtd/spi/spi-nor-tiny.c | |
parent | bc3e28e11b7a8b0fb1765556642409e4006a33f7 (diff) |
mtd: spi-nor-tiny: annotate switch/case fallthrough
The SPI NOR code uses an implicit switch/case fallthrough when checking
different vendors to determine how to deal with extended addressig modes.
Add our "fallthrough;" statement-like macro before some label in the
4-byte addressing mode code, to avoid a warning when GCC's
-Wimplicit-fallthrough warning option is enabled.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/mtd/spi/spi-nor-tiny.c')
-rw-r--r-- | drivers/mtd/spi/spi-nor-tiny.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/spi/spi-nor-tiny.c b/drivers/mtd/spi/spi-nor-tiny.c index 5755c5eed29..23de64a1520 100644 --- a/drivers/mtd/spi/spi-nor-tiny.c +++ b/drivers/mtd/spi/spi-nor-tiny.c @@ -219,6 +219,7 @@ static inline int set_4byte(struct spi_nor *nor, const struct flash_info *info, case SNOR_MFR_MICRON: /* Some Micron need WREN command; all will accept it */ need_wren = true; + fallthrough; case SNOR_MFR_MACRONIX: case SNOR_MFR_WINBOND: if (need_wren) |