From: kernel test robot <lkp@intel.com>
To: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [kkdwivedi:xdp-tcp-round4-backup 27/42] include/net/xdp.h:703:37: error: 'bpf_xdp_consume_enabled_key' undeclared
Date: Thu, 08 Oct 2026 06:18:27 +0200 [thread overview]
Message-ID: <202610080655.ZV7dX5si-lkp@intel.com> (raw)
tree: https://github.com/kkdwivedi/linux xdp-tcp-round4-backup
head: 63925314fb03ace1f3949a09d298cfdc0188bc8a
commit: 79cfafda75fd6890e5c21a07a2c3d90f21cbe85e [27/42] xdp: Add XDP_CONSUME for frames a program takes ownership of
config: i386-randconfig-2301-20261006 (https://download.01.org/0day-ci/archive/20261008/202610080655.ZV7dX5si-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261008/202610080655.ZV7dX5si-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/202610080655.ZV7dX5si-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/static_key.h:1,
from include/linux/alloc_tag.h:15,
from include/linux/workqueue.h:9,
from include/linux/bpf.h:12,
from include/linux/bpf-cgroup.h:5,
from net/socket.c:55:
include/net/xdp.h: In function 'bpf_prog_run_xdp':
>> include/net/xdp.h:703:37: error: 'bpf_xdp_consume_enabled_key' undeclared (first use in this function)
703 | if (static_branch_unlikely(&bpf_xdp_consume_enabled_key) || unlikely(act == XDP_CONSUME))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:489:50: note: in definition of macro 'static_branch_unlikely'
489 | if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \
| ^
include/net/xdp.h:703:37: note: each undeclared identifier is reported only once for each function it appears in
703 | if (static_branch_unlikely(&bpf_xdp_consume_enabled_key) || unlikely(act == XDP_CONSUME))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:489:50: note: in definition of macro 'static_branch_unlikely'
489 | if (__builtin_types_compatible_p(typeof(*x), struct static_key_true)) \
| ^
--
In file included from include/linux/static_key.h:1,
from include/linux/alloc_tag.h:15,
from include/linux/workqueue.h:9,
from include/linux/bpf.h:12,
from include/linux/filter.h:9,
from kernel/bpf/core.c:22:
kernel/bpf/core.c: In function 'bpf_prog_free_deferred':
>> kernel/bpf/core.c:3098:36: error: 'bpf_xdp_consume_enabled_key' undeclared (first use in this function)
3098 | static_branch_dec(&bpf_xdp_consume_enabled_key);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:514:63: note: in definition of macro 'static_branch_dec'
514 | #define static_branch_dec(x) static_key_slow_dec(&(x)->key)
| ^
kernel/bpf/core.c:3098:36: note: each undeclared identifier is reported only once for each function it appears in
3098 | static_branch_dec(&bpf_xdp_consume_enabled_key);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/jump_label.h:514:63: note: in definition of macro 'static_branch_dec'
514 | #define static_branch_dec(x) static_key_slow_dec(&(x)->key)
| ^
vim +/bpf_xdp_consume_enabled_key +703 include/net/xdp.h
693
694 static __always_inline u32 bpf_prog_run_xdp(const struct bpf_prog *prog,
695 struct xdp_buff *xdp)
696 {
697 /* Driver XDP hooks are invoked within a single NAPI poll cycle and thus
698 * under local_bh_disable(), which provides the needed RCU protection
699 * for accessing map entries.
700 */
701 u32 act = __bpf_prog_run(prog, xdp, BPF_DISPATCHER_FUNC(xdp));
702
> 703 if (static_branch_unlikely(&bpf_xdp_consume_enabled_key) || unlikely(act == XDP_CONSUME))
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-08 4: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=202610080655.ZV7dX5si-lkp@intel.com \
--to=lkp@intel.com \
--cc=memxor@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.