[nf-next:for-net-next 34/40] include/linux/netfilter_ipv6.h:30:57: warning: 'struct nf_queue_entry' declared inside parameter list will not be visible outside of this definition or declaration

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git for-net-next
head:   680cba277b9779591e673100f6896e5baed7a180
commit: 887ad2114715e42b664377029ba07c714264bb87 [34/40] netfilter: remove saveroute indirection in struct nf_afinfo
config: sparc-defconfig (attached as .config)
compiler: sparc-linux-gcc (GCC) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 887ad2114715e42b664377029ba07c714264bb87
        # save the attached .config to linux build tree
        make.cross ARCH=sparc 

All warnings (new ones prefixed by >>):

   In file included from net/ipv6/af_inet6.c:45:0:
>> include/linux/netfilter_ipv6.h:30:57: warning: 'struct nf_queue_entry' declared inside parameter list will not be visible outside of this definition or declaration
    void nf_ip6_saveroute(const struct sk_buff *skb, struct nf_queue_entry *entry);
                                                            ^~~~~~~~~~~~~~

vim +30 include/linux/netfilter_ipv6.h

    23	
    24	#if defined(CONFIG_IPV6)
    25	__sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook,
    26				unsigned int dataoff, u_int8_t protocol);
    27	__sum16 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook,
    28					unsigned int dataoff, unsigned int len,
    29					u_int8_t protocol);
  > 30	void nf_ip6_saveroute(const struct sk_buff *skb, struct nf_queue_entry *entry);
    31	#else
    32	static inline __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook,
    33					      unsigned int dataoff, u_int8_t protocol)
    34	{
    35		return 0;
    36	}
    37	static inline__sum16 nf_ip6_checksum_partial(struct sk_buff *skb,
    38						     unsigned int hook,
    39						     unsigned int dataoff,
    40						     unsigned int len,
    41						     u_int8_t protocol)
    42	{
    43		return 0;
    44	}
    45	static inline void nf_ip6_saveroute(const struct sk_buff *skb,
    46					    struct nf_queue_entry *entry) {}
    47	#endif
    48	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux