summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Przywara <[email protected]>2025-03-27 15:32:56 +0000
committerTom Rini <[email protected]>2025-04-08 16:23:51 -0600
commita6a9d3273346138fadb1a173fc2f5e9d0e61215a (patch)
tree44a24d62960511324d404dfa2c4acc49400ddff6
parent3d8be1f5ec30180748259a251efe4f63c8b4b329 (diff)
spl: mmc: properly annotate fallthrough
Depending on the various MMC boot configurations, we might end up with trying filesystem mode when a raw image boot failed. This fall-through in the switch/case statement is explained in a comment, but this is not visible to the compiler, which still will complain. Add the proper compiler-visible annotation, to allow enabling the compiler check in the future. Signed-off-by: Andre Przywara <[email protected]> Reviewed-by: Tom Rini <[email protected]>
-rw-r--r--common/spl/spl_mmc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index fe4230170a0..d06f9f0dee6 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -411,6 +411,7 @@ int spl_mmc_load(struct spl_image_info *spl_image,
return 0;
#endif
/* If RAW mode fails, try FS mode. */
+ fallthrough;
#ifdef CONFIG_SYS_MMCSD_FS_BOOT
case MMCSD_MODE_FS:
debug("spl: mmc boot mode: fs\n");