ipv6/route.c gcc-341 fix inline
Subsystems (2)
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
Signed-off-by Con Kolivas <[email protected]>
net/ipv6/route.c +1 -1
@@ -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,
Quoted 1 line · Con Kolivas
Fixes the inline error when compiling
net/ipv6/route.cwith gcc-3.4.1
oops. Missing a hunk.
Signed-off-by Con Kolivas <[email protected]>
net/ipv6/route.c +2 -2
@@ -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 );
David S. Miller
AppliedQuoted 1 line · On Sun, 25 Jul 2004 19:47:32 +1000 Con Kolivas <[email protected]> wrote:
Fixes the inline error when compiling
net/ipv6/route.cwith gcc-3.4.1
Applied, thanks.
Please send this, just like any other networking patch, to [email protected] next time.