Skip to content

Commit 3190ca3

Browse files
mwalledavem330
authored andcommitted
net: phy: broadcom: don't export RDB/legacy access methods
Don't export __bcm_phy_enable_rdb_access() and __bcm_phy_enable_legacy_access() functions. They aren't used outside this module and it was forgotten to provide a prototype for these functions. Just make them static for now. Fixes: 11ecf8c ("net: phy: broadcom: add cable test support") Reported-by: kbuild test robot <[email protected]> Signed-off-by: Michael Walle <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 96aa1b2 commit 3190ca3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/net/phy/bcm-phy-lib.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,18 +583,16 @@ int bcm_phy_enable_jumbo(struct phy_device *phydev)
583583
}
584584
EXPORT_SYMBOL_GPL(bcm_phy_enable_jumbo);
585585

586-
int __bcm_phy_enable_rdb_access(struct phy_device *phydev)
586+
static int __bcm_phy_enable_rdb_access(struct phy_device *phydev)
587587
{
588588
return __bcm_phy_write_exp(phydev, BCM54XX_EXP_REG7E, 0);
589589
}
590-
EXPORT_SYMBOL_GPL(__bcm_phy_enable_rdb_access);
591590

592-
int __bcm_phy_enable_legacy_access(struct phy_device *phydev)
591+
static int __bcm_phy_enable_legacy_access(struct phy_device *phydev)
593592
{
594593
return __bcm_phy_write_rdb(phydev, BCM54XX_RDB_REG0087,
595594
BCM54XX_ACCESS_MODE_LEGACY_EN);
596595
}
597-
EXPORT_SYMBOL_GPL(__bcm_phy_enable_legacy_access);
598596

599597
static int _bcm_phy_cable_test_start(struct phy_device *phydev, bool is_rdb)
600598
{

0 commit comments

Comments
 (0)