Re: [PATCH] inet: Initialize per-netns inetpeer roots in net/ipv{4,6}/route.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jun 10, 2012 at 09:58:32AM +0800, Fengguang Wu wrote:
> On Sat, Jun 09, 2012 at 04:32:02PM -0700, David Miller wrote:
> > 
> > Instead of net/ipv4/inetpeer.c
> > 
> > Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
> > ---
> >  include/net/inetpeer.h |    9 +++++++
> >  net/ipv4/inetpeer.c    |   64 ++++++++++++------------------------------------
> >  net/ipv4/route.c       |   25 +++++++++++++++++++
> >  net/ipv6/route.c       |   34 ++++++++++++++++++++++++-
> >  4 files changed, 83 insertions(+), 49 deletions(-)
> 
> Dave,
> 
> It triggers some warnings:
> 
> WARNING: net/ipv6/ipv6.o(.text+0x1049c): Section mismatch in reference from the function ip6_route_cleanup() to the variable .init.data:ipv6_inetpeer_ops
> WARNING: net/ipv6/ipv6.o(.text+0x1049c): Section mismatch in reference from the function ip6_route_cleanup() to the variable .init.data:ipv6_inetpeer_ops
> WARNING: net/ipv6/built-in.o(.text+0x1049c): Section mismatch in reference from the function ip6_route_cleanup() to the variable .init.data:ipv6_inetpeer_ops
> WARNING: net/ipv6/built-in.o(.text+0x1049c): Section mismatch in reference from the function ip6_route_cleanup() to the variable .init.data:ipv6_inetpeer_ops
> WARNING: net/built-in.o(.text+0x92658): Section mismatch in reference from the function ip6_route_cleanup() to the variable .init.data:ipv6_inetpeer_ops
> WARNING: net/built-in.o(.text+0x92658): Section mismatch in reference from the function ip6_route_cleanup() to the variable .init.data:ipv6_inetpeer_ops
> WARNING: vmlinux.o(.text+0x710988): Section mismatch in reference from the function ip6_route_cleanup() to the variable .init.data:ipv6_inetpeer_ops
> WARNING: vmlinux.o(.text+0x710988): Section mismatch in reference from the function ip6_route_cleanup() to the variable .init.data:ipv6_inetpeer_ops

And in another config, an old error still triggers:

net/ipv4/inetpeer.c: In function ‘family_to_base’:
net/ipv4/inetpeer.c:397:50: error: ‘struct net’ has no member named ‘ipv6’
net/ipv4/inetpeer.c:398:1: warning: control reaches end of non-void function [-Wreturn-type]

I'm building this patch on top of net-next master.

Thanks,
Fengguang
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/containers



[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux