Re: [PATCH] powerpc: fix boot on BOOK3S_32 with CONFIG_STRICT_KERNEL_RWX

From: Christophe LEROY
Date: Tue Nov 21 2017 - 05:07:11 EST



Le 21/11/2017 Ã 11:03, Meelis Roos a ÃcritÂ:
On powerpc32, patch_instruction() is called by apply_feature_fixups()
which is called from early_init()

There is the following note in front of early_init():
* Note that the kernel may be running at an address which is different
* from the address that it was linked at, so we must use RELOC/PTRRELOC
* to access static data (including strings). -- paulus

Therefore, slab_is_available() cannot be called yet, and
text_poke_area must be addressed with PTRRELOC()

The patch does not build - does PTRRELOC need some additional header or
something?

Oops, asm/setup.h is needed, don't know why it disappeared from the PATCH.
I'll submit a v2 once you have been able to test it.

Christophe



CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/compile.h
CALL arch/powerpc/kernel/systbl_chk.sh
CALL arch/powerpc/kernel/prom_init_check.sh
CC arch/powerpc/lib/code-patching.o
In file included from ./include/asm-generic/percpu.h:7:0,
from ./arch/powerpc/include/asm/percpu.h:20,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c: In function âpatch_instructionâ:
arch/powerpc/lib/code-patching.c:150:22: error: implicit declaration of function âPTRRELOCâ; did you mean âPTR_ERRâ? [-Werror=implicit-function-declaration]
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^
./include/linux/percpu-defs.h:305:9: note: in definition of macro â__pcpu_size_call_returnâ
typeof(variable) pscr_ret__; \
^~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:305:9: note: in definition of macro â__pcpu_size_call_returnâ
typeof(variable) pscr_ret__; \
^~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:206:47: note: in definition of macro â__verify_pcpu_ptrâ
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:307:16: note: in definition of macro â__pcpu_size_call_returnâ
switch(sizeof(variable)) { \
^~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./arch/powerpc/include/asm/percpu.h:20:0,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:140:9: note: in definition of macro âthis_cpu_generic_readâ
typeof(pcp) __ret; \
^~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./include/linux/linkage.h:5:0,
from ./include/linux/kernel.h:7,
from arch/powerpc/lib/code-patching.c:10:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:35: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:64: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:94: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:122: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./arch/powerpc/include/asm/percpu.h:20:0,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:121:9: note: in definition of macro â__this_cpu_generic_read_nopreemptâ
typeof(pcp) __ret; \
^~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./include/linux/linkage.h:5:0,
from ./include/linux/kernel.h:7,
from arch/powerpc/lib/code-patching.c:10:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:339:17: note: in definition of macro â__READ_ONCEâ
union { typeof(x) __val; char __c[1]; } __u; \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:339:17: note: in definition of macro â__READ_ONCEâ
union { typeof(x) __val; char __c[1]; } __u; \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:339:17: note: in definition of macro â__READ_ONCEâ
union { typeof(x) __val; char __c[1]; } __u; \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:22: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:22: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:22: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:42: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:42: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:42: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:30: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:30: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:30: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:50: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:50: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:50: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./arch/powerpc/include/asm/percpu.h:20:0,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:130:9: note: in definition of macro â__this_cpu_generic_read_noirqâ
typeof(pcp) __ret; \
^~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./include/asm-generic/percpu.h:7:0,
from ./arch/powerpc/include/asm/percpu.h:20,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:206:47: note: in definition of macro â__verify_pcpu_ptrâ
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:71:3: note: in expansion of macro âraw_cpu_ptrâ
*raw_cpu_ptr(&(pcp)); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:133:10: note: in expansion of macro âraw_cpu_generic_readâ
__ret = raw_cpu_generic_read(pcp); \
^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:144:11: note: in expansion of macro â__this_cpu_generic_read_noirqâ
__ret = __this_cpu_generic_read_noirq(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:247:12: note: in definition of macro âVERIFY_PERCPU_PTRâ
(typeof(*(__p)) __kernel __force *)(__p); \
^~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:71:3: note: in expansion of macro âraw_cpu_ptrâ
*raw_cpu_ptr(&(pcp)); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:133:10: note: in expansion of macro âraw_cpu_generic_readâ
__ret = raw_cpu_generic_read(pcp); \
^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:144:11: note: in expansion of macro â__this_cpu_generic_read_noirqâ
__ret = __this_cpu_generic_read_noirq(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:247:38: note: in definition of macro âVERIFY_PERCPU_PTRâ
(typeof(*(__p)) __kernel __force *)(__p); \
^~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:71:3: note: in expansion of macro âraw_cpu_ptrâ
*raw_cpu_ptr(&(pcp)); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:133:10: note: in expansion of macro âraw_cpu_generic_readâ
__ret = raw_cpu_generic_read(pcp); \
^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:144:11: note: in expansion of macro â__this_cpu_generic_read_noirqâ
__ret = __this_cpu_generic_read_noirq(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:324:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:308:23: note: in expansion of macro âthis_cpu_read_1â
case 1: pscr_ret__ = stem##1(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./arch/powerpc/include/asm/percpu.h:20:0,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:140:9: note: in definition of macro âthis_cpu_generic_readâ
typeof(pcp) __ret; \
^~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./include/linux/linkage.h:5:0,
from ./include/linux/kernel.h:7,
from arch/powerpc/lib/code-patching.c:10:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:35: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:64: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:94: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:122: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./arch/powerpc/include/asm/percpu.h:20:0,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:121:9: note: in definition of macro â__this_cpu_generic_read_nopreemptâ
typeof(pcp) __ret; \
^~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./include/linux/linkage.h:5:0,
from ./include/linux/kernel.h:7,
from arch/powerpc/lib/code-patching.c:10:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:339:17: note: in definition of macro â__READ_ONCEâ
union { typeof(x) __val; char __c[1]; } __u; \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:339:17: note: in definition of macro â__READ_ONCEâ
union { typeof(x) __val; char __c[1]; } __u; \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:339:17: note: in definition of macro â__READ_ONCEâ
union { typeof(x) __val; char __c[1]; } __u; \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:22: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:22: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:22: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:42: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:42: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:42: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:30: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:30: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:30: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:50: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:50: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:50: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./arch/powerpc/include/asm/percpu.h:20:0,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:130:9: note: in definition of macro â__this_cpu_generic_read_noirqâ
typeof(pcp) __ret; \
^~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./include/asm-generic/percpu.h:7:0,
from ./arch/powerpc/include/asm/percpu.h:20,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:206:47: note: in definition of macro â__verify_pcpu_ptrâ
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:71:3: note: in expansion of macro âraw_cpu_ptrâ
*raw_cpu_ptr(&(pcp)); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:133:10: note: in expansion of macro âraw_cpu_generic_readâ
__ret = raw_cpu_generic_read(pcp); \
^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:144:11: note: in expansion of macro â__this_cpu_generic_read_noirqâ
__ret = __this_cpu_generic_read_noirq(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:247:12: note: in definition of macro âVERIFY_PERCPU_PTRâ
(typeof(*(__p)) __kernel __force *)(__p); \
^~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:71:3: note: in expansion of macro âraw_cpu_ptrâ
*raw_cpu_ptr(&(pcp)); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:133:10: note: in expansion of macro âraw_cpu_generic_readâ
__ret = raw_cpu_generic_read(pcp); \
^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:144:11: note: in expansion of macro â__this_cpu_generic_read_noirqâ
__ret = __this_cpu_generic_read_noirq(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:247:38: note: in definition of macro âVERIFY_PERCPU_PTRâ
(typeof(*(__p)) __kernel __force *)(__p); \
^~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:71:3: note: in expansion of macro âraw_cpu_ptrâ
*raw_cpu_ptr(&(pcp)); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:133:10: note: in expansion of macro âraw_cpu_generic_readâ
__ret = raw_cpu_generic_read(pcp); \
^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:144:11: note: in expansion of macro â__this_cpu_generic_read_noirqâ
__ret = __this_cpu_generic_read_noirq(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:327:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_2(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:309:23: note: in expansion of macro âthis_cpu_read_2â
case 2: pscr_ret__ = stem##2(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./arch/powerpc/include/asm/percpu.h:20:0,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:140:9: note: in definition of macro âthis_cpu_generic_readâ
typeof(pcp) __ret; \
^~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./include/linux/linkage.h:5:0,
from ./include/linux/kernel.h:7,
from arch/powerpc/lib/code-patching.c:10:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:35: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:64: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:94: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:122: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./arch/powerpc/include/asm/percpu.h:20:0,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:121:9: note: in definition of macro â__this_cpu_generic_read_nopreemptâ
typeof(pcp) __ret; \
^~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./include/linux/linkage.h:5:0,
from ./include/linux/kernel.h:7,
from arch/powerpc/lib/code-patching.c:10:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:339:17: note: in definition of macro â__READ_ONCEâ
union { typeof(x) __val; char __c[1]; } __u; \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:339:17: note: in definition of macro â__READ_ONCEâ
union { typeof(x) __val; char __c[1]; } __u; \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:339:17: note: in definition of macro â__READ_ONCEâ
union { typeof(x) __val; char __c[1]; } __u; \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:22: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:22: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:22: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:42: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:42: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:42: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:30: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:30: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:30: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:50: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:50: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:50: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./arch/powerpc/include/asm/percpu.h:20:0,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:130:9: note: in definition of macro â__this_cpu_generic_read_noirqâ
typeof(pcp) __ret; \
^~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./include/asm-generic/percpu.h:7:0,
from ./arch/powerpc/include/asm/percpu.h:20,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:206:47: note: in definition of macro â__verify_pcpu_ptrâ
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:71:3: note: in expansion of macro âraw_cpu_ptrâ
*raw_cpu_ptr(&(pcp)); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:133:10: note: in expansion of macro âraw_cpu_generic_readâ
__ret = raw_cpu_generic_read(pcp); \
^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:144:11: note: in expansion of macro â__this_cpu_generic_read_noirqâ
__ret = __this_cpu_generic_read_noirq(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:247:12: note: in definition of macro âVERIFY_PERCPU_PTRâ
(typeof(*(__p)) __kernel __force *)(__p); \
^~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:71:3: note: in expansion of macro âraw_cpu_ptrâ
*raw_cpu_ptr(&(pcp)); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:133:10: note: in expansion of macro âraw_cpu_generic_readâ
__ret = raw_cpu_generic_read(pcp); \
^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:144:11: note: in expansion of macro â__this_cpu_generic_read_noirqâ
__ret = __this_cpu_generic_read_noirq(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:247:38: note: in definition of macro âVERIFY_PERCPU_PTRâ
(typeof(*(__p)) __kernel __force *)(__p); \
^~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:71:3: note: in expansion of macro âraw_cpu_ptrâ
*raw_cpu_ptr(&(pcp)); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:133:10: note: in expansion of macro âraw_cpu_generic_readâ
__ret = raw_cpu_generic_read(pcp); \
^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:144:11: note: in expansion of macro â__this_cpu_generic_read_noirqâ
__ret = __this_cpu_generic_read_noirq(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:330:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_4(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:310:23: note: in expansion of macro âthis_cpu_read_4â
case 4: pscr_ret__ = stem##4(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./arch/powerpc/include/asm/percpu.h:20:0,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:140:9: note: in definition of macro âthis_cpu_generic_readâ
typeof(pcp) __ret; \
^~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./include/linux/linkage.h:5:0,
from ./include/linux/kernel.h:7,
from arch/powerpc/lib/code-patching.c:10:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:35: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:64: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:94: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:524:122: note: in definition of macro â__native_wordâ
# define __native_word(t) (sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./arch/powerpc/include/asm/percpu.h:20:0,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:121:9: note: in definition of macro â__this_cpu_generic_read_nopreemptâ
typeof(pcp) __ret; \
^~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./include/linux/linkage.h:5:0,
from ./include/linux/kernel.h:7,
from arch/powerpc/lib/code-patching.c:10:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:339:17: note: in definition of macro â__READ_ONCEâ
union { typeof(x) __val; char __c[1]; } __u; \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:339:17: note: in definition of macro â__READ_ONCEâ
union { typeof(x) __val; char __c[1]; } __u; \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:339:17: note: in definition of macro â__READ_ONCEâ
union { typeof(x) __val; char __c[1]; } __u; \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:22: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:22: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:22: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:42: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:42: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:341:42: note: in definition of macro â__READ_ONCEâ
__read_once_size(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:30: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:30: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:30: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:50: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:246:2: note: in expansion of macro â__verify_pcpu_ptrâ
__verify_pcpu_ptr(__p); \
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:50: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/compiler.h:343:50: note: in definition of macro â__READ_ONCEâ
__read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
^
./include/asm-generic/percpu.h:123:10: note: in expansion of macro âREAD_ONCEâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:123:21: note: in expansion of macro âraw_cpu_ptrâ
__ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:142:11: note: in expansion of macro â__this_cpu_generic_read_nopreemptâ
__ret = __this_cpu_generic_read_nopreempt(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./arch/powerpc/include/asm/percpu.h:20:0,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:130:9: note: in definition of macro â__this_cpu_generic_read_noirqâ
typeof(pcp) __ret; \
^~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
In file included from ./include/asm-generic/percpu.h:7:0,
from ./arch/powerpc/include/asm/percpu.h:20,
from ./include/linux/percpu.h:13,
from ./include/linux/kprobes.h:38,
from arch/powerpc/lib/code-patching.c:11:
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:206:47: note: in definition of macro â__verify_pcpu_ptrâ
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
./include/linux/percpu-defs.h:250:47: note: in expansion of macro âVERIFY_PERCPU_PTRâ
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:71:3: note: in expansion of macro âraw_cpu_ptrâ
*raw_cpu_ptr(&(pcp)); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:133:10: note: in expansion of macro âraw_cpu_generic_readâ
__ret = raw_cpu_generic_read(pcp); \
^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:144:11: note: in expansion of macro â__this_cpu_generic_read_noirqâ
__ret = __this_cpu_generic_read_noirq(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:247:12: note: in definition of macro âVERIFY_PERCPU_PTRâ
(typeof(*(__p)) __kernel __force *)(__p); \
^~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:71:3: note: in expansion of macro âraw_cpu_ptrâ
*raw_cpu_ptr(&(pcp)); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:133:10: note: in expansion of macro âraw_cpu_generic_readâ
__ret = raw_cpu_generic_read(pcp); \
^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:144:11: note: in expansion of macro â__this_cpu_generic_read_noirqâ
__ret = __this_cpu_generic_read_noirq(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:21: error: invalid type argument of unary â*â (have âintâ)
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:247:38: note: in definition of macro âVERIFY_PERCPU_PTRâ
(typeof(*(__p)) __kernel __force *)(__p); \
^~~
./include/linux/percpu-defs.h:251:26: note: in expansion of macro âper_cpu_ptrâ
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~
./include/asm-generic/percpu.h:71:3: note: in expansion of macro âraw_cpu_ptrâ
*raw_cpu_ptr(&(pcp)); \
^~~~~~~~~~~
./include/asm-generic/percpu.h:133:10: note: in expansion of macro âraw_cpu_generic_readâ
__ret = raw_cpu_generic_read(pcp); \
^~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:144:11: note: in expansion of macro â__this_cpu_generic_read_noirqâ
__ret = __this_cpu_generic_read_noirq(pcp); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/asm-generic/percpu.h:333:31: note: in expansion of macro âthis_cpu_generic_readâ
#define this_cpu_read_8(pcp) this_cpu_generic_read(pcp)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/percpu-defs.h:311:23: note: in expansion of macro âthis_cpu_read_8â
case 8: pscr_ret__ = stem##8(variable); break; \
^~~~
./include/linux/percpu-defs.h:494:29: note: in expansion of macro â__pcpu_size_call_returnâ
#define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
^~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/lib/code-patching.c:150:7: note: in expansion of macro âthis_cpu_readâ
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
^~~~~~~~~~~~~
cc1: all warnings being treated as errors
scripts/Makefile.build:314: recipe for target 'arch/powerpc/lib/code-patching.o' failed
make[1]: *** [arch/powerpc/lib/code-patching.o] Error 1
Makefile:1024: recipe for target 'arch/powerpc/lib' failed
make: *** [arch/powerpc/lib] Error 2