2003-05-14 21:23:11

by Alex Davis

[permalink] [raw]
Subject: [PATCH] fix kernel link error with 2.4.21rc2ac2 using gcc 3.3

--- ./net/core/rtnetlink.c.old Wed May 14 18:38:59 2003
+++ ./net/core/rtnetlink.c Wed May 14 18:38:37 2003
@@ -394,7 +394,7 @@
* Malformed skbs with wrong lengths of messages are discarded silently.
*/

-extern __inline__ int rtnetlink_rcv_skb(struct sk_buff *skb)
+extern int rtnetlink_rcv_skb(struct sk_buff *skb)
{
int err;
struct nlmsghdr * nlh;


Note: this problem exists in 2.4.21rc1 as well.

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com


2003-05-15 02:52:56

by David Miller

[permalink] [raw]
Subject: Re: [PATCH] fix kernel link error with 2.4.21rc2ac2 using gcc 3.3

On Wed, 2003-05-14 at 14:35, Alex Davis wrote:
> -extern __inline__ int rtnetlink_rcv_skb(struct sk_buff *skb)
> +extern int rtnetlink_rcv_skb(struct sk_buff *skb)

Fix is wrong, mark it static instead. That's what I'm
doing in my tree.

--
David S. Miller <[email protected]>