All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rcu: Add nocb_cb_kthread check to rcu_is_callbacks_kthread()
@ 2022-04-25  8:23 Zqiang
  2022-04-25 10:47 ` kernel test robot
  2022-04-25 16:54 ` kernel test robot
  0 siblings, 2 replies; 3+ messages in thread
From: Zqiang @ 2022-04-25  8:23 UTC (permalink / raw)
  To: paulmck, frederic; +Cc: rcu, linux-kernel

At present, there are two situations which the rcu callback function
be exectued in the kthreads, one is if the use_softirq is set to zero,
the RCU_SOFTIRQ processing is carried out by the per-CPU rcuc kthreads,
for non-offload rdp, the rdp's rcu callback function be exectued in rcuc
kthreads. another one is if the rdp is set to offloaded, the rdp's rcu
callback function be exected in the rcuop kthreads.

Signed-off-by: Zqiang <qiang1.zhang@intel.com>
---
 kernel/rcu/tree_plugin.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h
index 971bb6a00ede..845dbfc876a2 100644
--- a/kernel/rcu/tree_plugin.h
+++ b/kernel/rcu/tree_plugin.h
@@ -1157,7 +1157,8 @@ static void rcu_initiate_boost(struct rcu_node *rnp, unsigned long flags)
  */
 static bool rcu_is_callbacks_kthread(void)
 {
-	return __this_cpu_read(rcu_data.rcu_cpu_kthread_task) == current;
+	return __this_cpu_read(rcu_data.rcu_cpu_kthread_task) == current ||
+		__this_cpu_read(rcu_data.nocb_cb_kthread) == current;
 }
 
 #define RCU_BOOST_DELAY_JIFFIES DIV_ROUND_UP(CONFIG_RCU_BOOST_DELAY * HZ, 1000)
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] rcu: Add nocb_cb_kthread check to rcu_is_callbacks_kthread()
  2022-04-25  8:23 [PATCH] rcu: Add nocb_cb_kthread check to rcu_is_callbacks_kthread() Zqiang
@ 2022-04-25 10:47 ` kernel test robot
  2022-04-25 16:54 ` kernel test robot
  1 sibling, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-04-25 10:47 UTC (permalink / raw)
  To: Zqiang, paulmck, frederic; +Cc: llvm, kbuild-all, rcu, linux-kernel

Hi Zqiang,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on paulmck-rcu/dev]
[also build test ERROR on v5.18-rc4 next-20220422]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/intel-lab-lkp/linux/commits/Zqiang/rcu-Add-nocb_cb_kthread-check-to-rcu_is_callbacks_kthread/20220425-162445
base:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev
config: arm-randconfig-r026-20220425 (https://download.01.org/0day-ci/archive/20220425/202204251856.LJC9zzoY-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 1cddcfdc3c683b393df1a5c9063252eb60e52818)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://github.com/intel-lab-lkp/linux/commit/c909d116f928cbb9de2daf60a572f3f8a81cc4f4
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Zqiang/rcu-Add-nocb_cb_kthread-check-to-rcu_is_callbacks_kthread/20220425-162445
        git checkout c909d116f928cbb9de2daf60a572f3f8a81cc4f4
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash kernel/

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 kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:318:9: note: expanded from macro '__pcpu_size_call_return'
           typeof(variable) pscr_ret__;                                    \
                  ^~~~~~~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:319:22: note: expanded from macro '__pcpu_size_call_return'
           __verify_pcpu_ptr(&(variable));                                 \
                               ^~~~~~~~
   include/linux/percpu-defs.h:219:47: note: expanded from macro '__verify_pcpu_ptr'
           const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
                                                        ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:320:16: note: expanded from macro '__pcpu_size_call_return'
           switch(sizeof(variable)) {                                      \
                         ^~~~~~~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
           case 1: pscr_ret__ = stem##1(variable); break;                  \
                                        ^~~~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
   #define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
                                                                     ^~~
   include/linux/percpu-defs.h:259:20: note: expanded from macro 'VERIFY_PERCPU_PTR'
           __verify_pcpu_ptr(__p);                                         \
                             ^~~
   include/linux/percpu-defs.h:219:47: note: expanded from macro '__verify_pcpu_ptr'
           const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
                                                        ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
           case 1: pscr_ret__ = stem##1(variable); break;                  \
                                        ^~~~~~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:264:38: note: expanded from macro 'raw_cpu_ptr'
   #define raw_cpu_ptr(ptr)        per_cpu_ptr(ptr, 0)
                                               ^~~
   include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
   #define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
                                                                     ^~~
   include/linux/percpu-defs.h:260:12: note: expanded from macro 'VERIFY_PERCPU_PTR'
           (typeof(*(__p)) __kernel __force *)(__p);                       \
                     ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:321:31: note: expanded from macro '__pcpu_size_call_return'
           case 1: pscr_ret__ = stem##1(variable); break;                  \
                                        ^~~~~~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:264:38: note: expanded from macro 'raw_cpu_ptr'
   #define raw_cpu_ptr(ptr)        per_cpu_ptr(ptr, 0)
                                               ^~~
   include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
   #define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
                                                                     ^~~
   include/linux/percpu-defs.h:260:38: note: expanded from macro 'VERIFY_PERCPU_PTR'
           (typeof(*(__p)) __kernel __force *)(__p);                       \
                                               ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:3: error: indirection requires pointer operand ('void' invalid)
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:2: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
           ^~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:420:28: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:321:23: note: expanded from macro '__pcpu_size_call_return'
           case 1: pscr_ret__ = stem##1(variable); break;                  \
                                ^~~~~~~~~~~~~~~~~
   <scratch space>:40:1: note: expanded from here
   raw_cpu_read_1
   ^
   include/asm-generic/percpu.h:195:30: note: expanded from macro 'raw_cpu_read_1'
   #define raw_cpu_read_1(pcp)             raw_cpu_generic_read(pcp)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:2: note: expanded from macro 'raw_cpu_generic_read'
           *raw_cpu_ptr(&(pcp));                                           \
           ^~~~~~~~~~~~~~~~~~~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:322:31: note: expanded from macro '__pcpu_size_call_return'
           case 2: pscr_ret__ = stem##2(variable); break;                  \
                                        ^~~~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
   #define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
                                                                     ^~~
   include/linux/percpu-defs.h:259:20: note: expanded from macro 'VERIFY_PERCPU_PTR'
           __verify_pcpu_ptr(__p);                                         \
                             ^~~
   include/linux/percpu-defs.h:219:47: note: expanded from macro '__verify_pcpu_ptr'
           const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
                                                        ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:322:31: note: expanded from macro '__pcpu_size_call_return'
           case 2: pscr_ret__ = stem##2(variable); break;                  \
                                        ^~~~~~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:264:38: note: expanded from macro 'raw_cpu_ptr'
   #define raw_cpu_ptr(ptr)        per_cpu_ptr(ptr, 0)
                                               ^~~
   include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
   #define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
                                                                     ^~~
   include/linux/percpu-defs.h:260:12: note: expanded from macro 'VERIFY_PERCPU_PTR'
           (typeof(*(__p)) __kernel __force *)(__p);                       \
                     ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:322:31: note: expanded from macro '__pcpu_size_call_return'
           case 2: pscr_ret__ = stem##2(variable); break;                  \
                                        ^~~~~~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:264:38: note: expanded from macro 'raw_cpu_ptr'
   #define raw_cpu_ptr(ptr)        per_cpu_ptr(ptr, 0)
                                               ^~~
   include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
   #define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
                                                                     ^~~
   include/linux/percpu-defs.h:260:38: note: expanded from macro 'VERIFY_PERCPU_PTR'
           (typeof(*(__p)) __kernel __force *)(__p);                       \
                                               ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:3: error: indirection requires pointer operand ('void' invalid)
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:2: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
           ^~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:420:28: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:322:23: note: expanded from macro '__pcpu_size_call_return'
           case 2: pscr_ret__ = stem##2(variable); break;                  \
                                ^~~~~~~~~~~~~~~~~
   <scratch space>:41:1: note: expanded from here
   raw_cpu_read_2
   ^
   include/asm-generic/percpu.h:198:30: note: expanded from macro 'raw_cpu_read_2'
   #define raw_cpu_read_2(pcp)             raw_cpu_generic_read(pcp)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:2: note: expanded from macro 'raw_cpu_generic_read'
           *raw_cpu_ptr(&(pcp));                                           \
           ^~~~~~~~~~~~~~~~~~~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:323:31: note: expanded from macro '__pcpu_size_call_return'
           case 4: pscr_ret__ = stem##4(variable); break;                  \
                                        ^~~~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
   #define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
                                                                     ^~~
   include/linux/percpu-defs.h:259:20: note: expanded from macro 'VERIFY_PERCPU_PTR'
           __verify_pcpu_ptr(__p);                                         \
                             ^~~
   include/linux/percpu-defs.h:219:47: note: expanded from macro '__verify_pcpu_ptr'
           const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
                                                        ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:323:31: note: expanded from macro '__pcpu_size_call_return'
           case 4: pscr_ret__ = stem##4(variable); break;                  \
                                        ^~~~~~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:264:38: note: expanded from macro 'raw_cpu_ptr'
   #define raw_cpu_ptr(ptr)        per_cpu_ptr(ptr, 0)
                                               ^~~
   include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
   #define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
                                                                     ^~~
   include/linux/percpu-defs.h:260:12: note: expanded from macro 'VERIFY_PERCPU_PTR'
           (typeof(*(__p)) __kernel __force *)(__p);                       \
                     ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:323:31: note: expanded from macro '__pcpu_size_call_return'
           case 4: pscr_ret__ = stem##4(variable); break;                  \
                                        ^~~~~~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:264:38: note: expanded from macro 'raw_cpu_ptr'
   #define raw_cpu_ptr(ptr)        per_cpu_ptr(ptr, 0)
                                               ^~~
   include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
   #define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
                                                                     ^~~
   include/linux/percpu-defs.h:260:38: note: expanded from macro 'VERIFY_PERCPU_PTR'
           (typeof(*(__p)) __kernel __force *)(__p);                       \
                                               ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:3: error: indirection requires pointer operand ('void' invalid)
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:2: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
           ^~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:420:28: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:323:23: note: expanded from macro '__pcpu_size_call_return'
           case 4: pscr_ret__ = stem##4(variable); break;                  \
                                ^~~~~~~~~~~~~~~~~
   <scratch space>:42:1: note: expanded from here
   raw_cpu_read_4
   ^
   include/asm-generic/percpu.h:201:30: note: expanded from macro 'raw_cpu_read_4'
   #define raw_cpu_read_4(pcp)             raw_cpu_generic_read(pcp)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:2: note: expanded from macro 'raw_cpu_generic_read'
           *raw_cpu_ptr(&(pcp));                                           \
           ^~~~~~~~~~~~~~~~~~~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:324:31: note: expanded from macro '__pcpu_size_call_return'
           case 8: pscr_ret__ = stem##8(variable); break;                  \
                                        ^~~~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
   #define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
                                                                     ^~~
   include/linux/percpu-defs.h:259:20: note: expanded from macro 'VERIFY_PERCPU_PTR'
           __verify_pcpu_ptr(__p);                                         \
                             ^~~
   include/linux/percpu-defs.h:219:47: note: expanded from macro '__verify_pcpu_ptr'
           const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
                                                        ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:324:31: note: expanded from macro '__pcpu_size_call_return'
           case 8: pscr_ret__ = stem##8(variable); break;                  \
                                        ^~~~~~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:264:38: note: expanded from macro 'raw_cpu_ptr'
   #define raw_cpu_ptr(ptr)        per_cpu_ptr(ptr, 0)
                                               ^~~
   include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
   #define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
                                                                     ^~~
   include/linux/percpu-defs.h:260:12: note: expanded from macro 'VERIFY_PERCPU_PTR'
           (typeof(*(__p)) __kernel __force *)(__p);                       \
                     ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:28: error: no member named 'nocb_cb_kthread' in 'struct rcu_data'
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                                   ~~~~~~~~ ^
   include/linux/percpu-defs.h:446:15: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
                        ^~~
   include/linux/percpu-defs.h:420:67: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                                                                  ^~~
   include/linux/percpu-defs.h:324:31: note: expanded from macro '__pcpu_size_call_return'
           case 8: pscr_ret__ = stem##8(variable); break;                  \
                                        ^~~~~~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/percpu-defs.h:264:38: note: expanded from macro 'raw_cpu_ptr'
   #define raw_cpu_ptr(ptr)        per_cpu_ptr(ptr, 0)
                                               ^~~
   include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
   #define per_cpu_ptr(ptr, cpu)   ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
                                                                     ^~~
   include/linux/percpu-defs.h:260:38: note: expanded from macro 'VERIFY_PERCPU_PTR'
           (typeof(*(__p)) __kernel __force *)(__p);                       \
                                               ^~~
   In file included from kernel/rcu/tree.c:5032:
>> kernel/rcu/tree_plugin.h:1161:3: error: indirection requires pointer operand ('void' invalid)
                   __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:2: note: expanded from macro '__this_cpu_read'
           raw_cpu_read(pcp);                                              \
           ^~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:420:28: note: expanded from macro 'raw_cpu_read'
   #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:324:23: note: expanded from macro '__pcpu_size_call_return'
           case 8: pscr_ret__ = stem##8(variable); break;                  \
                                ^~~~~~~~~~~~~~~~~
   <scratch space>:43:1: note: expanded from here
   raw_cpu_read_8
   ^
   include/asm-generic/percpu.h:204:30: note: expanded from macro 'raw_cpu_read_8'
   #define raw_cpu_read_8(pcp)             raw_cpu_generic_read(pcp)
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:2: note: expanded from macro 'raw_cpu_generic_read'
           *raw_cpu_ptr(&(pcp));                                           \
           ^~~~~~~~~~~~~~~~~~~~
   19 errors generated.


vim +1161 kernel/rcu/tree_plugin.h

  1153	
  1154	/*
  1155	 * Is the current CPU running the RCU-callbacks kthread?
  1156	 * Caller must have preemption disabled.
  1157	 */
  1158	static bool rcu_is_callbacks_kthread(void)
  1159	{
  1160		return __this_cpu_read(rcu_data.rcu_cpu_kthread_task) == current ||
> 1161			__this_cpu_read(rcu_data.nocb_cb_kthread) == current;
  1162	}
  1163	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] rcu: Add nocb_cb_kthread check to rcu_is_callbacks_kthread()
  2022-04-25  8:23 [PATCH] rcu: Add nocb_cb_kthread check to rcu_is_callbacks_kthread() Zqiang
  2022-04-25 10:47 ` kernel test robot
@ 2022-04-25 16:54 ` kernel test robot
  1 sibling, 0 replies; 3+ messages in thread
From: kernel test robot @ 2022-04-25 16:54 UTC (permalink / raw)
  To: Zqiang, paulmck, frederic; +Cc: kbuild-all, rcu, linux-kernel

Hi Zqiang,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on paulmck-rcu/dev]
[also build test ERROR on v5.18-rc4 next-20220422]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/intel-lab-lkp/linux/commits/Zqiang/rcu-Add-nocb_cb_kthread-check-to-rcu_is_callbacks_kthread/20220425-162445
base:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev
config: arc-randconfig-r015-20220425 (https://download.01.org/0day-ci/archive/20220426/202204260032.l8IuJNr9-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel-lab-lkp/linux/commit/c909d116f928cbb9de2daf60a572f3f8a81cc4f4
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Zqiang/rcu-Add-nocb_cb_kthread-check-to-rcu_is_callbacks_kthread/20220425-162445
        git checkout c909d116f928cbb9de2daf60a572f3f8a81cc4f4
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash kernel/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

   In file included from include/asm-generic/percpu.h:7,
                    from ./arch/arc/include/generated/asm/percpu.h:1,
                    from include/linux/irqflags.h:17,
                    from arch/arc/include/asm/smp.h:102,
                    from arch/arc/include/asm/cmpxchg.h:13,
                    from arch/arc/include/asm/atomic.h:13,
                    from include/linux/atomic.h:7,
                    from include/asm-generic/bitops/lock.h:5,
                    from arch/arc/include/asm/bitops.h:188,
                    from include/linux/bitops.h:33,
                    from include/linux/kernel.h:22,
                    from kernel/rcu/tree.c:21:
   kernel/rcu/tree_plugin.h: In function 'rcu_is_callbacks_kthread':
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/percpu-defs.h:318:16: note: in definition of macro '__pcpu_size_call_return'
     318 |         typeof(variable) pscr_ret__;                                    \
         |                ^~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/percpu-defs.h:219:54: note: in definition of macro '__verify_pcpu_ptr'
     219 |         const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
         |                                                      ^~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/percpu-defs.h:320:23: note: in definition of macro '__pcpu_size_call_return'
     320 |         switch(sizeof(variable)) {                                      \
         |                       ^~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/percpu-defs.h:219:54: note: in definition of macro '__verify_pcpu_ptr'
     219 |         const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
         |                                                      ^~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:195:41: note: in expansion of macro 'raw_cpu_generic_read'
     195 | #define raw_cpu_read_1(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:321:30: note: in expansion of macro 'raw_cpu_read_1'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
   In file included from include/linux/compiler_types.h:93,
                    from <command-line>:
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:34:41: note: in definition of macro 'RELOC_HIDE'
      34 |         __asm__ ("" : "=r"(__ptr) : "0"(ptr));                          \
         |                                         ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:195:41: note: in expansion of macro 'raw_cpu_generic_read'
     195 | #define raw_cpu_read_1(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:321:30: note: in expansion of macro 'raw_cpu_read_1'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:34:41: note: in definition of macro 'RELOC_HIDE'
      34 |         __asm__ ("" : "=r"(__ptr) : "0"(ptr));                          \
         |                                         ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:195:41: note: in expansion of macro 'raw_cpu_generic_read'
     195 | #define raw_cpu_read_1(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:321:30: note: in expansion of macro 'raw_cpu_read_1'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:35:17: note: in definition of macro 'RELOC_HIDE'
      35 |         (typeof(ptr)) (__ptr + (off));                                  \
         |                 ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:195:41: note: in expansion of macro 'raw_cpu_generic_read'
     195 | #define raw_cpu_read_1(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:321:30: note: in expansion of macro 'raw_cpu_read_1'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:35:17: note: in definition of macro 'RELOC_HIDE'
      35 |         (typeof(ptr)) (__ptr + (off));                                  \
         |                 ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:195:41: note: in expansion of macro 'raw_cpu_generic_read'
     195 | #define raw_cpu_read_1(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:321:30: note: in expansion of macro 'raw_cpu_read_1'
     321 |         case 1: pscr_ret__ = stem##1(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
   In file included from include/asm-generic/percpu.h:7,
                    from ./arch/arc/include/generated/asm/percpu.h:1,
                    from include/linux/irqflags.h:17,
                    from arch/arc/include/asm/smp.h:102,
                    from arch/arc/include/asm/cmpxchg.h:13,
                    from arch/arc/include/asm/atomic.h:13,
                    from include/linux/atomic.h:7,
                    from include/asm-generic/bitops/lock.h:5,
                    from arch/arc/include/asm/bitops.h:188,
                    from include/linux/bitops.h:33,
                    from include/linux/kernel.h:22,
                    from kernel/rcu/tree.c:21:
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/percpu-defs.h:219:54: note: in definition of macro '__verify_pcpu_ptr'
     219 |         const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
         |                                                      ^~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:198:41: note: in expansion of macro 'raw_cpu_generic_read'
     198 | #define raw_cpu_read_2(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:322:30: note: in expansion of macro 'raw_cpu_read_2'
     322 |         case 2: pscr_ret__ = stem##2(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
   In file included from include/linux/compiler_types.h:93,
                    from <command-line>:
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:34:41: note: in definition of macro 'RELOC_HIDE'
      34 |         __asm__ ("" : "=r"(__ptr) : "0"(ptr));                          \
         |                                         ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:198:41: note: in expansion of macro 'raw_cpu_generic_read'
     198 | #define raw_cpu_read_2(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:322:30: note: in expansion of macro 'raw_cpu_read_2'
     322 |         case 2: pscr_ret__ = stem##2(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:34:41: note: in definition of macro 'RELOC_HIDE'
      34 |         __asm__ ("" : "=r"(__ptr) : "0"(ptr));                          \
         |                                         ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:198:41: note: in expansion of macro 'raw_cpu_generic_read'
     198 | #define raw_cpu_read_2(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:322:30: note: in expansion of macro 'raw_cpu_read_2'
     322 |         case 2: pscr_ret__ = stem##2(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:35:17: note: in definition of macro 'RELOC_HIDE'
      35 |         (typeof(ptr)) (__ptr + (off));                                  \
         |                 ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:198:41: note: in expansion of macro 'raw_cpu_generic_read'
     198 | #define raw_cpu_read_2(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:322:30: note: in expansion of macro 'raw_cpu_read_2'
     322 |         case 2: pscr_ret__ = stem##2(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:35:17: note: in definition of macro 'RELOC_HIDE'
      35 |         (typeof(ptr)) (__ptr + (off));                                  \
         |                 ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:198:41: note: in expansion of macro 'raw_cpu_generic_read'
     198 | #define raw_cpu_read_2(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:322:30: note: in expansion of macro 'raw_cpu_read_2'
     322 |         case 2: pscr_ret__ = stem##2(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
   In file included from include/asm-generic/percpu.h:7,
                    from ./arch/arc/include/generated/asm/percpu.h:1,
                    from include/linux/irqflags.h:17,
                    from arch/arc/include/asm/smp.h:102,
                    from arch/arc/include/asm/cmpxchg.h:13,
                    from arch/arc/include/asm/atomic.h:13,
                    from include/linux/atomic.h:7,
                    from include/asm-generic/bitops/lock.h:5,
                    from arch/arc/include/asm/bitops.h:188,
                    from include/linux/bitops.h:33,
                    from include/linux/kernel.h:22,
                    from kernel/rcu/tree.c:21:
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/percpu-defs.h:219:54: note: in definition of macro '__verify_pcpu_ptr'
     219 |         const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
         |                                                      ^~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:201:41: note: in expansion of macro 'raw_cpu_generic_read'
     201 | #define raw_cpu_read_4(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:323:30: note: in expansion of macro 'raw_cpu_read_4'
     323 |         case 4: pscr_ret__ = stem##4(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
   In file included from include/linux/compiler_types.h:93,
                    from <command-line>:
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:34:41: note: in definition of macro 'RELOC_HIDE'
      34 |         __asm__ ("" : "=r"(__ptr) : "0"(ptr));                          \
         |                                         ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:201:41: note: in expansion of macro 'raw_cpu_generic_read'
     201 | #define raw_cpu_read_4(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:323:30: note: in expansion of macro 'raw_cpu_read_4'
     323 |         case 4: pscr_ret__ = stem##4(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:34:41: note: in definition of macro 'RELOC_HIDE'
      34 |         __asm__ ("" : "=r"(__ptr) : "0"(ptr));                          \
         |                                         ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:201:41: note: in expansion of macro 'raw_cpu_generic_read'
     201 | #define raw_cpu_read_4(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:323:30: note: in expansion of macro 'raw_cpu_read_4'
     323 |         case 4: pscr_ret__ = stem##4(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:35:17: note: in definition of macro 'RELOC_HIDE'
      35 |         (typeof(ptr)) (__ptr + (off));                                  \
         |                 ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:201:41: note: in expansion of macro 'raw_cpu_generic_read'
     201 | #define raw_cpu_read_4(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:323:30: note: in expansion of macro 'raw_cpu_read_4'
     323 |         case 4: pscr_ret__ = stem##4(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:35:17: note: in definition of macro 'RELOC_HIDE'
      35 |         (typeof(ptr)) (__ptr + (off));                                  \
         |                 ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:201:41: note: in expansion of macro 'raw_cpu_generic_read'
     201 | #define raw_cpu_read_4(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:323:30: note: in expansion of macro 'raw_cpu_read_4'
     323 |         case 4: pscr_ret__ = stem##4(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
   In file included from include/asm-generic/percpu.h:7,
                    from ./arch/arc/include/generated/asm/percpu.h:1,
                    from include/linux/irqflags.h:17,
                    from arch/arc/include/asm/smp.h:102,
                    from arch/arc/include/asm/cmpxchg.h:13,
                    from arch/arc/include/asm/atomic.h:13,
                    from include/linux/atomic.h:7,
                    from include/asm-generic/bitops/lock.h:5,
                    from arch/arc/include/asm/bitops.h:188,
                    from include/linux/bitops.h:33,
                    from include/linux/kernel.h:22,
                    from kernel/rcu/tree.c:21:
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/percpu-defs.h:219:54: note: in definition of macro '__verify_pcpu_ptr'
     219 |         const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
         |                                                      ^~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:204:41: note: in expansion of macro 'raw_cpu_generic_read'
     204 | #define raw_cpu_read_8(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:324:30: note: in expansion of macro 'raw_cpu_read_8'
     324 |         case 8: pscr_ret__ = stem##8(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
   In file included from include/linux/compiler_types.h:93,
                    from <command-line>:
>> kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:34:41: note: in definition of macro 'RELOC_HIDE'
      34 |         __asm__ ("" : "=r"(__ptr) : "0"(ptr));                          \
         |                                         ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:204:41: note: in expansion of macro 'raw_cpu_generic_read'
     204 | #define raw_cpu_read_8(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:324:30: note: in expansion of macro 'raw_cpu_read_8'
     324 |         case 8: pscr_ret__ = stem##8(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:34:41: note: in definition of macro 'RELOC_HIDE'
      34 |         __asm__ ("" : "=r"(__ptr) : "0"(ptr));                          \
         |                                         ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:204:41: note: in expansion of macro 'raw_cpu_generic_read'
     204 | #define raw_cpu_read_8(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:324:30: note: in expansion of macro 'raw_cpu_read_8'
     324 |         case 8: pscr_ret__ = stem##8(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:35:17: note: in definition of macro 'RELOC_HIDE'
      35 |         (typeof(ptr)) (__ptr + (off));                                  \
         |                 ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \
         |         ^~~~~~~~~~~~~~~~
   include/asm-generic/percpu.h:67:10: note: in expansion of macro 'raw_cpu_ptr'
      67 |         *raw_cpu_ptr(&(pcp));                                           \
         |          ^~~~~~~~~~~
   include/asm-generic/percpu.h:204:41: note: in expansion of macro 'raw_cpu_generic_read'
     204 | #define raw_cpu_read_8(pcp)             raw_cpu_generic_read(pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:324:30: note: in expansion of macro 'raw_cpu_read_8'
     324 |         case 8: pscr_ret__ = stem##8(variable); break;                  \
         |                              ^~~~
   include/linux/percpu-defs.h:420:41: note: in expansion of macro '__pcpu_size_call_return'
     420 | #define raw_cpu_read(pcp)               __pcpu_size_call_return(raw_cpu_read_, pcp)
         |                                         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:446:9: note: in expansion of macro 'raw_cpu_read'
     446 |         raw_cpu_read(pcp);                                              \
         |         ^~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:17: note: in expansion of macro '__this_cpu_read'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                 ^~~~~~~~~~~~~~~
   kernel/rcu/tree_plugin.h:1161:41: error: 'struct rcu_data' has no member named 'nocb_cb_kthread'
    1161 |                 __this_cpu_read(rcu_data.nocb_cb_kthread) == current;
         |                                         ^
   include/linux/compiler-gcc.h:35:17: note: in definition of macro 'RELOC_HIDE'
      35 |         (typeof(ptr)) (__ptr + (off));                                  \
         |                 ^~~
   include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
      44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
         |                               ^~~~~~~~~~~~~~~~
   include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr'
     242 |         arch_raw_cpu_ptr(ptr);                                          \


vim +1161 kernel/rcu/tree_plugin.h

  1153	
  1154	/*
  1155	 * Is the current CPU running the RCU-callbacks kthread?
  1156	 * Caller must have preemption disabled.
  1157	 */
  1158	static bool rcu_is_callbacks_kthread(void)
  1159	{
  1160		return __this_cpu_read(rcu_data.rcu_cpu_kthread_task) == current ||
> 1161			__this_cpu_read(rcu_data.nocb_cb_kthread) == current;
  1162	}
  1163	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-25 16:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-25  8:23 [PATCH] rcu: Add nocb_cb_kthread check to rcu_is_callbacks_kthread() Zqiang
2022-04-25 10:47 ` kernel test robot
2022-04-25 16:54 ` 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.