* [PATCH net-next] net: phy: broadcom: don't export RDB/legacy access methods
@ 2020-05-30 20:34 Michael Walle
2020-05-30 20:40 ` Florian Fainelli
2020-06-01 19:03 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Michael Walle @ 2020-05-30 20:34 UTC (permalink / raw)
To: netdev, linux-kernel
Cc: Andrew Lunn, Florian Fainelli, Heiner Kallweit, Russell King,
David S . Miller, Jakub Kicinski, Michael Walle,
kbuild test robot
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: 11ecf8c55b91 ("net: phy: broadcom: add cable test support")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Michael Walle <michael@walle.cc>
---
Hi,
this patch contains a Fixes tag, but is sent to the net-next because the
commit which is fixed is only in net-next.
-michael
drivers/net/phy/bcm-phy-lib.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/net/phy/bcm-phy-lib.c b/drivers/net/phy/bcm-phy-lib.c
index cb92786e3ded..ef6825b30323 100644
--- a/drivers/net/phy/bcm-phy-lib.c
+++ b/drivers/net/phy/bcm-phy-lib.c
@@ -583,18 +583,16 @@ int bcm_phy_enable_jumbo(struct phy_device *phydev)
}
EXPORT_SYMBOL_GPL(bcm_phy_enable_jumbo);
-int __bcm_phy_enable_rdb_access(struct phy_device *phydev)
+static int __bcm_phy_enable_rdb_access(struct phy_device *phydev)
{
return __bcm_phy_write_exp(phydev, BCM54XX_EXP_REG7E, 0);
}
-EXPORT_SYMBOL_GPL(__bcm_phy_enable_rdb_access);
-int __bcm_phy_enable_legacy_access(struct phy_device *phydev)
+static int __bcm_phy_enable_legacy_access(struct phy_device *phydev)
{
return __bcm_phy_write_rdb(phydev, BCM54XX_RDB_REG0087,
BCM54XX_ACCESS_MODE_LEGACY_EN);
}
-EXPORT_SYMBOL_GPL(__bcm_phy_enable_legacy_access);
static int _bcm_phy_cable_test_start(struct phy_device *phydev, bool is_rdb)
{
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: phy: broadcom: don't export RDB/legacy access methods
2020-05-30 20:34 [PATCH net-next] net: phy: broadcom: don't export RDB/legacy access methods Michael Walle
@ 2020-05-30 20:40 ` Florian Fainelli
2020-06-01 19:03 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2020-05-30 20:40 UTC (permalink / raw)
To: Michael Walle, netdev, linux-kernel
Cc: Andrew Lunn, Heiner Kallweit, Russell King, David S . Miller,
Jakub Kicinski, kbuild test robot
On 5/30/2020 1:34 PM, Michael Walle wrote:
> 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: 11ecf8c55b91 ("net: phy: broadcom: add cable test support")
> Reported-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: phy: broadcom: don't export RDB/legacy access methods
2020-05-30 20:34 [PATCH net-next] net: phy: broadcom: don't export RDB/legacy access methods Michael Walle
2020-05-30 20:40 ` Florian Fainelli
@ 2020-06-01 19:03 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2020-06-01 19:03 UTC (permalink / raw)
To: michael
Cc: netdev, linux-kernel, andrew, f.fainelli, hkallweit1, linux, kuba,
lkp
From: Michael Walle <michael@walle.cc>
Date: Sat, 30 May 2020 22:34:04 +0200
> 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: 11ecf8c55b91 ("net: phy: broadcom: add cable test support")
> Reported-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Michael Walle <michael@walle.cc>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-01 19:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-30 20:34 [PATCH net-next] net: phy: broadcom: don't export RDB/legacy access methods Michael Walle
2020-05-30 20:40 ` Florian Fainelli
2020-06-01 19:03 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).