Skip to contentSkip to conversation

powerpc: fix system.h fallout in sysdev/scom.c [chroma_defconfig]

PATCH In review Paul Gortmaker 2 participants 2 messages Apr 16, 2012 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: fix system.h fallout in sysdev/scom.c [chroma_defconfig]

The following shows up in chroma_defconfig:

CC arch/powerpc/sysdev/scom.o
arch/powerpc/sysdev/scom.c: In function 'scom_debug_init':
arch/powerpc/sysdev/scom.c:182:36: error: 'powerpc_debugfs_root' undeclared (first use in this function) arch/powerpc/sysdev/scom.c:182:36: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [arch/powerpc/sysdev/scom.o] Error 1
make[1]: *** [arch/powerpc/sysdev/scom.o] Error 2

A bisect leads to commit 9ffc93f203c18a70623f21950f1dd473c9ec48cd

"Remove all #inclusions of asm/system.h"

Add the debug header which contains powerpc_debugfs_root.

---

[Ben, let me know if you want to take this or have me keep it.]

arch/powerpc/sysdev/scom.c +1 -0
index 49a3ece..702256a 100644
@@ -22,6 +22,7 @@
 #include <linux/debugfs.h>
 #include <linux/slab.h>
 #include <linux/export.h>
+#include <asm/debug.h>
 #include <asm/prom.h>
 #include <asm/scom.h>
 
Signature · 1 line
1.7.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Paul Gortmaker

The following shows up in chroma_defconfig:

CC arch/powerpc/sysdev/scom.o
arch/powerpc/sysdev/scom.c: In function 'scom_debug_init':
arch/powerpc/sysdev/scom.c:182:36: error: 'powerpc_debugfs_root' undeclared (first use in this function) arch/powerpc/sysdev/scom.c:182:36: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [arch/powerpc/sysdev/scom.o] Error 1
make[1]: *** [arch/powerpc/sysdev/scom.o] Error 2

Quoted 8 lines

A bisect leads to commit 9ffc93f203c18a70623f21950f1dd473c9ec48cd

"Remove all #inclusions of asm/system.h"

Add the debug header which contains powerpc_debugfs_root.