From: kernel test robot <lkp@intel.com>
To: Jozsef Kadlecsik <kadlec@netfilter.org>
Cc: oe-kbuild-all@lists.linux.dev, netfilter-devel@vger.kernel.org,
coreteam@netfilter.org, Pablo Neira Ayuso <pablo@netfilter.org>
Subject: [netfilter-nf:testing 5/13] net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces)
Date: Fri, 9 Feb 2024 08:18:28 +0800 [thread overview]
Message-ID: <202402090822.jJ0z40yz-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git testing
head: a7eaa3316ffa17957ee70a705000a3a942128820
commit: 6099505cd2a2652bbb4156582a22feb6d651b6d6 [5/13] netfilter: ipset: Missing gc cancellations fixed
config: x86_64-randconfig-123-20240208 (https://download.01.org/0day-ci/archive/20240209/202402090822.jJ0z40yz-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240209/202402090822.jJ0z40yz-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402090822.jJ0z40yz-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
net/netfilter/ipset/ip_set_hash_mac.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
--
net/netfilter/ipset/ip_set_hash_ip.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
net/netfilter/ipset/ip_set_hash_ip.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
--
net/netfilter/ipset/ip_set_hash_ipportip.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
net/netfilter/ipset/ip_set_hash_ipportip.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
--
net/netfilter/ipset/ip_set_hash_ipport.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
net/netfilter/ipset/ip_set_hash_ipport.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
--
net/netfilter/ipset/ip_set_hash_netiface.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
net/netfilter/ipset/ip_set_hash_netiface.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
--
net/netfilter/ipset/ip_set_hash_netport.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
net/netfilter/ipset/ip_set_hash_netport.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
--
net/netfilter/ipset/ip_set_hash_net.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
net/netfilter/ipset/ip_set_hash_net.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
--
net/netfilter/ipset/ip_set_hash_ipportnet.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
net/netfilter/ipset/ip_set_hash_ipportnet.c: note: in included file:
>> net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hbucket *n @@ got struct hbucket [noderef] __rcu * @@
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: expected struct hbucket *n
net/netfilter/ipset/ip_set_hash_gen.h:435:19: sparse: got struct hbucket [noderef] __rcu *
>> net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct htable *t @@ got struct htable [noderef] __rcu *table @@
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: expected struct htable *t
net/netfilter/ipset/ip_set_hash_gen.h:455:35: sparse: got struct htable [noderef] __rcu *table
vim +435 net/netfilter/ipset/ip_set_hash_gen.h
426
427 /* Destroy the hashtable part of the set */
428 static void
429 mtype_ahash_destroy(struct ip_set *set, struct htable *t, bool ext_destroy)
430 {
431 struct hbucket *n;
432 u32 i;
433
434 for (i = 0; i < jhash_size(t->htable_bits); i++) {
> 435 n = hbucket(t, i);
436 if (!n)
437 continue;
438 if (set->extensions & IPSET_EXT_DESTROY && ext_destroy)
439 mtype_ext_cleanup(set, n);
440 /* FIXME: use slab cache */
441 kfree(n);
442 }
443
444 ip_set_free(t->hregion);
445 ip_set_free(t);
446 }
447
448 /* Destroy a hash type of set */
449 static void
450 mtype_destroy(struct ip_set *set)
451 {
452 struct htype *h = set->data;
453 struct list_head *l, *lt;
454
> 455 mtype_ahash_destroy(set, h->table, true);
456 list_for_each_safe(l, lt, &h->ad) {
457 list_del(l);
458 kfree(l);
459 }
460 kfree(h);
461
462 set->data = NULL;
463 }
464
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-02-09 0:19 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=202402090822.jJ0z40yz-lkp@intel.com \
--to=lkp@intel.com \
--cc=coreteam@netfilter.org \
--cc=kadlec@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pablo@netfilter.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 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).