[jimc:folio-pool-v2-lockdep 5/21] net/netfilter/nf_tables_api.c:12172:7: error: incompatible pointer types passing 'struct static_key_true *' to parameter of type 'struct static_key *'
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: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260818/[email protected]/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 844a18e753e822736c9805ab779144b647a2c186) 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:12172:7: error: incompatible pointer types passing 'struct static_key_true *' to parameter of type 'struct static_key *' [-Wincompatible-pointer-types] 12172 | &nft_trans_scratchpad_key); | ^~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/folio_pool.h:104:30: note: passing argument to parameter 'key' here 104 | struct static_key *key); | ^ 1 error generated. vim +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