]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[IA64] fix ia64 kprobes compilation
authorAdrian Bunk <bunk@kernel.org>
Mon, 3 Mar 2008 18:07:22 +0000 (20:07 +0200)
committerTony Luck <tony.luck@intel.com>
Tue, 4 Mar 2008 22:35:42 +0000 (14:35 -0800)
This patch fixes the following compile error with a recent gcc:
  CC      kernel/kprobes.o
/home/bunk/linux/kernel-2.6/git/linux-2.6/kernel/kprobes.c:1066: error: __ksymtab_jprobe_return causes a section type conflict

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/kprobes.c
include/asm-ia64/kprobes.h

index b618487cdc858b836cee4adb044579bb5cb716f4..615c3d2b634892b2c80cf7945f1c343bbfa60162 100644 (file)
@@ -1001,6 +1001,11 @@ int __kprobes setjmp_pre_handler(struct kprobe *p, struct pt_regs *regs)
        return 1;
 }
 
+/* ia64 does not need this */
+void __kprobes jprobe_return(void)
+{
+}
+
 int __kprobes longjmp_break_handler(struct kprobe *p, struct pt_regs *regs)
 {
        struct kprobe_ctlblk *kcb = get_kprobe_ctlblk();
index a93ce9ef07ff7a5497a4806d99df460030b080aa..49684b65c187138373b3aa67b9a5fc1c03954a43 100644 (file)
@@ -122,10 +122,6 @@ extern int kprobes_fault_handler(struct pt_regs *regs, int trapnr);
 extern int kprobe_exceptions_notify(struct notifier_block *self,
                                    unsigned long val, void *data);
 
-/* ia64 does not need this */
-static inline void jprobe_return(void)
-{
-}
 extern void invalidate_stacked_regs(void);
 extern void flush_register_stack(void);
 extern void arch_remove_kprobe(struct kprobe *p);