realtek: 5.15: fix warning for i2c_mii_valid_phy_id and i2c_mii_phy_addr
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 7 May 2023 00:44:05 +0000 (02:44 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:40 +0000 (03:15 +0200)
commitf938826a65dd9504b99aee19a6a31b69a442e5fd
tree2130ecf9b731c8f8d07cea1d9cf6103bf8a0cc70
parent7fa7cbc0b9fcc34bd0d4710664dcdadc723854c6
realtek: 5.15: fix warning for i2c_mii_valid_phy_id and i2c_mii_phy_addr

Rework exposing i2c_mii_valid_phy_id and i2c_mii_phy_addr in global
include.
Fix compilation warning:
In file included from drivers/net/phy/sfp.c:11:
./include/linux/mdio/mdio-i2c.h:27:21: error: 'i2c_mii_phy_addr' defined but not used [-Werror=unused-function]
   27 | static unsigned int i2c_mii_phy_addr(int phy_id)
      |                     ^~~~~~~~~~~~~~~~
./include/linux/mdio/mdio-i2c.h:22:13: error: 'i2c_mii_valid_phy_id' defined but not used [-Werror=unused-function]
   22 | static bool i2c_mii_valid_phy_id(int phy_id)
      |             ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/realtek/patches-5.15/711-net-phy-add-an-MDIO-SMBus-library.patch