linux/arch/arm64/kernel/probes
Pratyush Anand 7b03b62231 arm64: fix error: conflicting types for 'kprobe_fault_handler'
When CONFIG_KPROBE is disabled but CONFIG_UPROBE_EVENT is enabled, we get
following compilation error:

In file included from
.../arch/arm64/kernel/probes/decode-insn.c:20:0:
.../arch/arm64/include/asm/kprobes.h:52:5: error:
conflicting types for 'kprobe_fault_handler'
 int kprobe_fault_handler(struct pt_regs *regs, unsigned int fsr);
     ^~~~~~~~~~~~~~~~~~~~
In file included from
.../arch/arm64/kernel/probes/decode-insn.c:17:0:
.../include/linux/kprobes.h:398:90: note:
previous definition of 'kprobe_fault_handler' was here
 static inline int kprobe_fault_handler(struct pt_regs *regs, int trapnr)
                                                                                          ^
.../scripts/Makefile.build:290: recipe for target
'arch/arm64/kernel/probes/decode-insn.o' failed

<asm/kprobes.h> is already included from <linux/kprobes.h> under #ifdef
CONFIG_KPROBE. So, this patch fixes the error by removing it from
decode-insn.c.

Reported-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Pratyush Anand <panand@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2016-11-07 18:15:21 +00:00
..
decode-insn.c arm64: fix error: conflicting types for 'kprobe_fault_handler' 2016-11-07 18:15:21 +00:00
decode-insn.h arm64: kprobe: protect/rename few definitions to be reused by uprobe 2016-11-07 18:15:20 +00:00
kprobes_trampoline.S arm64: Add trampoline code for kretprobes 2016-07-19 15:03:22 +01:00
kprobes.c arm64: kprobe: protect/rename few definitions to be reused by uprobe 2016-11-07 18:15:20 +00:00
Makefile arm64: Add uprobe support 2016-11-07 18:15:21 +00:00
simulate-insn.c arm64/kprobes: Tidy up sign-extension usage 2016-11-07 18:15:03 +00:00
simulate-insn.h arm64: kprobes instruction simulation support 2016-07-19 15:03:21 +01:00
uprobes.c arm64: Add uprobe support 2016-11-07 18:15:21 +00:00