net: sun8i-emac: annotate fallthrough
authorAndre Przywara <andre.przywara@arm.com>
Thu, 27 Mar 2025 15:33:02 +0000 (15:33 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 8 Apr 2025 22:23:51 +0000 (16:23 -0600)
commit5ddb7d1265633d855889831bcad0ee4b9ea4a0d3
treeabfe22e3012533b6353dc49e10cba0004e7f60f9
parent06b1ebfe521d2729cd97db7dfed62469081f0ec3
net: sun8i-emac: annotate fallthrough

The Allwinner sun8i EMAC driver uses an implicit switch/case fallthrough
when setting up the MAC/PHY communication protocol, to handle the case
when RMII is requested, but would not be supported by the hardware.

Add our "fallthrough;" statement-like macro before the default branch in
sun8i_emac_set_syscon(), to avoid a warning when GCC's
-Wimplicit-fallthrough warning option is enabled.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/net/sun8i_emac.c