u-boot/drivers/mtd
Tom Rini 1f0281294d Merge patch series "Annotate switch/case fallthrough cases"
Andre Przywara <andre.przywara@arm.com> says:

C's implicit fallthrough behaviour in switch/case statements can lead to
subtle bugs. Quite some while ago many compilers introduced warnings in
those cases, requiring intentional fallthrough's to be annotated.

So far we were not enabling that compiler option, so many ambiguities
and some bugs in the code went unnoticed.

This series adds the required annotations in code paths that the first
stage of the U-Boot CI covers. There is a large number of cases left
in the libbz2 code. The usage of switch/case is borderline insane there,
labels are hidden in macros, and there are no breaks, but just goto's.
Upstream still uses very similar code, without any annotations. I still
am not 100% sure those are meant to fall through or not, and plan to do
further investigations, but didn't want to hold the rest of the patches
back. You can see for yourself by applying patch 18/18 and building for
sandbox64, for instance.

Because of this we cannot quite enable the warning in the Makefile yet,
but those fixes are worth regardless, and be it to increase readability.

Please note that those patches do not fix anything, really, they just add
those fallthrough annotations, so the series is not really critical.

Link: https://lore.kernel.org/r/20250327153313.2105227-1-andre.przywara@arm.com
2025-04-08 16:24:12 -06:00
..
nand Merge patch series "Annotate switch/case fallthrough cases" 2025-04-08 16:24:12 -06:00
nvmxip nvmxip: Avoid probing on boot 2024-09-18 13:00:59 -06:00
onenand drivers: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:48 -06:00
spi mtd: spi-nor-tiny: annotate switch/case fallthrough 2025-04-08 16:23:51 -06:00
ubi Merge patch series "Annotate switch/case fallthrough cases" 2025-04-08 16:24:12 -06:00
ubispl drivers/mtd/ubispl/ubispl.c: Fix error message 2024-11-29 12:59:27 +02:00
altera_qspi.c flash: prefix error codes with FL_ 2024-09-24 13:41:20 -06:00
cfi_flash.c flash: prefix error codes with FL_ 2024-09-24 13:41:20 -06:00
cfi_mtd.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
hbmc-am654.c mtd: HBMC-AM654: Changed syscon API to mux APIs 2024-12-14 09:34:16 -06:00
jedec_flash.c drivers: mtd: Remove duplicate newlines 2024-07-22 10:53:05 -06:00
Kconfig treewide: Replace Maximumm with Maximum in Kconfig symbol description 2025-01-24 14:15:05 -06:00
Makefile global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
mtd-uclass.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
mtd_uboot.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
mtdblock.c drivers: introduce mtdblock abstraction 2024-08-08 09:27:50 +02:00
mtdconcat.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
mtdcore.c nand: Add a watch command 2024-12-17 13:17:41 -06:00
mtdcore.h mtd: move definitions to enlarge their range 2018-09-20 20:10:49 +05:30
mtdpart.c mtd: mtdpart: Support MTD_SIZE_REMAINING with unallocated memory area 2025-02-28 08:37:49 -06:00
renesas_rpc_hf.c mtd: renesas: Fix R-Car spelling 2024-12-11 08:36:24 +01:00
stm32_flash.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
stm32_flash.h stm32: stm32f4: move flash driver to mtd driver location 2016-03-26 18:49:28 -04:00