瀏覽代碼

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

Signed-off-by: Tony Luck <tony.luck@intel.com>
Tony Luck 15 年之前
父節點
當前提交
410dc0aac6
共有 3 個文件被更改,包括 5 次插入6 次删除
  1. 0 1
      arch/ia64/include/asm/ftrace.h
  2. 0 5
      arch/ia64/include/asm/kprobes.h
  3. 5 0
      arch/ia64/include/asm/types.h

+ 0 - 1
arch/ia64/include/asm/ftrace.h

@@ -8,7 +8,6 @@
 extern void _mcount(unsigned long pfs, unsigned long r1, unsigned long b0, unsigned long r0);
 #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 */
 #define MCOUNT_ADDR (((struct fnptr *)mcount)->ip)
 #define FTRACE_ADDR (((struct fnptr *)ftrace_caller)->ip)

+ 0 - 5
arch/ia64/include/asm/kprobes.h

@@ -103,11 +103,6 @@ typedef struct kprobe_opcode {
 	bundle_t bundle;
 } kprobe_opcode_t;
 
-struct fnptr {
-	unsigned long ip;
-	unsigned long gp;
-};
-
 /* Architecture specific copy of original instruction*/
 struct arch_specific_insn {
 	/* copy of the instruction to be emulated */

+ 5 - 0
arch/ia64/include/asm/types.h

@@ -30,6 +30,11 @@
 
 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
  */