Skip to content

Commit

Permalink
ARM: kprobes: Fix compilation error caused by superfluous '*'
Browse files Browse the repository at this point in the history
There is a superfluous '*' in the definition of kprobe_decode_insn_t
which on older versions of GCC (4.2.4) causes the compilation error:

In file included from arch/arm/probes/kprobes/core.c:37:
arch/arm/probes/kprobes/core.h:43: error: '[*]' not allowed in other than a declaration

Fix this by removing the unneeded character.

Reported-by: Janusz Użycki <j.uzycki@elproma.com.pl>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
  • Loading branch information
Jon Medhurst committed Feb 10, 2015
1 parent fb892bd commit 4e1c066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/probes/kprobes/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ typedef enum probes_insn (kprobe_decode_insn_t)(probes_opcode_t,
struct arch_probes_insn *,
bool,
const union decode_action *,
const struct decode_checker *[*]);
const struct decode_checker *[]);

#ifdef CONFIG_THUMB2_KERNEL

Expand Down

0 comments on commit 4e1c066

Please sign in to comment.