Hi "Tzvetomir,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on v5.14-rc5]
[also build test WARNING on next-20210810]
[cannot apply to tip/perf/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Tzvetomir-Stoyanov-VMware/trace-...
base: 36a21d51725af2ce0700c6ebcb6b9594aac658a6
config: powerpc-powernv_defconfig (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/0day-ci/linux/commit/e3bec14eb58da9408eba8ccc55c9f5cf4...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Tzvetomir-Stoyanov-VMware/trace-Add-kprobe-on-tracepoint/20210810-192225
git checkout e3bec14eb58da9408eba8ccc55c9f5cf4e1ff114
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/powerpc/include/asm/hw_irq.h:12,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/linux/rcupdate.h:26,
from include/linux/rbtree.h:22,
from include/linux/key.h:15,
from include/linux/security.h:27,
from kernel/trace/trace_kprobe.c:10:
kernel/trace/trace_kprobe.c: In function 'process_fetch_insn':
> arch/powerpc/include/asm/ptrace.h:248:43: warning: dereferencing
'void *' pointer
248 | #define kernel_stack_pointer(regs)
((regs)->gpr[1])
| ^~
kernel/trace/trace_kprobe.c:1340:9: note: in expansion of macro
'kernel_stack_pointer'
1340 | val = kernel_stack_pointer(regs);
| ^~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/ptrace.h:248:43: error: request for member 'gpr' in
something not a structure or union
248 | #define kernel_stack_pointer(regs) ((regs)->gpr[1])
| ^~
kernel/trace/trace_kprobe.c:1340:9: note: in expansion of macro
'kernel_stack_pointer'
1340 | val = kernel_stack_pointer(regs);
| ^~~~~~~~~~~~~~~~~~~~
vim +248 arch/powerpc/include/asm/ptrace.h
4e0e45b07d79025 Nicholas Piggin 2020-05-07 247
d72500f992849d3 Nicholas Piggin 2021-05-20 @248 #define kernel_stack_pointer(regs)
((regs)->gpr[1])
d72500f992849d3 Nicholas Piggin 2021-05-20 249 static inline int
is_syscall_success(struct pt_regs *regs)
d72500f992849d3 Nicholas Piggin 2021-05-20 250 {
d72500f992849d3 Nicholas Piggin 2021-05-20 251 if (trap_is_scv(regs))
d72500f992849d3 Nicholas Piggin 2021-05-20 252 return !IS_ERR_VALUE((unsigned
long)regs->gpr[3]);
d72500f992849d3 Nicholas Piggin 2021-05-20 253 else
d72500f992849d3 Nicholas Piggin 2021-05-20 254 return !(regs->ccr &
0x10000000);
d72500f992849d3 Nicholas Piggin 2021-05-20 255 }
d72500f992849d3 Nicholas Piggin 2021-05-20 256
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org