All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Florian Westphal <fw@strlen.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [netfilter-nf-next:testing 21/24] net/netfilter/nfnetlink.c:711:22: error: 'struct netns_ct' has no member named 'ctnetlink_has_listener'
Date: Tue, 22 Mar 2022 06:43:27 +0800	[thread overview]
Message-ID: <202203220605.8O9WsB6a-lkp@intel.com> (raw)

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

                 reply	other threads:[~2022-03-21 23:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202203220605.8O9WsB6a-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=fw@strlen.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.