netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nf-next:for-net-next 25/25] net/netfilter/nf_tables_api.c:4448:22: warning: variable 'ext' set but not used
@ 2021-04-26 15:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-26 15:19 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: kbuild-all, netfilter-devel, coreteam

[-- Attachment #1: Type: text/plain, Size: 2081 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git for-net-next
head:   d0734333b9530f1be17b62f51262482af11f082a
commit: d0734333b9530f1be17b62f51262482af11f082a [25/25] netfilter: nftables: add catch-all set element support
config: microblaze-randconfig-r006-20210426 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git/commit/?id=d0734333b9530f1be17b62f51262482af11f082a
        git remote add nf-next https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git
        git fetch --no-tags nf-next for-net-next
        git checkout d0734333b9530f1be17b62f51262482af11f082a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=microblaze 

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

All warnings (new ones prefixed by >>):

   net/netfilter/nf_tables_api.c: In function 'nft_set_catchall_destroy':
>> net/netfilter/nf_tables_api.c:4448:22: warning: variable 'ext' set but not used [-Wunused-but-set-variable]
    4448 |  struct nft_set_ext *ext;
         |                      ^~~


vim +/ext +4448 net/netfilter/nf_tables_api.c

  4443	
  4444	static void nft_set_catchall_destroy(const struct nft_ctx *ctx,
  4445					     struct nft_set *set)
  4446	{
  4447		struct nft_set_elem_catchall *catchall;
> 4448		struct nft_set_ext *ext;
  4449	
  4450		list_for_each_entry_rcu(catchall, &set->catchall_list, list) {
  4451			ext = nft_set_elem_ext(set, catchall->elem);
  4452			list_del_rcu(&catchall->list);
  4453			nft_set_elem_destroy(set, catchall->elem, true);
  4454			kfree_rcu(catchall);
  4455		}
  4456	}
  4457	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35459 bytes --]

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

only message in thread, other threads:[~2021-04-26 15:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-26 15:19 [nf-next:for-net-next 25/25] net/netfilter/nf_tables_api.c:4448:22: warning: variable 'ext' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).