Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c63c3105 authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: use kprobes_built_in() for notify_page_fault().



Kill off the KPROBES ifdef, as per x86.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 1ecc6ab6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
}