* [kkdwivedi:xdp-tcp-round4-backup 27/42] include/net/xdp.h:703:37: error: 'bpf_xdp_consume_enabled_key' undeclared
@ 2026-10-08 4:18 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-08 4:18 UTC (permalink / raw)
To: Kumar Kartikeya Dwivedi; +Cc: oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-08 4:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-08 4:18 [kkdwivedi:xdp-tcp-round4-backup 27/42] include/net/xdp.h:703:37: error: 'bpf_xdp_consume_enabled_key' undeclared kernel test robot
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.