Skip to contentSkip to conversation

net: phy: xgmiitorgmii: Fix non static symbol warning

PATCH Applied Wei Yongjun 4 participants 6 messages Aug 23, 2016 – Aug 24, 2016

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: phy: xgmiitorgmii: Fix non static symbol warning

From: Wei Yongjun <[email protected]>

Fixes the following sparse warning:

drivers/net/phy/xilinx_gmii2rgmii.c:61:5: warning:
symbol 'xgmiitorgmii_probe' was not declared. Should it be static?

---
 drivers/net/phy/xilinx_gmii2rgmii.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/xilinx_gmii2rgmii.c +1 -1
index e7a20ec..2e408b8 100644
@@ -58,7 +58,7 @@ static int xgmiitorgmii_read_status(struct phy_device *phydev)
 	return 0;
 }
 
-int xgmiitorgmii_probe(struct mdio_device *mdiodev)
+static int xgmiitorgmii_probe(struct mdio_device *mdiodev)
 {
 	struct device *dev = &mdiodev->dev;
 	struct device_node *np = dev->of_node, *phy_node;
maintainer
#1 lore raw
Quoted 1 line · Wei Yongjun

From: Wei Yongjun <[email protected]>

Hi Wei

No need for the additional From:

git am will use the one in the mail header as the author of the patch, and it is in the signed-off-by as well.

Thanks
Andrew

Quoted 29 lines

Fixes the following sparse warning:

drivers/net/phy/xilinx_gmii2rgmii.c:61:5: warning:
symbol 'xgmiitorgmii_probe' was not declared. Should it be static?

---
 drivers/net/phy/xilinx_gmii2rgmii.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/xilinx_gmii2rgmii.c +1 -1
index e7a20ec..2e408b8 100644
@@ -58,7 +58,7 @@ static int xgmiitorgmii_read_status(struct phy_device *phydev)
 	return 0;
 }
 
-int xgmiitorgmii_probe(struct mdio_device *mdiodev)
+static int xgmiitorgmii_probe(struct mdio_device *mdiodev)
 {
 	struct device *dev = &mdiodev->dev;
 	struct device_node *np = dev->of_node, *phy_node;

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw

Hi Andrew,

Quoted 8 lines · Andrew Lunn
Quoted 1 line · Wei Yongjun

From: Wei Yongjun <[email protected]>

Hi Wei

No need for the additional From:

git am will use the one in the mail header as the author of the patch, and it is in the signed-off-by as well.

The mail address which I sent the patch is different with the signed-of-by one, so git send-email will not remove the From line.

Regards,
Yongjun Wei

maintainer
#3 lore raw
Quoted 7 lines · Wei Yongjun

Hi Andrew,

Quoted 4 lines · Andrew Lunn
Quoted 1 line · Wei Yongjun

From: Wei Yongjun <[email protected]>

Hi Wei

Quoted 7 lines
Quoted 4 lines

No need for the additional From:

git am will use the one in the mail header as the author of the patch, and it is in the signed-off-by as well.

The mail address which I sent the patch is different with the signed-of-by one, so git send-email will not remove the From line.

Cool. git am strips it out of the commit message and uses it as the Author. I didn't know it did that.

Sorry for the noise,

Andrew

#4 lore raw
In reply to Wei Yongjun

HI,

Thanks for the patch..

Quoted 8 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

Fixes the following sparse warning:

drivers/net/phy/xilinx_gmii2rgmii.c:61:5: warning:
symbol 'xgmiitorgmii_probe' was not declared. Should it be static?

Acked by: Kedareswara rao Appana <[email protected]>

Quoted 18 lines
---
 drivers/net/phy/xilinx_gmii2rgmii.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/xilinx_gmii2rgmii.c +1 -1
index e7a20ec..2e408b8 100644
@@ -58,7 +58,7 @@ static int xgmiitorgmii_read_status(struct phy_device *phydev)
        return 0;
 }
 
-int xgmiitorgmii_probe(struct mdio_device *mdiodev)
+static int xgmiitorgmii_probe(struct mdio_device *mdiodev)
 {
        struct device *dev = &mdiodev->dev;
        struct device_node *np = dev->of_node, *phy_node;