Skip to contentSkip to conversation

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

PATCH In review Meelis Roos 2 participants 2 messages Apr 20, 2010 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

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.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.

arch/sparc/kernel/irq_64.c +1 -0
index 454ce3a..2b04c72 100644
@@ -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])
maintainer
#1 lore raw

From: 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.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.

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.