u-boot/drivers/mtd/ubi
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
..
attach.c mtd: ubi: annotate fallthrough 2025-04-08 16:23:51 -06:00
block.c drivers: introduce UBI block abstraction 2024-08-08 09:28:00 +02:00
build.c mtd: ubi: annotate fallthrough 2025-04-08 16:23:51 -06:00
crc32.c WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
crc32defs.h UBI: Add basic UBI support to U-Boot (Part 2/8) 2008-11-19 20:34:39 +01:00
crc32table.h mtd, ubi, ubifs: resync with Linux-3.14 2014-08-25 19:25:55 -04:00
debug.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
debug.h common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
eba.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fastmap-wl.c ubi: fastmap: Implement produce_free_peb() 2018-05-22 11:39:05 +02:00
fastmap.c list: use list_count_nodes() to count list entries 2024-08-30 13:51:38 -06:00
io.c mtd: ubi: Do not zero out EC and VID on ECC-ed NOR flashes 2024-10-15 08:57:49 -06:00
kapi.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
Kconfig mtd: Correct dependency of BLK 2025-01-20 19:26:54 -06:00
Makefile disk: support UBI partitions 2024-08-08 09:28:05 +02:00
misc.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
part.c ubi: fix bug creating partitions for non-existent volumes 2025-04-08 06:52:24 +02:00
ubi-media.h ubi: provide a way to skip CRC checks 2019-10-16 05:42:27 +02:00
ubi.h common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
upd.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
vmt.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
vtbl.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
wl.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
wl.h ubi,ubifs: sync with linux v4.2 2015-10-26 09:22:36 +01:00