From 9ba612191d8f343b6d9da1953f23204995d59d50 Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Thu, 30 Dec 2021 23:16:50 +0800 Subject: [PATCH] kmod-switch-bcm53xx: fixes build on kernel 5.15 Fixes: #8583, #8586 Signed-off-by: AmadeusGhost --- target/linux/generic/files/drivers/net/phy/b53/b53_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c index 030c5c86d..a6dab255c 100644 --- a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c +++ b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c @@ -529,7 +529,7 @@ static int b53_configure_ports_of(struct b53_device *dev) po |= PORT_OVERRIDE_SPEED_2000M; else po |= GMII_PO_SPEED_2000M; - /* fall through */ + __attribute__((__fallthrough__)); case 1000: po |= GMII_PO_SPEED_1000M; break;