Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: phy: remove function stubs

All callers of these functions depend on PHYLIB or select it directly
or indirectly by selecting PHYLINK. Stubs make sense for optional
functionality, but that's not the case here.

MDIO_XGENE usually is selected by NET_XGENE which also selects PHYLIB.
Add a dependency to PHYLIB nevertheless, in order not to break
randconfig builds.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/f7a69a1f-60e9-4ac0-8b7c-481e0cc850e7@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
52358dd6 f0cc3777

+1 -37
+1
drivers/net/mdio/Kconfig
··· 57 57 config MDIO_XGENE 58 58 tristate "APM X-Gene SoC MDIO bus controller" 59 59 depends on ARCH_XGENE || COMPILE_TEST 60 + depends on PHYLIB 60 61 help 61 62 This module provides a driver for the MDIO busses found in the 62 63 APM X-Gene SoC's.
-37
include/linux/phy.h
··· 1753 1753 struct phy_device *phy_device_create(struct mii_bus *bus, int addr, u32 phy_id, 1754 1754 bool is_c45, 1755 1755 struct phy_c45_device_ids *c45_ids); 1756 - #if IS_ENABLED(CONFIG_PHYLIB) 1757 1756 int fwnode_get_phy_id(struct fwnode_handle *fwnode, u32 *phy_id); 1758 1757 struct mdio_device *fwnode_mdio_find_device(struct fwnode_handle *fwnode); 1759 1758 struct phy_device *fwnode_phy_find_device(struct fwnode_handle *phy_fwnode); ··· 1760 1761 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45); 1761 1762 int phy_device_register(struct phy_device *phy); 1762 1763 void phy_device_free(struct phy_device *phydev); 1763 - #else 1764 - static inline int fwnode_get_phy_id(struct fwnode_handle *fwnode, u32 *phy_id) 1765 - { 1766 - return 0; 1767 - } 1768 - static inline 1769 - struct mdio_device *fwnode_mdio_find_device(struct fwnode_handle *fwnode) 1770 - { 1771 - return 0; 1772 - } 1773 - 1774 - static inline 1775 - struct phy_device *fwnode_phy_find_device(struct fwnode_handle *phy_fwnode) 1776 - { 1777 - return NULL; 1778 - } 1779 - 1780 - static inline 1781 - struct fwnode_handle *fwnode_get_phy_node(struct fwnode_handle *fwnode) 1782 - { 1783 - return NULL; 1784 - } 1785 - 1786 - static inline 1787 - struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) 1788 - { 1789 - return NULL; 1790 - } 1791 - 1792 - static inline int phy_device_register(struct phy_device *phy) 1793 - { 1794 - return 0; 1795 - } 1796 - 1797 - static inline void phy_device_free(struct phy_device *phydev) { } 1798 - #endif /* CONFIG_PHYLIB */ 1799 1764 void phy_device_remove(struct phy_device *phydev); 1800 1765 int phy_get_c45_ids(struct phy_device *phydev); 1801 1766 int phy_init_hw(struct phy_device *phydev);