Skip to content

Commit 2e9f8ab

Browse files
arndbkuba-moo
authored andcommitted
mdio_bus: unhide mdio_bus_init prototype
mdio_bus_init() is either used as a local module_init() entry, or it gets called in phy_device.c. In the former case, there is no declaration, which causes a warning: drivers/net/phy/mdio_bus.c:1371:12: error: no previous prototype for 'mdio_bus_init' [-Werror=missing-prototypes] Remove the #ifdef around the declaration to avoid the warning.. Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 89dcd87 commit 2e9f8ab

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/linux/phy.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,10 +1900,8 @@ void phy_package_leave(struct phy_device *phydev);
19001900
int devm_phy_package_join(struct device *dev, struct phy_device *phydev,
19011901
int addr, size_t priv_size);
19021902

1903-
#if IS_ENABLED(CONFIG_PHYLIB)
19041903
int __init mdio_bus_init(void);
19051904
void mdio_bus_exit(void);
1906-
#endif
19071905

19081906
int phy_ethtool_get_strings(struct phy_device *phydev, u8 *data);
19091907
int phy_ethtool_get_sset_count(struct phy_device *phydev);

0 commit comments

Comments
 (0)