* IPX changes introduce warning.
@ 2006-08-09 23:44 Dave Jones
2006-08-10 0:36 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Dave Jones @ 2006-08-09 23:44 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: David Miller, acme, netdev, greg
We've just added an implicit declaration in the latest tree..
net/ipx/af_ipx.c: In function 'ipx_rcv':
net/ipx/af_ipx.c:1648: error: implicit declaration of function 'ipxhdr'
(Yes, my builds fail on -Werror-implicit, so that things like this get caught early)
Probably something simple like a missing #include, but I'm heading out
the door right now :) I'll poke at it later if no-one has beaten me to it.
Dave
--
http://www.codemonkey.org.uk
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: IPX changes introduce warning.
2006-08-09 23:44 IPX changes introduce warning Dave Jones
@ 2006-08-10 0:36 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2006-08-10 0:36 UTC (permalink / raw)
To: davej; +Cc: shemminger, acme, netdev, greg
From: Dave Jones <davej@redhat.com>
Date: Wed, 9 Aug 2006 19:44:17 -0400
> We've just added an implicit declaration in the latest tree..
>
> net/ipx/af_ipx.c: In function 'ipx_rcv':
> net/ipx/af_ipx.c:1648: error: implicit declaration of function 'ipxhdr'
>
> (Yes, my builds fail on -Werror-implicit, so that things like this get caught early)
>
> Probably something simple like a missing #include, but I'm heading out
> the door right now :) I'll poke at it later if no-one has beaten me to it.
I could have sworn this compiled in my tree, sorry.
Fix below. Greg, I'll queue this up to you in a GIT tree along
with another fix later tonight.
Thanks Dave.
commit fff642570dc47ab76491fe81ee6599269c4eb13e
Author: David S. Miller <davem@sunset.davemloft.net>
Date: Wed Aug 9 17:36:15 2006 -0700
[IPX]: Fix typo, ipxhdr() --> ipx_hdr()
Noticed by Dave Jones.
Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/ipx/af_ipx.c b/net/ipx/af_ipx.c
index 4019642..bef3f61 100644
--- a/net/ipx/af_ipx.c
+++ b/net/ipx/af_ipx.c
@@ -1645,7 +1645,7 @@ static int ipx_rcv(struct sk_buff *skb,
if (!pskb_may_pull(skb, sizeof(struct ipxhdr)))
goto drop;
- ipx_pktsize = ntohs(ipxhdr(skb)->ipx_pktsize);
+ ipx_pktsize = ntohs(ipx_hdr(skb)->ipx_pktsize);
/* Too small or invalid header? */
if (ipx_pktsize < sizeof(struct ipxhdr) ||
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-08-10 0:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-09 23:44 IPX changes introduce warning Dave Jones
2006-08-10 0:36 ` David Miller
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).