All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Jim Cromie" <jim.cromie@gmail.com>,
	" Łukasz Bartosik" <ukaszb@chromium.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Tue, 18 Aug 2026 09:08:51 +0800	[thread overview]
Message-ID: <202608180716.aq19LiWM-lkp@intel.com> (raw)

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/202608180716.aq19LiWM-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260818/202608180716.aq19LiWM-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/202608180716.aq19LiWM-lkp@intel.com/

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

                 reply	other threads:[~2026-08-18  1:09 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=202608180716.aq19LiWM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jim.cromie@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ukaszb@chromium.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.