realtek: 5.15: replace fallthrough comment for rtl838x ethernet driver
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 7 May 2023 08:20:30 +0000 (10:20 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:40 +0000 (03:15 +0200)
Replace fallthrough comment with fallthrough macro for rtl838x ethernet
driver.
Fix compilarion warning:
drivers/net/ethernet/rtl838x_eth.c: In function 'rtl930x_mdio_reset':
drivers/net/ethernet/rtl838x_eth.c:1959:43: error: this statement may fall through [-Werror=implicit-fallthrough=]
 1959 |                         private_poll_mask |= BIT(i);
drivers/net/ethernet/rtl838x_eth.c:1961:17: note: here
 1961 |                 case PHY_INTERFACE_MODE_USXGMII:
      |                 ^~~~

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/realtek/files-5.15/drivers/net/ethernet/rtl838x_eth.c

index 06de0ada2aa4ee1a0c2b3142c9969e64f4cf913e..e9ebc7c73c85ce6ea95db2665e9f1d51b4abac42 100644 (file)
@@ -1958,7 +1958,7 @@ static int rtl930x_mdio_reset(struct mii_bus *bus)
                        break;                  /* Serdes: Value = 0 */
                case PHY_INTERFACE_MODE_HSGMII:
                        private_poll_mask |= BIT(i);
-                       /* fallthrough */
+                       fallthrough;
                case PHY_INTERFACE_MODE_USXGMII:
                        v |= BIT(mac_type_bit[i]);
                        uses_usxgmii = true;