Re: [PATCH][2.6.8-rc1-mm1] ipv6/route.c gcc-341 fix inline

From: Con Kolivas
Date: Sun Jul 25 2004 - 05:15:49 EST


Con Kolivas wrote:
Fixes the inline error when compiling net/ipv6/route.c with gcc-3.4.1

oops. Missing a hunk.

Signed-off-by: Con Kolivas <kernel@xxxxxxxxxxx> Index: linux-2.6.8-rc1-mm1/net/ipv6/route.c
===================================================================
--- linux-2.6.8-rc1-mm1.orig/net/ipv6/route.c 2004-07-25 19:51:31.174800809 +1000
+++ linux-2.6.8-rc1-mm1/net/ipv6/route.c 2004-07-25 20:11:03.881562316 +1000
@@ -584,7 +584,7 @@
/* Protected by rt6_lock. */
static struct dst_entry *ndisc_dst_gc_list;
static int ipv6_get_mtu(struct net_device *dev);
-static inline unsigned int ipv6_advmss(unsigned int mtu);
+static unsigned int ipv6_advmss(unsigned int mtu);

struct dst_entry *ndisc_dst_alloc(struct net_device *dev,
struct neighbour *neigh,
@@ -692,7 +692,7 @@
return mtu;
}

-static inline unsigned int ipv6_advmss(unsigned int mtu)
+static unsigned int ipv6_advmss(unsigned int mtu)
{
mtu -= sizeof(struct ipv6hdr) + sizeof(struct tcphdr);

Attachment: signature.asc
Description: OpenPGP digital signature