* [mhiramat:topic/fprobe-ftrace-regs 4/8] arch/riscv/kernel/probes/rethook.h:6:6: error: conflicting types for 'arch_rethook_prepare'
@ 2023-08-12 12:12 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-12 12:12 UTC (permalink / raw)
To: Masami Hiramatsu (Google); +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git topic/fprobe-ftrace-regs
head: 0403b5414401a0aa4ad3baf00cc543dc01608a6b
commit: f8fc919bb672d73f7cfee02b249965933b1adebf [4/8] fprobe: rethook: Use ftrace_regs in fprobe exit handler and rethook
config: riscv-randconfig-r025-20230812 (https://download.01.org/0day-ci/archive/20230812/202308122010.4qEiutvg-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230812/202308122010.4qEiutvg-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308122010.4qEiutvg-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/riscv/kernel/probes/rethook.c:8:
>> arch/riscv/kernel/probes/rethook.h:6:6: error: conflicting types for 'arch_rethook_prepare'
6 | void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount);
| ^
include/linux/rethook.h:73:6: note: previous declaration is here
73 | void arch_rethook_prepare(struct rethook_node *node, struct ftrace_regs *regs, bool mcount);
| ^
>> arch/riscv/kernel/probes/rethook.c:13:36: error: incompatible pointer types passing 'struct pt_regs *' to parameter of type 'struct ftrace_regs *' [-Werror,-Wincompatible-pointer-types]
13 | return rethook_trampoline_handler(regs, regs->s0);
| ^~~~
include/linux/rethook.h:92:62: note: passing argument to parameter 'regs' here
92 | unsigned long rethook_trampoline_handler(struct ftrace_regs *regs,
| ^
>> arch/riscv/kernel/probes/rethook.c:18:6: error: conflicting types for 'arch_rethook_prepare'
18 | void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount)
| ^
include/linux/rethook.h:73:6: note: previous declaration is here
73 | void arch_rethook_prepare(struct rethook_node *node, struct ftrace_regs *regs, bool mcount);
| ^
3 errors generated.
vim +/arch_rethook_prepare +6 arch/riscv/kernel/probes/rethook.h
b57c2f12409845 Binglei Wang 2022-10-25 4
b57c2f12409845 Binglei Wang 2022-10-25 5 unsigned long arch_rethook_trampoline_callback(struct pt_regs *regs);
b57c2f12409845 Binglei Wang 2022-10-25 @6 void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount);
b57c2f12409845 Binglei Wang 2022-10-25 7
:::::: The code at line 6 was first introduced by commit
:::::: b57c2f124098459a4acc15d5044f87cba31c87f0 riscv: add riscv rethook implementation
:::::: TO: Binglei Wang <l3b2w1@gmail.com>
:::::: CC: Palmer Dabbelt <palmer@rivosinc.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-12 12:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-12 12:12 [mhiramat:topic/fprobe-ftrace-regs 4/8] arch/riscv/kernel/probes/rethook.h:6:6: error: conflicting types for 'arch_rethook_prepare' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).