[PATCH 1/1] sandbox: spi: sandbox_sf_process_cmd() missing fallthrough
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Sat Apr 1 09:38:05 CEST 2023
Add a missing fallthrough macro to avoid a -Wimplicit-fallthrough warning.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
drivers/mtd/spi/sandbox.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/spi/sandbox.c
index 3c01e3b41c..4fe547171a 100644
--- a/drivers/mtd/spi/sandbox.c
+++ b/drivers/mtd/spi/sandbox.c
@@ -248,6 +248,7 @@ static int sandbox_sf_process_cmd(struct sandbox_spi_flash *sbsf, const u8 *rx,
break;
case SPINOR_OP_READ_FAST:
sbsf->pad_addr_bytes = 1;
+ fallthrough;
case SPINOR_OP_READ:
case SPINOR_OP_PP:
sbsf->state = SF_ADDR;
--
2.39.2
More information about the U-Boot
mailing list