diff mbox

Fix kmemleak include in arch/sparc/kernel/irq_64.c

Message ID alpine.SOC.1.00.1004200947380.22959@math.ut.ee
State Superseded
Delegated to: David Miller
Headers show

Commit Message

Meelis Roos April 20, 2010, 6:56 a.m. UTC
Trying 2.6.34-rc5 on my minimal-config Ultra 1 gave me this error:

  CC      arch/sparc/kernel/irq_64.o
arch/sparc/kernel/irq_64.c: In function 'sun4v_build_virq':
arch/sparc/kernel/irq_64.c:657: error: implicit declaration of function 'kmemleak_not_leak'
make[1]: *** [arch/sparc/kernel/irq_64.o] Error 1

Fix it by including kmemleak.h for the inline function.

Signed-off-by: Meelis Roos <mroos@linux.ee>

Comments

David Miller April 20, 2010, 7:49 a.m. UTC | #1
From: Meelis Roos <mroos@linux.ee>
Date: Tue, 20 Apr 2010 09:56:35 +0300 (EEST)

> Trying 2.6.34-rc5 on my minimal-config Ultra 1 gave me this error:
> 
>   CC      arch/sparc/kernel/irq_64.o
> arch/sparc/kernel/irq_64.c: In function 'sun4v_build_virq':
> arch/sparc/kernel/irq_64.c:657: error: implicit declaration of function 'kmemleak_not_leak'
> make[1]: *** [arch/sparc/kernel/irq_64.o] Error 1
> 
> Fix it by including kmemleak.h for the inline function.
> 
> Signed-off-by: Meelis Roos <mroos@linux.ee>

Know problem, patch posted here already by Frederic last week, I just
haven't gotten around to pushing to Linus as I wanted to fix these
nasty ftrace crashes first.

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/sparc/kernel/irq_64.c b/arch/sparc/kernel/irq_64.c
index 454ce3a..2b04c72 100644
--- a/arch/sparc/kernel/irq_64.c
+++ b/arch/sparc/kernel/irq_64.c
@@ -22,6 +22,7 @@ 
 #include <linux/seq_file.h>
 #include <linux/ftrace.h>
 #include <linux/irq.h>
+#include <linux/kmemleak.h>
 
 #include <asm/ptrace.h>
 #include <asm/processor.h>