[U-Boot] [PATCH 3/5] wandboard: Fix sparse warning

Fabio Estevam festevam at gmail.com
Sat Feb 15 17:52:00 CET 2014


From: Fabio Estevam <fabio.estevam at freescale.com>

Add a prototype for board_phy_config() to fix the following sparse warning:

wandboard.c:200:5: warning: symbol 'board_phy_config' was not declared. Should it be static?

Cc: Joe Hershberger <joe.hershberger at ni.com>
Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
 board/wandboard/wandboard.c | 1 +
 include/phy.h               | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c
index dbced1c..6918614 100644
--- a/board/wandboard/wandboard.c
+++ b/board/wandboard/wandboard.c
@@ -25,6 +25,7 @@
 #include <miiphy.h>
 #include <netdev.h>
 #include <linux/fb.h>
+#include <phy.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/include/phy.h b/include/phy.h
index 1f22fa1..d3ecd63 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -234,6 +234,8 @@ int phy_smsc_init(void);
 int phy_teranetics_init(void);
 int phy_vitesse_init(void);
 
+int board_phy_config(struct phy_device *phydev);
+
 /* PHY UIDs for various PHYs that are referenced in external code */
 #define PHY_UID_TN2020	0x00a19410
 
-- 
1.8.1.2



More information about the U-Boot mailing list