Skip to contentSkip to conversation

ipv6/route.c gcc-341 fix inline

PATCH Applied Con Kolivas 2 participants 3 messages Jul 25, 2004 – Jul 26, 2004

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

PATCH 1/1 ipv6/route.c gcc-341 fix inline

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

net/ipv6/route.c +1 -1
Index: linux-2.6.8-rc1-mm1/net/ipv6/route.c
===================================================================
@@ -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,
#1 lore raw
Quoted 1 line · Con Kolivas

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

oops. Missing a hunk.

net/ipv6/route.c +2 -2
Index: linux-2.6.8-rc1-mm1/net/ipv6/route.c
===================================================================
@@ -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);