mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] net: phy: make locally used of_phy_register_fixed_link() static
@ 2016-06-15  6:25 Antony Pavlov
  2016-06-16 13:48 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2016-06-15  6:25 UTC (permalink / raw)
  To: barebox

The patch fixes this compiler's warning:

    drivers/net/phy/phy.c:303:20: warning: no previous prototype for
    ‘of_phy_register_fixed_link’ [-Wmissing-prototypes]

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 drivers/net/phy/phy.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index ed69d9b..13b8324 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -300,7 +300,8 @@ void phy_unregister_device(struct phy_device *phydev)
 	phydev->registered = 0;
 }
 
-struct phy_device *of_phy_register_fixed_link(struct device_node *np, struct eth_device *edev)
+static struct phy_device *of_phy_register_fixed_link(struct device_node *np,
+						struct eth_device *edev)
 {
 	struct phy_device *phydev;
 
-- 
2.7.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-16 13:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-15  6:25 [PATCH] net: phy: make locally used of_phy_register_fixed_link() static Antony Pavlov
2016-06-16 13:48 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox