* [PATCH] pasemi_mac: fix typo
@ 2007-10-20 19:10 Olof Johansson
2007-10-24 0:23 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Olof Johansson @ 2007-10-20 19:10 UTC (permalink / raw)
To: jgarzik; +Cc: netdev, linuxppc-dev
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
Signed-off-by: Olof Johansson <olof@lixom.net>
diff --git a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c
index 9f9a421..ab4d309 100644
--- a/drivers/net/pasemi_mac.c
+++ b/drivers/net/pasemi_mac.c
@@ -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);
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] pasemi_mac: fix typo
2007-10-20 19:10 [PATCH] pasemi_mac: fix typo Olof Johansson
@ 2007-10-24 0:23 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-10-24 0:23 UTC (permalink / raw)
To: Olof Johansson; +Cc: netdev, linuxppc-dev
Olof Johansson wrote:
> 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
>
>
> Signed-off-by: Olof Johansson <olof@lixom.net>
>
> diff --git a/drivers/net/pasemi_mac.c b/drivers/net/pasemi_mac.c
> index 9f9a421..ab4d309 100644
> --- a/drivers/net/pasemi_mac.c
> +++ b/drivers/net/pasemi_mac.c
> @@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-24 0:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-20 19:10 [PATCH] pasemi_mac: fix typo Olof Johansson
2007-10-24 0:23 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).