]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
sh: use kprobes_built_in() for notify_page_fault().
authorPaul Mundt <lethal@linux-sh.org>
Sat, 4 Jul 2009 17:50:10 +0000 (02:50 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 4 Jul 2009 17:50:10 +0000 (02:50 +0900)
Kill off the KPROBES ifdef, as per x86.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/fault_32.c

index 71925946f1e16d6294301581ade0bb6f0fda050a..ce75b8882efbe520ed8f90d2ba7b672872b043d9 100644 (file)
@@ -25,14 +25,12 @@ static inline int notify_page_fault(struct pt_regs *regs, int trap)
 {
        int ret = 0;
 
-#ifdef CONFIG_KPROBES
-       if (!user_mode(regs)) {
+       if (kprobes_built_in() && !user_mode(regs)) {
                preempt_disable();
                if (kprobe_running() && kprobe_fault_handler(regs, trap))
                        ret = 1;
                preempt_enable();
        }
-#endif
 
        return ret;
 }