[jimc:folio-pool-v2-lockdep 5/21] net/netfilter/nf_tables_api.c:12172:35: error: passing argument 3 of 'folio_scratchpad_init_key' from incompatible pointer type
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/jimc/linux.git folio-pool-v2-lockdep head: e77ee8289ea0755b0ee299348504d4568f942d71 commit: 73ef69b58c7d39a45a6fdbd29d4767eedda7ff41 [5/21] netfilter/nf_tables: Add folio_scratchpad collector to struct nftables_pernet config: alpha-allmodconfig (https://download.01.org/0day-ci/archive/20260818/[email protected]/config) compiler: alpha-linux-gcc (GCC) 16.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260818/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Note: the jimc/folio-pool-v2-lockdep HEAD e77ee8289ea0755b0ee299348504d4568f942d71 builds fine. It only hurts bisectability. All errors (new ones prefixed by >>): net/netfilter/nf_tables_api.c: In function 'nf_tables_init_net': >> net/netfilter/nf_tables_api.c:12172:35: error: passing argument 3 of 'folio_scratchpad_init_key' from incompatible pointer type [-Wincompatible-pointer-types] 12172 | &nft_trans_scratchpad_key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | | | struct static_key_true * In file included from include/net/netfilter/nf_tables.h:1944, from include/net/netfilter/nf_tables_core.h:5, from net/netfilter/nf_tables_api.c:21: include/linux/folio_pool.h:104:51: note: expected 'struct static_key *' but argument is of type 'struct static_key_true *' 104 | struct static_key *key); | ~~~~~~~~~~~~~~~~~~~^~~ vim +/folio_scratchpad_init_key +12172 net/netfilter/nf_tables_api.c 12159 12160 static int __net_init nf_tables_init_net(struct net *net) 12161 { 12162 struct nftables_pernet *nft_net = nft_pernet(net); 12163 12164 INIT_LIST_HEAD(&nft_net->tables); 12165 INIT_LIST_HEAD(&nft_net->commit_list); 12166 INIT_LIST_HEAD(&nft_net->destroy_list); 12167 INIT_LIST_HEAD(&nft_net->commit_set_list); 12168 INIT_LIST_HEAD(&nft_net->binding_list); 12169 INIT_LIST_HEAD(&nft_net->module_list); 12170 INIT_LIST_HEAD(&nft_net->notify_list); 12171 folio_scratchpad_init_key(&nft_net->trans_scratchpad, get_order(SZ_64K), 12172 &nft_trans_scratchpad_key); 12173 mutex_init(&nft_net->commit_mutex); 12174 net->nft.base_seq = 1; 12175 nft_net->gc_seq = 0; 12176 nft_net->validate_state = NFT_VALIDATE_SKIP; 12177 INIT_WORK(&nft_net->destroy_work, nf_tables_trans_destroy_work); 12178 12179 return 0; 12180 } 12181 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki