aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/kernel/traps.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
index 5e3633c24e63..2fe87109ae46 100644
--- a/arch/arm/kernel/traps.c
+++ b/arch/arm/kernel/traps.c
@@ -19,6 +19,7 @@
19#include <linux/uaccess.h> 19#include <linux/uaccess.h>
20#include <linux/hardirq.h> 20#include <linux/hardirq.h>
21#include <linux/kdebug.h> 21#include <linux/kdebug.h>
22#include <linux/kprobes.h>
22#include <linux/module.h> 23#include <linux/module.h>
23#include <linux/kexec.h> 24#include <linux/kexec.h>
24#include <linux/bug.h> 25#include <linux/bug.h>
@@ -417,7 +418,8 @@ void unregister_undef_hook(struct undef_hook *hook)
417 raw_spin_unlock_irqrestore(&undef_lock, flags); 418 raw_spin_unlock_irqrestore(&undef_lock, flags);
418} 419}
419 420
420static int call_undef_hook(struct pt_regs *regs, unsigned int instr) 421static nokprobe_inline
422int call_undef_hook(struct pt_regs *regs, unsigned int instr)
421{ 423{
422 struct undef_hook *hook; 424 struct undef_hook *hook;
423 unsigned long flags; 425 unsigned long flags;
@@ -490,6 +492,7 @@ die_sig:
490 492
491 arm_notify_die("Oops - undefined instruction", regs, &info, 0, 6); 493 arm_notify_die("Oops - undefined instruction", regs, &info, 0, 6);
492} 494}
495NOKPROBE_SYMBOL(do_undefinstr)
493 496
494/* 497/*
495 * Handle FIQ similarly to NMI on x86 systems. 498 * Handle FIQ similarly to NMI on x86 systems.