Skip to contentSkip to conversation

Fix compile error in drivers/net/mv643xx_eth.c

PATCH In review Takashi Iwai 2 participants 3 messages Jul 4, 2008

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

PATCH 1/1 Fix compile error in drivers/net/mv643xx_eth.c

drivers/net/mv643xx_eth.c: In function 'mv643xx_eth_netpoll':
drivers/net/mv643xx_eth.c:2115: error: 'INT_CAUSE_EXT' undeclared (first use in this function) drivers/net/mv643xx_eth.c:2115: error: (Each undeclared identifier is reported only once drivers/net/mv643xx_eth.c:2115: error: for each function it appears in.

---

drivers/net/mv643xx_eth.c +2 -1
index 83a877f..cb2c065 100644
@@ -2112,7 +2112,8 @@ static void mv643xx_eth_netpoll(struct net_device *dev)
 
 	mv643xx_eth_irq(dev->irq, dev);
 
-	wrl(mp, INT_MASK(mp->port_num), INT_TX_END | INT_RX | INT_CAUSE_EXT);
+	wrl(mp, INT_MASK(mp->port_num),
+	    INT_TX_END | INT_RX | INT_CAUSE_EXT(mp->port_num));
 }
 #endif
 
#1 lore raw
Quoted 13 lines · Takashi Iwai

drivers/net/mv643xx_eth.c: In function 'mv643xx_eth_netpoll':
drivers/net/mv643xx_eth.c:2115: error: 'INT_CAUSE_EXT' undeclared (first use in this function) drivers/net/mv643xx_eth.c:2115: error: (Each undeclared identifier is reported only once drivers/net/mv643xx_eth.c:2115: error: for each function it appears in.

---

drivers/net/mv643xx_eth.c +0 -0
index 83a877f..cb2c065 100644

drivers/net/mv643xx_eth.c static void mv643xx_eth_netpoll(struct net_device *dev) · line 2116

Quoted 6 lines
drivers/net/mv643xx_eth.c +2 -1
@@ -2112,7 +2112,8 @@ static void mv643xx_eth_netpoll(struct net_device *dev)
 
 	mv643xx_eth_irq(dev->irq, dev);
 
-	wrl(mp, INT_MASK(mp->port_num), INT_TX_END | INT_RX | INT_CAUSE_EXT);
+	wrl(mp, INT_MASK(mp->port_num),
+	    INT_TX_END | INT_RX | INT_CAUSE_EXT(mp->port_num));

You are ORing the _address_ of the interrupt status register into the interupt mask register. How do you expect that to work?

This is the proper fix, which I will re-submit shortly:

	http://marc.info/?l=linux-kernel&m=121498695309851&w=2
#2 lore raw

At Fri, 4 Jul 2008 18:49:55 +0200,

Quoted 26 lines · Lennert Buytenhek
Quoted 13 lines · Takashi Iwai

drivers/net/mv643xx_eth.c: In function 'mv643xx_eth_netpoll':
drivers/net/mv643xx_eth.c:2115: error: 'INT_CAUSE_EXT' undeclared (first use in this function) drivers/net/mv643xx_eth.c:2115: error: (Each undeclared identifier is reported only once drivers/net/mv643xx_eth.c:2115: error: for each function it appears in.

---

drivers/net/mv643xx_eth.c +0 -0
index 83a877f..cb2c065 100644

drivers/net/mv643xx_eth.c static void mv643xx_eth_netpoll(struct net_device *dev) · line 2116

Quoted 6 lines
drivers/net/mv643xx_eth.c +2 -1
@@ -2112,7 +2112,8 @@ static void mv643xx_eth_netpoll(struct net_device *dev)
 
 	mv643xx_eth_irq(dev->irq, dev);
 
-	wrl(mp, INT_MASK(mp->port_num), INT_TX_END | INT_RX | INT_CAUSE_EXT);
+	wrl(mp, INT_MASK(mp->port_num),
+	    INT_TX_END | INT_RX | INT_CAUSE_EXT(mp->port_num));

You are ORing the _address_ of the interrupt status register into the interupt mask register. How do you expect that to work?

Quoted 3 lines

This is the proper fix, which I will re-submit shortly:

	http://marc.info/?l=linux-kernel&m=121498695309851&w=2

Just my ignorance, disregard my broken patch.

But why the heck is this still hanging for so long time? The linux-next tree is built everyday, and why such an obvious fix isn't picked up...?

thanks,

Takashi