Fix kmemleak include in arch/sparc/kernel/irq_64.c
PATCH 1/1 Fix kmemleak include in arch/sparc/kernel/irq_64.c
Trying 2.6.34-rc5 on my minimal-config Ultra 1 gave me this error:
CC arch/sparc/kernel/irq_64.oarch/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.
arch/sparc/kernel/irq_64.c +1 -0
@@ -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>
Signature · 1 line
Meelis Roos ([email protected])
David Miller
maintainerFrom: Meelis Roos <[email protected]>
Date: Tue, 20 Apr 2010 09:56:35 +0300 (EEST)
Quoted 10 lines
Trying 2.6.34-rc5 on my minimal-config Ultra 1 gave me this error:
CC
arch/sparc/kernel/irq_64.oarch/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 1Fix it by including
kmemleak.hfor the inline function.Signed-off-by Meelis Roos <[email protected]>
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.