sh: oprofile: Fix up the module build.
Paul Mundt [Mon, 22 Dec 2008 10:32:27 +0000 (19:32 +0900)]
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

arch/sh/oprofile/backtrace.c

index 418e834..9499a29 100644 (file)
@@ -85,11 +85,7 @@ kernel_backtrace(unsigned long *stackaddr, struct pt_regs *regs)
         */
        do {
                addr = *stackaddr++;
-
-               if (__kernel_text_address(addr)) {
-                       oprofile_add_trace(addr);
-                       break;
-               }
+               oprofile_add_trace(addr);
        } while (valid_kernel_stack(stackaddr, regs));
 
        return stackaddr;