tree: https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git for-net-next head: 680cba277b9779591e673100f6896e5baed7a180 commit: b8791270afcc93fac33133e28a7de74dee511707 [36/40] netfilter: remove reroute indirection in struct nf_afinfo config: xtensa-allmodconfig (attached as .config) compiler: xtensa-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 b8791270afcc93fac33133e28a7de74dee511707 # save the attached .config to linux build tree make.cross ARCH=xtensa All errors (new ones prefixed by >>): In file included from net/netfilter/utils.c:4:0: include/linux/netfilter_ipv6.h:40:8: error: unknown type name 'inline__sum16' static inline__sum16 nf_ip6_checksum_partial(struct sk_buff *skb, ^~~~~~~~~~~~~ net/netfilter/utils.c: In function 'nf_reroute': >> net/netfilter/utils.c:56:24: error: passing argument 1 of 'nf_ip6_reroute' from incompatible pointer type [-Werror=incompatible-pointer-types] ret = nf_ip6_reroute(skb, entry); ^~~ In file included from net/netfilter/utils.c:4:0: include/linux/netfilter_ipv6.h:53:19: note: expected 'struct net *' but argument is of type 'struct sk_buff *' static inline int nf_ip6_reroute(struct net *net, struct sk_buff *skb, ^~~~~~~~~~~~~~ net/netfilter/utils.c:56:29: error: passing argument 2 of 'nf_ip6_reroute' from incompatible pointer type [-Werror=incompatible-pointer-types] ret = nf_ip6_reroute(skb, entry); ^~~~~ In file included from net/netfilter/utils.c:4:0: include/linux/netfilter_ipv6.h:53:19: note: expected 'struct sk_buff *' but argument is of type 'struct nf_queue_entry *' static inline int nf_ip6_reroute(struct net *net, struct sk_buff *skb, ^~~~~~~~~~~~~~ >> net/netfilter/utils.c:56:9: error: too few arguments to function 'nf_ip6_reroute' ret = nf_ip6_reroute(skb, entry); ^~~~~~~~~~~~~~ In file included from net/netfilter/utils.c:4:0: include/linux/netfilter_ipv6.h:53:19: note: declared here static inline int nf_ip6_reroute(struct net *net, struct sk_buff *skb, ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- In file included from net//ipv6/netfilter.c:11:0: include/linux/netfilter_ipv6.h:40:8: error: unknown type name 'inline__sum16' static inline__sum16 nf_ip6_checksum_partial(struct sk_buff *skb, ^~~~~~~~~~~~~ net//ipv6/netfilter.c:82:6: error: redefinition of 'nf_ip6_saveroute' void nf_ip6_saveroute(const struct sk_buff *skb, struct nf_queue_entry *entry) ^~~~~~~~~~~~~~~~ In file included from net//ipv6/netfilter.c:11:0: include/linux/netfilter_ipv6.h:58:20: note: previous definition of 'nf_ip6_saveroute' was here static inline void nf_ip6_saveroute(const struct sk_buff *skb, ^~~~~~~~~~~~~~~~ >> net//ipv6/netfilter.c:96:5: error: conflicting types for 'nf_ip6_reroute' int nf_ip6_reroute(struct sk_buff *skb, const struct nf_queue_entry *entry) ^~~~~~~~~~~~~~ In file included from net//ipv6/netfilter.c:11:0: include/linux/netfilter_ipv6.h:53:19: note: previous definition of 'nf_ip6_reroute' was here static inline int nf_ip6_reroute(struct net *net, struct sk_buff *skb, ^~~~~~~~~~~~~~ net//ipv6/netfilter.c:110:5: error: redefinition of 'nf_ip6_route' int nf_ip6_route(struct net *net, struct dst_entry **dst, struct flowi *fl, ^~~~~~~~~~~~ In file included from net//ipv6/netfilter.c:11:0: include/linux/netfilter_ipv6.h:48:19: note: previous definition of 'nf_ip6_route' was here static inline int nf_ip6_route(struct net *net, struct dst_entry **dst, ^~~~~~~~~~~~ net//ipv6/netfilter.c:133:9: error: redefinition of 'nf_ip6_checksum' __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, ^~~~~~~~~~~~~~~ In file included from net//ipv6/netfilter.c:11:0: include/linux/netfilter_ipv6.h:35:23: note: previous definition of 'nf_ip6_checksum' was here static inline __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, ^~~~~~~~~~~~~~~ net//ipv6/netfilter.c:166:9: error: conflicting types for 'nf_ip6_checksum_partial' __sum16 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook, ^~~~~~~~~~~~~~~~~~~~~~~ In file included from net//ipv6/netfilter.c:11:0: include/linux/netfilter_ipv6.h:40:22: note: previous definition of 'nf_ip6_checksum_partial' was here static inline__sum16 nf_ip6_checksum_partial(struct sk_buff *skb, ^~~~~~~~~~~~~~~~~~~~~~~ include/linux/netfilter_ipv6.h:40:22: warning: 'nf_ip6_checksum_partial' defined but not used [-Wunused-function] vim +/nf_ip6_reroute +56 net/netfilter/utils.c > 4 #include <linux/netfilter_ipv6.h> 5 #include <net/netfilter/nf_queue.h> 6 7 __sum16 nf_checksum(struct sk_buff *skb, unsigned int hook, 8 unsigned int dataoff, u_int8_t protocol, 9 unsigned short family) 10 { 11 __sum16 csum = 0; 12 13 switch (family) { 14 case AF_INET: 15 csum = nf_ip_checksum(skb, hook, dataoff, protocol); 16 break; 17 case AF_INET6: 18 csum = nf_ip6_checksum(skb, hook, dataoff, protocol); 19 break; 20 } 21 22 return csum; 23 } 24 EXPORT_SYMBOL_GPL(nf_checksum); 25 26 __sum16 nf_checksum_partial(struct sk_buff *skb, unsigned int hook, 27 unsigned int dataoff, unsigned int len, 28 u_int8_t protocol, unsigned short family) 29 { 30 __sum16 csum = 0; 31 32 switch (family) { 33 case AF_INET: 34 csum = nf_ip_checksum_partial(skb, hook, dataoff, len, 35 protocol); 36 break; 37 case AF_INET6: 38 csum = nf_ip6_checksum_partial(skb, hook, dataoff, len, 39 protocol); 40 break; 41 } 42 43 return csum; 44 } 45 EXPORT_SYMBOL_GPL(nf_checksum_partial); 46 47 int nf_reroute(struct sk_buff *skb, struct nf_queue_entry *entry) 48 { 49 int ret; 50 51 switch (entry->state.pf) { 52 case AF_INET: 53 ret = nf_ip_reroute(skb, entry); 54 break; 55 case AF_INET6: > 56 ret = nf_ip6_reroute(skb, entry); 57 break; 58 } 59 60 return ret; 61 } 62 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip