tree: https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git for-net-next head: 680cba277b9779591e673100f6896e5baed7a180 commit: 5bc248f667347360c04b4774c038f285391c4df9 [33/40] netfilter: remove checksum_partial 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 5bc248f667347360c04b4774c038f285391c4df9 # save the attached .config to linux build tree make.cross ARCH=xtensa All errors (new ones prefixed by >>): In file included from net/bridge/br_netfilter_hooks.c:30:0: >> include/linux/netfilter_ipv6.h:36:8: error: unknown type name 'inline__sum16' static inline__sum16 nf_ip6_checksum_partial(struct sk_buff *skb, ^~~~~~~~~~~~~ include/linux/netfilter_ipv6.h:36:22: warning: 'nf_ip6_checksum_partial' defined but not used [-Wunused-function] static inline__sum16 nf_ip6_checksum_partial(struct sk_buff *skb, ^~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/uapi/linux/netfilter_ipv6/ip6_tables.h:22:0, from include/linux/netfilter_ipv6/ip6_tables.h:24, from include/net/netfilter/nf_tables_ipv6.h:5, from net/bridge/netfilter/nf_tables_bridge.c:19: >> include/linux/netfilter_ipv6.h:36:8: error: unknown type name 'inline__sum16' static inline__sum16 nf_ip6_checksum_partial(struct sk_buff *skb, ^~~~~~~~~~~~~ net/bridge/netfilter/nf_tables_bridge.c:130:3: error: 'const struct nf_afinfo' has no member named 'checksum' .checksum = nf_br_checksum, ^~~~~~~~ net/bridge/netfilter/nf_tables_bridge.c:130:28: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .checksum = nf_br_checksum, ^~~~~~~~~~~~~~ net/bridge/netfilter/nf_tables_bridge.c:130:28: note: (near initialization for 'nf_br_afinfo.route') net/bridge/netfilter/nf_tables_bridge.c:131:3: error: 'const struct nf_afinfo' has no member named 'checksum_partial' .checksum_partial = nf_br_checksum_partial, ^~~~~~~~~~~~~~~~ net/bridge/netfilter/nf_tables_bridge.c:131:28: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .checksum_partial = nf_br_checksum_partial, ^~~~~~~~~~~~~~~~~~~~~~ net/bridge/netfilter/nf_tables_bridge.c:131:28: note: (near initialization for 'nf_br_afinfo.saveroute') In file included from include/uapi/linux/netfilter_ipv6/ip6_tables.h:22:0, from include/linux/netfilter_ipv6/ip6_tables.h:24, from include/net/netfilter/nf_tables_ipv6.h:5, from net/bridge/netfilter/nf_tables_bridge.c:19: include/linux/netfilter_ipv6.h:36:22: warning: 'nf_ip6_checksum_partial' defined but not used [-Wunused-function] static inline__sum16 nf_ip6_checksum_partial(struct sk_buff *skb, ^~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- In file included from net/netfilter/utils.c:4:0: >> include/linux/netfilter_ipv6.h:36:8: error: unknown type name 'inline__sum16' static inline__sum16 nf_ip6_checksum_partial(struct sk_buff *skb, ^~~~~~~~~~~~~ vim +/inline__sum16 +36 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 #else 31 static inline __sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, 32 unsigned int dataoff, u_int8_t protocol) 33 { 34 return 0; 35 } > 36 static inline__sum16 nf_ip6_checksum_partial(struct sk_buff *skb, 37 unsigned int hook, 38 unsigned int dataoff, 39 unsigned int len, 40 u_int8_t protocol) 41 { 42 return 0; 43 } 44 #endif 45 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip