From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mingo-tip:master 1907/2384] include/linux/rcupdate.h:396:11: error: dereferencing pointer to incomplete type 'struct bpf_prog'
Date: Tue, 1 Feb 2022 10:25:16 +0800 [thread overview]
Message-ID: <202202011049.F4KJNSg3-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head: 4c707c1c0de83967079b4e385012fa5b00e2cd11
commit: 9148be2620e41284eaeab31d70b5baa9130ec96b [1907/2384] headers/deps: net: Optimize <net/sock.h>, remove <linux/filter.h> inclusion
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220201/202202011049.F4KJNSg3-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=9148be2620e41284eaeab31d70b5baa9130ec96b
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip master
git checkout 9148be2620e41284eaeab31d70b5baa9130ec96b
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/percpu-refcount-api.h:59,
from include/linux/percpu-refcount.h:6,
from include/linux/mm_api.h:42,
from include/linux/highmem-internal.h:5,
from include/linux/highmem.h:12,
from include/linux/bvec.h:10,
from include/linux/skbuff_types.h:14,
from include/linux/netdevice_types.h:24,
from include/linux/netdevice.h:5,
from include/linux/netdevice_api.h:24,
from include/net/sch_generic_types.h:6,
from include/net/sch_generic_api.h:6,
from include/net/pkt_sched.h:5,
from drivers/net/ethernet/mellanox/mlx4/en_netdev.c:34:
drivers/net/ethernet/mellanox/mlx4/en_netdev.c: In function 'mlx4_en_try_alloc_resources':
>> include/linux/rcupdate.h:396:11: error: dereferencing pointer to incomplete type 'struct bpf_prog'
396 | ((typeof(*p) __force __kernel *)(p)); \
| ^
include/linux/rcupdate.h:585:2: note: in expansion of macro '__rcu_dereference_protected'
585 | __rcu_dereference_protected((p), (c), __rcu)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx4/en_netdev.c:2325:13: note: in expansion of macro 'rcu_dereference_protected'
2325 | xdp_prog = rcu_dereference_protected(
| ^~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/skbuff_api.h:13,
from drivers/net/ethernet/sfc/net_driver.h:13,
from drivers/net/ethernet/sfc/efx_common.c:11:
drivers/net/ethernet/sfc/efx_common.c: In function 'efx_change_mtu':
>> include/linux/rcupdate.h:396:11: error: dereferencing pointer to incomplete type 'struct bpf_prog'
396 | ((typeof(*p) __force __kernel *)(p)); \
| ^
include/linux/rcupdate.h:585:2: note: in expansion of macro '__rcu_dereference_protected'
585 | __rcu_dereference_protected((p), (c), __rcu)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rtnetlink.h:81:2: note: in expansion of macro 'rcu_dereference_protected'
81 | rcu_dereference_protected(p, lockdep_rtnl_is_held())
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/sfc/efx_common.c:312:6: note: in expansion of macro 'rtnl_dereference'
312 | if (rtnl_dereference(efx->xdp_prog) &&
| ^~~~~~~~~~~~~~~~
vim +396 include/linux/rcupdate.h
76c8eaafe4f061f Paul E. McKenney 2021-04-21 377
ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 378 #define __rcu_access_pointer(p, space) \
ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 379 ({ \
7d0ae8086b82831 Paul E. McKenney 2015-03-03 380 typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \
423a86a610cad12 Joel Fernandes (Google 2018-12-12 381) rcu_check_sparse(p, space); \
ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 382 ((typeof(*p) __force __kernel *)(_________p1)); \
ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 383 })
ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 384 #define __rcu_dereference_check(p, c, space) \
ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 385 ({ \
ac59853c06993a4 Pranith Kumar 2014-11-13 386 /* Dependency order vs. p above. */ \
506458efaf153c1 Will Deacon 2017-10-24 387 typeof(*p) *________p1 = (typeof(*p) *__force)READ_ONCE(p); \
f78f5b90c4ffa55 Paul E. McKenney 2015-06-18 388 RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
423a86a610cad12 Joel Fernandes (Google 2018-12-12 389) rcu_check_sparse(p, space); \
ac59853c06993a4 Pranith Kumar 2014-11-13 390 ((typeof(*p) __force __kernel *)(________p1)); \
ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 391 })
ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 392 #define __rcu_dereference_protected(p, c, space) \
ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 393 ({ \
f78f5b90c4ffa55 Paul E. McKenney 2015-06-18 394 RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() usage"); \
423a86a610cad12 Joel Fernandes (Google 2018-12-12 395) rcu_check_sparse(p, space); \
ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 @396 ((typeof(*p) __force __kernel *)(p)); \
ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 397 })
995f1405610bd84 Paul E. McKenney 2016-07-01 398 #define rcu_dereference_raw(p) \
995f1405610bd84 Paul E. McKenney 2016-07-01 399 ({ \
995f1405610bd84 Paul E. McKenney 2016-07-01 400 /* Dependency order vs. p above. */ \
506458efaf153c1 Will Deacon 2017-10-24 401 typeof(p) ________p1 = READ_ONCE(p); \
995f1405610bd84 Paul E. McKenney 2016-07-01 402 ((typeof(*p) __force __kernel *)(________p1)); \
995f1405610bd84 Paul E. McKenney 2016-07-01 403 })
ca5ecddfa8fcbd9 Paul E. McKenney 2010-04-28 404
:::::: The code at line 396 was first introduced by commit
:::::: ca5ecddfa8fcbd948c95530e7e817cee9fb43a3d rcu: define __rcu address space modifier for sparse
:::::: TO: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
:::::: CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-02-01 2:26 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=202202011049.F4KJNSg3-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®