Re: [PATCH v2 nf-next 1/2] ipv6: remove dependency of nf_defrag_ipv6 on ipv6 module

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

 



Hi Florian,

I love your patch! Yet something to improve:

[auto build test ERROR on nf-next/master]

url:    https://github.com/0day-ci/linux/commits/Florian-Westphal/ipv6-remove-dependency-of-nf_defrag_ipv6-on-ipv6-module/20180714-051523
base:   https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git master
config: x86_64-randconfig-u0-07140609 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from include/asm-generic/percpu.h:7:0,
                    from arch/x86/include/asm/percpu.h:543,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:81,
                    from include/linux/spinlock.h:51,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from include/linux/stat.h:19,
                    from include/linux/module.h:10,
                    from net//openvswitch/conntrack.c:14:
   include/net/ipv6_frag.h: In function 'ip6frag_expire_frag_queue':
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   include/linux/percpu-defs.h:221:47: note: in definition of macro '__verify_pcpu_ptr'
     const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
                                                  ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   include/linux/percpu-defs.h:378:16: note: in definition of macro '__pcpu_size_call'
     switch(sizeof(variable)) {     \
                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
   In file included from arch/x86/include/asm/preempt.h:6:0,
                    from include/linux/preempt.h:81,
                    from include/linux/spinlock.h:51,
                    from include/linux/seqlock.h:36,
                    from include/linux/time.h:6,
                    from include/linux/stat.h:19,
                    from include/linux/module.h:10,
                    from net//openvswitch/conntrack.c:14:
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:129:17: note: in definition of macro 'percpu_add_op'
     typedef typeof(var) pao_T__;     \
                    ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:138:17: note: in definition of macro 'percpu_add_op'
     switch (sizeof(var)) {      \
                    ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:141:39: note: in definition of macro 'percpu_add_op'
       asm("incb "__percpu_arg(0) : "+m" (var)); \
                                          ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:143:39: note: in definition of macro 'percpu_add_op'
       asm("decb "__percpu_arg(0) : "+m" (var)); \
                                          ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:146:16: note: in definition of macro 'percpu_add_op'
           : "+m" (var)    \
                   ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:151:39: note: in definition of macro 'percpu_add_op'
       asm("incw "__percpu_arg(0) : "+m" (var)); \
                                          ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:153:39: note: in definition of macro 'percpu_add_op'
       asm("decw "__percpu_arg(0) : "+m" (var)); \
                                          ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:156:16: note: in definition of macro 'percpu_add_op'
           : "+m" (var)    \
                   ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:161:39: note: in definition of macro 'percpu_add_op'
       asm("incl "__percpu_arg(0) : "+m" (var)); \
                                          ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:163:39: note: in definition of macro 'percpu_add_op'
       asm("decl "__percpu_arg(0) : "+m" (var)); \
                                          ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:166:16: note: in definition of macro 'percpu_add_op'
           : "+m" (var)    \
                   ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro 'percpu_add_op'
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:173:39: note: in definition of macro 'percpu_add_op'
       asm("decq "__percpu_arg(0) : "+m" (var)); \
                                          ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:176:16: note: in definition of macro 'percpu_add_op'
           : "+m" (var)    \
                   ^
   include/linux/percpu-defs.h:379:11: note: in expansion of macro 'raw_cpu_add_1'
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:129:17: note: in definition of macro 'percpu_add_op'
     typedef typeof(var) pao_T__;     \
                    ^
   include/linux/percpu-defs.h:380:11: note: in expansion of macro 'raw_cpu_add_2'
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:138:17: note: in definition of macro 'percpu_add_op'
     switch (sizeof(var)) {      \
                    ^
   include/linux/percpu-defs.h:380:11: note: in expansion of macro 'raw_cpu_add_2'
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:141:39: note: in definition of macro 'percpu_add_op'
       asm("incb "__percpu_arg(0) : "+m" (var)); \
                                          ^
   include/linux/percpu-defs.h:380:11: note: in expansion of macro 'raw_cpu_add_2'
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^
>> include/net/ipv6.h:171:34: error: 'struct netns_mib' has no member named 'ipv6_statistics'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
                                     ^
   arch/x86/include/asm/percpu.h:143:39: note: in definition of macro 'percpu_add_op'
       asm("decb "__percpu_arg(0) : "+m" (var)); \
                                          ^
   include/linux/percpu-defs.h:380:11: note: in expansion of macro 'raw_cpu_add_2'
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^
   include/linux/percpu-defs.h:424:32: note: in expansion of macro '__pcpu_size_call'
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   include/linux/percpu-defs.h:460:2: note: in expansion of macro 'raw_cpu_add'
     raw_cpu_add(pcp, val);      \
     ^
   include/linux/percpu-defs.h:499:30: note: in expansion of macro '__this_cpu_add'
    #define __this_cpu_inc(pcp)  __this_cpu_add(pcp, 1)
                                 ^
   include/net/snmp.h:127:4: note: in expansion of macro '__this_cpu_inc'
       __this_cpu_inc(mib->mibs[field])
       ^
   include/net/snmp.h:192:41: note: in expansion of macro '__SNMP_INC_STATS'
    #define __SNMP_INC_STATS64(mib, field)  __SNMP_INC_STATS(mib, field)
                                            ^
   include/net/ipv6.h:171:2: note: in expansion of macro '__SNMP_INC_STATS64'
     mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
     ^
   include/net/ipv6.h:213:3: note: in expansion of macro '_DEVINC'
      _DEVINC(net, ipv6, __, idev, field)
      ^
   include/net/ipv6_frag.h:80:2: note: in expansion of macro '__IP6_INC_STATS'
     __IP6_INC_STATS(net, __in6_dev_get(dev), IPSTATS_MIB_REASMFAILS);
     ^

vim +171 include/net/ipv6.h

3d7cc2ba Pavel Emelyanov   2008-01-09  165  
13415e46 Eric Dumazet      2016-04-27  166  #define _DEVINC(net, statname, mod, idev, field)			\
14878f75 David L Stevens   2007-09-16  167  ({									\
a11d206d YOSHIFUJI Hideaki 2006-11-04  168  	struct inet6_dev *_idev = (idev);				\
a11d206d YOSHIFUJI Hideaki 2006-11-04  169  	if (likely(_idev != NULL))					\
13415e46 Eric Dumazet      2016-04-27  170  		mod##SNMP_INC_STATS64((_idev)->stats.statname, (field));\
13415e46 Eric Dumazet      2016-04-27 @171  	mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
a11d206d YOSHIFUJI Hideaki 2006-11-04  172  })
14878f75 David L Stevens   2007-09-16  173  

:::::: The code at line 171 was first introduced by commit
:::::: 13415e46c5915e2dac089de516369005fbc045f9 net: snmp: kill STATS_BH macros

:::::: TO: Eric Dumazet <edumazet@xxxxxxxxxx>
:::::: CC: David S. Miller <davem@xxxxxxxxxxxxx>

---
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