From: kernel test robot <lkp@intel.com>
To: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [kkdwivedi:fermata 32/49] include/linux/rcupdate.h:504:9: error: dereferencing pointer to incomplete type 'struct bpf_waitq_kern'
Date: Fri, 02 Oct 2026 08:00:53 +0200 [thread overview]
Message-ID: <202610020742.Pz5YYv3f-lkp@intel.com> (raw)
tree: https://github.com/kkdwivedi/linux fermata
head: babde5051be3840becf5a78de91a0b68a99f0e49
commit: 43f503501754803751762d06e0ff50980b709ca0 [32/49] net: Let a BPF poller take over NAPI scheduling
config: sparc64-randconfig-2001-20261001 (https://download.01.org/0day-ci/archive/20261002/202610020742.Pz5YYv3f-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261002/202610020742.Pz5YYv3f-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/202610020742.Pz5YYv3f-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/compiler_types.h:44,
from <command-line>:
net/core/dev.c: In function 'napi_set_threaded':
>> include/linux/rcupdate.h:504:9: error: dereferencing pointer to incomplete type 'struct bpf_waitq_kern'
typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
^
include/linux/compiler-context-analysis.h:218:2: note: in definition of macro 'context_unsafe'
__VA_ARGS__; \
^~~~~~~~~~~
include/linux/rcupdate.h:625:31: note: in expansion of macro '__rcu_access_pointer'
#define rcu_access_pointer(p) __rcu_access_pointer((p), __UNIQUE_ID(rcu), __rcu)
^~~~~~~~~~~~~~~~~~~~
net/core/dev.c:7266:18: note: in expansion of macro 'rcu_access_pointer'
if (threaded && rcu_access_pointer(napi->bpf_waitq))
^~~~~~~~~~~~~~~~~~
vim +504 include/linux/rcupdate.h
76c8eaafe4f061 Paul E. McKenney 2021-04-21 501
573d76f7db5ba0 Paul E. McKenney 2026-06-28 502 #define __rcu_access_pointer(p, local, space) context_unsafe( \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 503 ({ \
24ba53017e188e Chun-Hung Tseng 2021-09-15 @504 typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
423a86a610cad1 Joel Fernandes (Google 2018-12-12 505) rcu_check_sparse(p, space); \
24ba53017e188e Chun-Hung Tseng 2021-09-15 506 ((typeof(*p) __force __kernel *)(local)); \
573d76f7db5ba0 Paul E. McKenney 2026-06-28 507 }) )
24ba53017e188e Chun-Hung Tseng 2021-09-15 508 #define __rcu_dereference_check(p, local, c, space) \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 509 ({ \
ac59853c06993a Pranith Kumar 2014-11-13 510 /* Dependency order vs. p above. */ \
24ba53017e188e Chun-Hung Tseng 2021-09-15 511 typeof(*p) *local = (typeof(*p) *__force)READ_ONCE(p); \
f78f5b90c4ffa5 Paul E. McKenney 2015-06-18 512 RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
423a86a610cad1 Joel Fernandes (Google 2018-12-12 513) rcu_check_sparse(p, space); \
24ba53017e188e Chun-Hung Tseng 2021-09-15 514 ((typeof(*p) __force __kernel *)(local)); \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 515 })
24ba53017e188e Chun-Hung Tseng 2021-09-15 516 #define __rcu_dereference_protected(p, local, c, space) \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 517 ({ \
f78f5b90c4ffa5 Paul E. McKenney 2015-06-18 518 RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() usage"); \
423a86a610cad1 Joel Fernandes (Google 2018-12-12 519) rcu_check_sparse(p, space); \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 520 ((typeof(*p) __force __kernel *)(p)); \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 521 })
24ba53017e188e Chun-Hung Tseng 2021-09-15 522 #define __rcu_dereference_raw(p, local) \
995f1405610bd8 Paul E. McKenney 2016-07-01 523 ({ \
995f1405610bd8 Paul E. McKenney 2016-07-01 524 /* Dependency order vs. p above. */ \
24ba53017e188e Chun-Hung Tseng 2021-09-15 525 typeof(p) local = READ_ONCE(p); \
24ba53017e188e Chun-Hung Tseng 2021-09-15 526 ((typeof(*p) __force __kernel *)(local)); \
995f1405610bd8 Paul E. McKenney 2016-07-01 527 })
24ba53017e188e Chun-Hung Tseng 2021-09-15 528 #define rcu_dereference_raw(p) __rcu_dereference_raw(p, __UNIQUE_ID(rcu))
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 529
:::::: The code at line 504 was first introduced by commit
:::::: 24ba53017e188e031f9cb8b290286fad52d2af00 rcu: Replace ________p1 and _________p1 with __UNIQUE_ID(rcu)
:::::: TO: Chun-Hung Tseng <henrybear327@gmail.com>
:::::: CC: Paul E. McKenney <paulmck@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-02 6:01 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=202610020742.Pz5YYv3f-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.