Commit 9d422050 authored by ChenTao's avatar ChenTao Committed by David S. Miller

net: phy: bcm54140: Make a bunch of functions static

Fix the following warning:

drivers/net/phy/bcm54140.c:663:5: warning:
symbol 'bcm54140_did_interrupt' was not declared. Should it be static?
drivers/net/phy/bcm54140.c:672:5: warning:
symbol 'bcm54140_ack_intr' was not declared. Should it be static?
drivers/net/phy/bcm54140.c:684:5: warning:
symbol 'bcm54140_config_intr' was not declared. Should it be static?
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarChenTao <chentao107@huawei.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bcd3469b
...@@ -660,7 +660,7 @@ static int bcm54140_config_init(struct phy_device *phydev) ...@@ -660,7 +660,7 @@ static int bcm54140_config_init(struct phy_device *phydev)
BCM54140_RDB_C_PWR_ISOLATE, 0); BCM54140_RDB_C_PWR_ISOLATE, 0);
} }
int bcm54140_did_interrupt(struct phy_device *phydev) static int bcm54140_did_interrupt(struct phy_device *phydev)
{ {
int ret; int ret;
...@@ -669,7 +669,7 @@ int bcm54140_did_interrupt(struct phy_device *phydev) ...@@ -669,7 +669,7 @@ int bcm54140_did_interrupt(struct phy_device *phydev)
return (ret < 0) ? 0 : ret; return (ret < 0) ? 0 : ret;
} }
int bcm54140_ack_intr(struct phy_device *phydev) static int bcm54140_ack_intr(struct phy_device *phydev)
{ {
int reg; int reg;
...@@ -681,7 +681,7 @@ int bcm54140_ack_intr(struct phy_device *phydev) ...@@ -681,7 +681,7 @@ int bcm54140_ack_intr(struct phy_device *phydev)
return 0; return 0;
} }
int bcm54140_config_intr(struct phy_device *phydev) static int bcm54140_config_intr(struct phy_device *phydev)
{ {
struct bcm54140_priv *priv = phydev->priv; struct bcm54140_priv *priv = phydev->priv;
static const u16 port_to_imr_bit[] = { static const u16 port_to_imr_bit[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment