[nf-next:for-net-next 25/25] net/netfilter/nf_tables_api.c:4448:22: warning: variable 'ext' set but not used

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

 



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

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux