(subset) [PATCH 00/18] Annotate switch/case fallthrough cases

Tom Rini trini at konsulko.com
Thu Apr 10 03:46:22 CEST 2025


On Thu, 27 Mar 2025 15:32:55 +0000, Andre Przywara wrote:

> 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.
> 
> [...]

Applied to u-boot/master, thanks!

[01/18] spl: mmc: properly annotate fallthrough
        commit: a6a9d3273346138fadb1a173fc2f5e9d0e61215a
[02/18] zlib: annotate switch/case fallthrough cases
        commit: 3d907a5a490b79b876a3f9c325b483a116f29b7e
[03/18] gadget: f_thor: annotate switch/case fallthrough
        commit: 2938eb1e022d7e1de23d89f941bc07b0776a2549
[04/18] use proper fallthrough annotations
        commit: 26b2482f124ba831e40a44ea0cb093203fd8d747
[06/18] fastboot: annotate switch/case fallthrough case
        commit: 06b1ebfe521d2729cd97db7dfed62469081f0ec3
[07/18] net: sun8i-emac: annotate fallthrough
        commit: 5ddb7d1265633d855889831bcad0ee4b9ea4a0d3
[08/18] usb: ohci-hcd: annotate switch/case fallthrough
        commit: 921e4d480dff3206020eacd4873795d0e57d7c20
[09/18] usb: xhci: annotate switch/case fallthrough properly
        commit: 4d108c884b5bd5cef13fa1eb11a65eefd4c48d3f
[10/18] video: annotate switch/case fall-through
        commit: 2c22efbb37b00fc353ffee56bf0b54c38639e08e
[11/18] net: e1000: annotate switch/case fallthrough
        commit: 960d3d933dbda88aed6d4fcf0711dbc7448ffd83
[12/18] mtd: ubi: annotate fallthrough
        commit: 64bc0124581b49093f5c348f5debe8889a56fedd
[13/18] arm: mach-k3: am62p: annotate switch/case fallthrough
        commit: bc3e28e11b7a8b0fb1765556642409e4006a33f7
[14/18] mtd: spi-nor-tiny: annotate switch/case fallthrough
        commit: 452dfcc3b461c1bfbc2126623f42f551000a9ca3
[15/18] mtd: rawnand: nand_base: annotate switch/case fallthrough
        commit: 3f61113c276ffe52380cec159b47e6024249ee2d
[16/18] cmd: pmic: annotate switch/case fallthrough
        commit: d29a90c8ce4a2e27f502f5ac5a051f7bcfd66e11
[17/18] cmd: spl: annotate switch/case fallthrough
        commit: 9ce2986e7e57277bac3c528412c0bb4443b7003a
-- 
Tom




More information about the U-Boot mailing list