Skip to contentSkip to conversation

net: kirkwood_egiga.c: fixed build warning

PATCH New Prafulla Wadaskar 2 participants 2 messages Sep 9, 2009 – Oct 5, 2009 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: kirkwood_egiga.c: fixed build warning

if link up detection code is disabled through config option, it gives build warning. This patch fixes the same

---
Changelog:
v2: unwanted commit in v1 patch removed

 drivers/net/kirkwood_egiga.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/net/kirkwood_egiga.c +3 -1
index 479035d..07a86cd 100644
@@ -400,8 +400,10 @@ static int kwgbe_init(struct eth_device *dev)
 {
 	struct kwgbe_device *dkwgbe = to_dkwgbe(dev);
 	struct kwgbe_registers *regs = dkwgbe->regs;
+#if (defined (CONFIG_MII) || defined (CONFIG_CMD_MII)) \
+	 && defined (CONFIG_SYS_FAULT_ECHO_LINK_DOWN)
 	int i;
-
+#endif
 	/* setup RX rings */
 	kwgbe_init_rx_desc_ring(dkwgbe);
 
Signature · 1 line
1.5.3.3
Applied
#1 lore raw

PATCH v2 1/1 net: kirkwood_egiga.c: fixed build warning

Hi Prafulla,

Quoted 18 lines · Prafulla Wadaskar

if link up detection code is disabled through config option, it gives build warning. This patch fixes the same

---
Changelog:
v2: unwanted commit in v1 patch removed

 drivers/net/kirkwood_egiga.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/net/kirkwood_egiga.c +0 -0
index 479035d..07a86cd 100644
@@ -400,8 +400,10 @@ static int kwgbe_init(struct eth_device *dev)
 {

drivers/net/kirkwood_egiga.c static int kwgbe_init(struct eth_device *dev) · line 409

Quoted 10 lines
drivers/net/kirkwood_egiga.c +3 -1
 	struct kwgbe_device *dkwgbe = to_dkwgbe(dev);
 	struct kwgbe_registers *regs = dkwgbe->regs;
+#if (defined (CONFIG_MII) || defined (CONFIG_CMD_MII)) \
+	 && defined (CONFIG_SYS_FAULT_ECHO_LINK_DOWN)
 	int i;
-
+#endif
 	/* setup RX rings */
 	kwgbe_init_rx_desc_ring(dkwgbe);
 

Applied to net repo.

thanks,
Ben