Re: randconfig build error with next-20140911, in net/ipv6/netfilter/nf_nat_masquerade_ipv6.c
From: Pablo Neira Ayuso
Date: Thu Sep 11 2014 - 11:01:16 EST
On Thu, Sep 11, 2014 at 07:41:33AM -0700, Jim Davis wrote:
> Building with the attached random configuration file,
>
> net/ipv6/netfilter/nf_nat_masquerade_ipv6.c: In function
> ânf_nat_masquerade_ipv6â:
> net/ipv6/netfilter/nf_nat_masquerade_ipv6.c:41:14: error: âstruct
> nf_conn_natâ has no member named âmasq_indexâ
> nfct_nat(ct)->masq_index = out->ifindex;
> ^
> net/ipv6/netfilter/nf_nat_masquerade_ipv6.c: In function âdevice_cmpâ:
> net/ipv6/netfilter/nf_nat_masquerade_ipv6.c:61:12: error: âconst
> struct nf_conn_natâ has no member named âmasq_indexâ
> return nat->masq_index == (int)(long)ifindex;
> ^
> net/ipv6/netfilter/nf_nat_masquerade_ipv6.c:62:1: warning: control
> reaches end of non-void function [-Wreturn-type]
> }
> ^
> make[3]: *** [net/ipv6/netfilter/nf_nat_masquerade_ipv6.o] Error 1
Patch attached, thanks for reporting.