All of lore.kernel.org
 help / color / mirror / Atom feed
* [netfilter-nf-next:testing 21/24] net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
@ 2022-03-21 22:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-21 22:43 UTC (permalink / raw)
  To: Florian Westphal; +Cc: kbuild-all, linux-kernel

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git testing
head:   0481bbb83971b25a71fba81269b3bc0a392d24e3
commit: 75a944cf2fe90182d986638a7422238b310f1ca4 [21/24] netfilter: nfnetlink: allow to detect if ctnetlink listeners exist
config: x86_64-randconfig-a011-20220321 (https://download.01.org/0day-ci/archive/20220322/202203220605.8O9WsB6a-lkp@intel.com/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git/commit/?id=75a944cf2fe90182d986638a7422238b310f1ca4
        git remote add netfilter-nf-next git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf-next.git
        git fetch --no-tags netfilter-nf-next testing
        git checkout 75a944cf2fe90182d986638a7422238b310f1ca4
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from <command-line>:
   net/netfilter/nfnetlink.c: In function 'nfnetlink_bind':
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/linux/compiler_types.h:329:9: note: in definition of macro '__compiletime_assert'
     329 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler_types.h:349:2: note: in expansion of macro '_compiletime_assert'
     349 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |  ^~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |                     ^~~~~~~~~~~~~
   include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
      60 |  compiletime_assert_rwonce_type(x);    \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/linux/compiler_types.h:329:9: note: in definition of macro '__compiletime_assert'
     329 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler_types.h:349:2: note: in expansion of macro '_compiletime_assert'
     349 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |  ^~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |                     ^~~~~~~~~~~~~
   include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
      60 |  compiletime_assert_rwonce_type(x);    \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/linux/compiler_types.h:329:9: note: in definition of macro '__compiletime_assert'
     329 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler_types.h:349:2: note: in expansion of macro '_compiletime_assert'
     349 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |  ^~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |                     ^~~~~~~~~~~~~
   include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
      60 |  compiletime_assert_rwonce_type(x);    \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/linux/compiler_types.h:329:9: note: in definition of macro '__compiletime_assert'
     329 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler_types.h:349:2: note: in expansion of macro '_compiletime_assert'
     349 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |  ^~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:21: note: in expansion of macro '__native_word'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |                     ^~~~~~~~~~~~~
   include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
      60 |  compiletime_assert_rwonce_type(x);    \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/linux/compiler_types.h:329:9: note: in definition of macro '__compiletime_assert'
     329 |   if (!(condition))     \
         |         ^~~~~~~~~
   include/linux/compiler_types.h:349:2: note: in expansion of macro '_compiletime_assert'
     349 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:36:2: note: in expansion of macro 'compiletime_assert'
      36 |  compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
         |  ^~~~~~~~~~~~~~~~~~
   include/asm-generic/rwonce.h:60:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
      60 |  compiletime_assert_rwonce_type(x);    \
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~
   In file included from ./arch/x86/include/generated/asm/rwonce.h:1,
                    from include/linux/compiler.h:255,
                    from include/linux/build_bug.h:5,
                    from include/linux/container_of.h:5,
                    from include/linux/list.h:5,
                    from include/linux/module.h:12,
                    from net/netfilter/nfnetlink.c:17:
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/asm-generic/rwonce.h:55:20: note: in definition of macro '__WRITE_ONCE'
      55 |  *(volatile typeof(x) *)&(x) = (val);    \
         |                    ^
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~
>> net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |                      ^
   include/asm-generic/rwonce.h:55:27: note: in definition of macro '__WRITE_ONCE'
      55 |  *(volatile typeof(x) *)&(x) = (val);    \
         |                           ^
   net/netfilter/nfnetlink.c:711:4: note: in expansion of macro 'WRITE_ONCE'
     711 |    WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
         |    ^~~~~~~~~~


vim +711 net/netfilter/nfnetlink.c

   698	
   699		if (type == NFNL_SUBSYS_CTNETLINK) {
   700			struct nfnl_net *nfnlnet = nfnl_pernet(net);
   701	
   702			nfnl_lock(NFNL_SUBSYS_CTNETLINK);
   703	
   704			if (WARN_ON_ONCE(nfnlnet->ctnetlink_listeners == UINT_MAX)) {
   705				nfnl_unlock(NFNL_SUBSYS_CTNETLINK);
   706				return -EOVERFLOW;
   707			}
   708	
   709			nfnlnet->ctnetlink_listeners++;
   710			if (nfnlnet->ctnetlink_listeners == 1)
 > 711				WRITE_ONCE(net->ct.ctnetlink_has_listener, true);
   712			nfnl_unlock(NFNL_SUBSYS_CTNETLINK);
   713		}
   714	
   715		return 0;
   716	}
   717	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-21 23:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-21 22:43 [netfilter-nf-next:testing 21/24] net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.