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

login
register
mail settings
Submitter Meelis Roos
Date April 20, 2010, 6:56 a.m.
Message ID <alpine.SOC.1.00.1004200947380.22959@math.ut.ee>
Download mbox | patch
Permalink /patch/50516/
State Superseded
Delegated to: David Miller
Headers show

Comments

Meelis Roos - April 20, 2010, 6:56 a.m.
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>
David Miller - April 20, 2010, 7:49 a.m.
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

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>