Skip to contentSkip to conversation

pasemi_mac: fix typo

PATCH Applied Olof Johansson 2 participants 2 messages Oct 20, 2007 – Oct 24, 2007

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

PATCH 1/1 pasemi_mac: fix typo

Add missing &:

drivers/net/pasemi_mac.c: In function 'pasemi_mac_clean_rx':
drivers/net/pasemi_mac.c:553: warning: passing argument 1 of 'prefetch' makes pointer from integer without a cast

drivers/net/pasemi_mac.c +1 -1
index 9f9a421..ab4d309 100644
@@ -550,7 +550,7 @@ static int pasemi_mac_clean_rx(struct pasemi_mac *mac, int limit)
 
 	n = mac->rx->next_to_clean;
 
-	prefetch(RX_RING(mac, n));
+	prefetch(&RX_RING(mac, n));
 
 	for (count = 0; count < limit; count++) {
 		macrx = RX_RING(mac, n);
Applied
#1 lore raw
Quoted 14 lines · Olof Johansson

Add missing &:

drivers/net/pasemi_mac.c: In function 'pasemi_mac_clean_rx':
drivers/net/pasemi_mac.c:553: warning: passing argument 1 of 'prefetch' makes pointer from integer without a cast

drivers/net/pasemi_mac.c +0 -0
index 9f9a421..ab4d309 100644

drivers/net/pasemi_mac.c static int pasemi_mac_clean_rx(struct pasemi_mac *mac, int limit) · line 556

Quoted 8 lines
drivers/net/pasemi_mac.c +1 -1
@@ -550,7 +550,7 @@ static int pasemi_mac_clean_rx(struct pasemi_mac *mac, int limit)
 
 	n = mac->rx->next_to_clean;
 
-	prefetch(RX_RING(mac, n));
+	prefetch(&RX_RING(mac, n));
 
 	for (count = 0; count < limit; count++) {
 		macrx = RX_RING(mac, n);

applied