Commit 410dc0aa authored by Tony Luck's avatar Tony Luck

[IA64] sanity in #include files. Move fnptr to types.h

Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 02b763b8
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
extern void _mcount(unsigned long pfs, unsigned long r1, unsigned long b0, unsigned long r0); extern void _mcount(unsigned long pfs, unsigned long r1, unsigned long b0, unsigned long r0);
#define mcount _mcount #define mcount _mcount
#include <asm/kprobes.h>
/* In IA64, MCOUNT_ADDR is set in link time, so it's not a constant at compile time */ /* In IA64, MCOUNT_ADDR is set in link time, so it's not a constant at compile time */
#define MCOUNT_ADDR (((struct fnptr *)mcount)->ip) #define MCOUNT_ADDR (((struct fnptr *)mcount)->ip)
#define FTRACE_ADDR (((struct fnptr *)ftrace_caller)->ip) #define FTRACE_ADDR (((struct fnptr *)ftrace_caller)->ip)
......
...@@ -103,11 +103,6 @@ typedef struct kprobe_opcode { ...@@ -103,11 +103,6 @@ typedef struct kprobe_opcode {
bundle_t bundle; bundle_t bundle;
} kprobe_opcode_t; } kprobe_opcode_t;
struct fnptr {
unsigned long ip;
unsigned long gp;
};
/* Architecture specific copy of original instruction*/ /* Architecture specific copy of original instruction*/
struct arch_specific_insn { struct arch_specific_insn {
/* copy of the instruction to be emulated */ /* copy of the instruction to be emulated */
......
...@@ -30,6 +30,11 @@ ...@@ -30,6 +30,11 @@
typedef unsigned int umode_t; typedef unsigned int umode_t;
struct fnptr {
unsigned long ip;
unsigned long gp;
};
/* /*
* These aren't exported outside the kernel to avoid name space clashes * These aren't exported outside the kernel to avoid name space clashes
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment