mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
net: phy: stop exporting feature arrays which aren't used outside phylib
Stop exporting feature arrays which aren't used outside phylib. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://patch.msgid.link/01886672-4880-4ca8-b7b0-94d40f6e0ec5@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
ea47e70e47
commit
d3a0e217f8
|
|
@ -91,37 +91,28 @@ static const int phy_all_ports_features_array[7] = {
|
|||
ETHTOOL_LINK_MODE_Backplane_BIT,
|
||||
};
|
||||
|
||||
const int phy_10_100_features_array[4] = {
|
||||
static const int phy_10_100_features_array[4] = {
|
||||
ETHTOOL_LINK_MODE_10baseT_Half_BIT,
|
||||
ETHTOOL_LINK_MODE_10baseT_Full_BIT,
|
||||
ETHTOOL_LINK_MODE_100baseT_Half_BIT,
|
||||
ETHTOOL_LINK_MODE_100baseT_Full_BIT,
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(phy_10_100_features_array);
|
||||
|
||||
const int phy_basic_t1_features_array[3] = {
|
||||
static const int phy_basic_t1_features_array[3] = {
|
||||
ETHTOOL_LINK_MODE_TP_BIT,
|
||||
ETHTOOL_LINK_MODE_10baseT1L_Full_BIT,
|
||||
ETHTOOL_LINK_MODE_100baseT1_Full_BIT,
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(phy_basic_t1_features_array);
|
||||
|
||||
const int phy_basic_t1s_p2mp_features_array[2] = {
|
||||
static const int phy_basic_t1s_p2mp_features_array[2] = {
|
||||
ETHTOOL_LINK_MODE_TP_BIT,
|
||||
ETHTOOL_LINK_MODE_10baseT1S_P2MP_Half_BIT,
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(phy_basic_t1s_p2mp_features_array);
|
||||
|
||||
const int phy_gbit_features_array[2] = {
|
||||
static const int phy_gbit_features_array[2] = {
|
||||
ETHTOOL_LINK_MODE_1000baseT_Half_BIT,
|
||||
ETHTOOL_LINK_MODE_1000baseT_Full_BIT,
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(phy_gbit_features_array);
|
||||
|
||||
const int phy_10gbit_features_array[1] = {
|
||||
ETHTOOL_LINK_MODE_10000baseT_Full_BIT,
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(phy_10gbit_features_array);
|
||||
|
||||
static const int phy_eee_cap1_features_array[] = {
|
||||
ETHTOOL_LINK_MODE_100baseT_Full_BIT,
|
||||
|
|
@ -196,9 +187,8 @@ static void features_init(void)
|
|||
linkmode_set_bit_array(phy_gbit_features_array,
|
||||
ARRAY_SIZE(phy_gbit_features_array),
|
||||
phy_10gbit_features);
|
||||
linkmode_set_bit_array(phy_10gbit_features_array,
|
||||
ARRAY_SIZE(phy_10gbit_features_array),
|
||||
phy_10gbit_features);
|
||||
linkmode_set_bit(ETHTOOL_LINK_MODE_10000baseT_Full_BIT,
|
||||
phy_10gbit_features);
|
||||
|
||||
linkmode_set_bit_array(phy_eee_cap1_features_array,
|
||||
ARRAY_SIZE(phy_eee_cap1_features_array),
|
||||
|
|
|
|||
|
|
@ -54,11 +54,6 @@ extern __ETHTOOL_DECLARE_LINK_MODE_MASK(phy_eee_cap2_features) __ro_after_init;
|
|||
#define PHY_EEE_CAP2_FEATURES ((unsigned long *)&phy_eee_cap2_features)
|
||||
|
||||
extern const int phy_basic_ports_array[3];
|
||||
extern const int phy_10_100_features_array[4];
|
||||
extern const int phy_basic_t1_features_array[3];
|
||||
extern const int phy_basic_t1s_p2mp_features_array[2];
|
||||
extern const int phy_gbit_features_array[2];
|
||||
extern const int phy_10gbit_features_array[1];
|
||||
|
||||
/*
|
||||
* Set phydev->irq to PHY_POLL if interrupts are not supported,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user