]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/s390/include/asm/kprobes.h
kprobes: move kprobe declarations to asm-generic/kprobes.h
[karo-tx-linux.git] / arch / s390 / include / asm / kprobes.h
index 591e5a5279b05e46395ab949cb9bfb88ce92b6d3..84c0f908648366cd5acad1db31deaa66d50cec9c 100644 (file)
  * 2005-Dec    Used as a template for s390 by Mike Grundy
  *             <grundym@us.ibm.com>
  */
+#include <asm-generic/kprobes.h>
+
+#define BREAKPOINT_INSTRUCTION 0x0002
+
+#ifdef CONFIG_KPROBES
 #include <linux/types.h>
 #include <linux/ptrace.h>
 #include <linux/percpu.h>
@@ -37,7 +42,6 @@ struct pt_regs;
 struct kprobe;
 
 typedef u16 kprobe_opcode_t;
-#define BREAKPOINT_INSTRUCTION 0x0002
 
 /* Maximum instruction size is 3 (16bit) halfwords: */
 #define MAX_INSN_SIZE          0x0003
@@ -91,4 +95,5 @@ int probe_is_insn_relative_long(u16 *insn);
 
 #define flush_insn_slot(p)     do { } while (0)
 
+#endif /* CONFIG_KPROBES */
 #endif /* _ASM_S390_KPROBES_H */