Hi Robert, [auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Robert-Shearman/net-AF-specific-RTM_GETSTATS-attributes/20170114-095819 config: i386-randconfig-sb0-01141243 (attached as .config) compiler: gcc-5 (Debian 5.4.1-2) 5.4.1 20160904 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): In file included from include/net/netns/mib.h:4:0, from include/net/net_namespace.h:14, from include/linux/netdevice.h:43, from include/uapi/linux/if_arp.h:26, from include/linux/if_arp.h:27, from net/mpls/af_mpls.c:7: net/mpls/af_mpls.c: In function 'mpls_stats_inc_outucastpkts': >> include/net/ipv6.h:163:35: error: 'struct netns_mib' has no member named >> 'ipv6_statistics' mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\ ^ include/net/snmp.h:145:15: note: in definition of macro 'SNMP_UPD_PO_STATS' __typeof__((mib->mibs) + 0) ptr = mib->mibs; \ ^ include/net/ipv6.h:177:3: note: in expansion of macro '_DEVUPD' _DEVUPD(net, ipv6, , idev, field, val) ^ net/mpls/af_mpls.c:114:4: note: in expansion of macro 'IP6_UPD_PO_STATS' IP6_UPD_PO_STATS(dev_net(dev), in6dev, ^ >> include/net/ipv6.h:163:35: error: 'struct netns_mib' has no member named >> 'ipv6_statistics' mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\ ^ include/net/snmp.h:145:37: note: in definition of macro 'SNMP_UPD_PO_STATS' __typeof__((mib->mibs) + 0) ptr = mib->mibs; \ ^ include/net/ipv6.h:177:3: note: in expansion of macro '_DEVUPD' _DEVUPD(net, ipv6, , idev, field, val) ^ net/mpls/af_mpls.c:114:4: note: in expansion of macro 'IP6_UPD_PO_STATS' IP6_UPD_PO_STATS(dev_net(dev), in6dev, ^ In file included from include/asm-generic/percpu.h:6:0, from arch/x86/include/asm/percpu.h:542, from arch/x86/include/asm/preempt.h:5, from include/linux/preempt.h:59, from include/linux/spinlock.h:50, from include/linux/mm_types.h:8, from include/linux/kmemcheck.h:4, from include/linux/skbuff.h:18, from net/mpls/af_mpls.c:2: include/net/snmp.h:146:19: error: subscripted value is neither array nor pointer nor vector this_cpu_inc(ptr[basefield##PKTS]); \ ^ include/linux/percpu-defs.h:206:47: note: in definition of macro '__verify_pcpu_ptr' const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \ ^ include/linux/percpu-defs.h:496:33: note: in expansion of macro '__pcpu_size_call' #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ include/linux/percpu-defs.h:507:28: note: in expansion of macro 'this_cpu_add' #define this_cpu_inc(pcp) this_cpu_add(pcp, 1) ^ include/net/snmp.h:146:3: note: in expansion of macro 'this_cpu_inc' this_cpu_inc(ptr[basefield##PKTS]); \ ^ include/net/ipv6.h:163:7: note: in expansion of macro 'SNMP_UPD_PO_STATS' mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\ ^ include/net/ipv6.h:177:3: note: in expansion of macro '_DEVUPD' _DEVUPD(net, ipv6, , idev, field, val) ^ net/mpls/af_mpls.c:114:4: note: in expansion of macro 'IP6_UPD_PO_STATS' IP6_UPD_PO_STATS(dev_net(dev), in6dev, ^ include/net/snmp.h:146:19: error: subscripted value is neither array nor pointer nor vector this_cpu_inc(ptr[basefield##PKTS]); \ ^ include/linux/percpu-defs.h:363:16: note: in definition of macro '__pcpu_size_call' switch(sizeof(variable)) { \ ^ include/linux/percpu-defs.h:507:28: note: in expansion of macro 'this_cpu_add' #define this_cpu_inc(pcp) this_cpu_add(pcp, 1) ^ include/net/snmp.h:146:3: note: in expansion of macro 'this_cpu_inc' this_cpu_inc(ptr[basefield##PKTS]); \ ^ include/net/ipv6.h:163:7: note: in expansion of macro 'SNMP_UPD_PO_STATS' mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\ ^ include/net/ipv6.h:177:3: note: in expansion of macro '_DEVUPD' _DEVUPD(net, ipv6, , idev, field, val) ^ net/mpls/af_mpls.c:114:4: note: in expansion of macro 'IP6_UPD_PO_STATS' IP6_UPD_PO_STATS(dev_net(dev), in6dev, ^ In file included from arch/x86/include/asm/preempt.h:5:0, from include/linux/preempt.h:59, from include/linux/spinlock.h:50, from include/linux/mm_types.h:8, from include/linux/kmemcheck.h:4, from include/linux/skbuff.h:18, from net/mpls/af_mpls.c:2: include/net/snmp.h:146:19: error: subscripted value is neither array nor pointer nor vector this_cpu_inc(ptr[basefield##PKTS]); \ ^ arch/x86/include/asm/percpu.h:128:17: note: in definition of macro 'percpu_add_op' typedef typeof(var) pao_T__; \ ^ include/linux/percpu-defs.h:364:11: note: in expansion of macro 'this_cpu_add_1' case 1: stem##1(variable, __VA_ARGS__);break; \ ^ include/linux/percpu-defs.h:496:33: note: in expansion of macro '__pcpu_size_call' #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) ^ include/linux/percpu-defs.h:507:28: note: in expansion of macro 'this_cpu_add' #define this_cpu_inc(pcp) this_cpu_add(pcp, 1) ^ include/net/snmp.h:146:3: note: in expansion of macro 'this_cpu_inc' this_cpu_inc(ptr[basefield##PKTS]); \ ^ include/net/ipv6.h:163:7: note: in expansion of macro 'SNMP_UPD_PO_STATS' mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\ ^ include/net/ipv6.h:177:3: note: in expansion of macro '_DEVUPD' _DEVUPD(net, ipv6, , idev, field, val) ^ net/mpls/af_mpls.c:114:4: note: in expansion of macro 'IP6_UPD_PO_STATS' IP6_UPD_PO_STATS(dev_net(dev), in6dev, ^ include/net/snmp.h:146:19: error: subscripted value is neither array nor pointer nor vector vim +163 include/net/ipv6.h 8e7999c4 Pavel Emelyanov 2007-10-15 157 13415e46 Eric Dumazet 2016-04-27 158 #define _DEVUPD(net, statname, mod, idev, field, val) \ edf391ff Neil Horman 2009-04-27 159 ({ \ edf391ff Neil Horman 2009-04-27 160 struct inet6_dev *_idev = (idev); \ edf391ff Neil Horman 2009-04-27 161 if (likely(_idev != NULL)) \ 13415e46 Eric Dumazet 2016-04-27 162 mod##SNMP_UPD_PO_STATS((_idev)->stats.statname, field, (val)); \ 13415e46 Eric Dumazet 2016-04-27 @163 mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\ edf391ff Neil Horman 2009-04-27 164 }) edf391ff Neil Horman 2009-04-27 165 14878f75 David L Stevens 2007-09-16 166 /* MIBs */ :::::: The code at line 163 was first introduced by commit :::::: 13415e46c5915e2dac089de516369005fbc045f9 net: snmp: kill STATS_BH macros :::::: TO: Eric Dumazet <eduma...@google.com> :::::: CC: David S. Miller <da...@davemloft.net> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip