[PATCH] powerpc: More debugging fixups
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 15 Nov 2005 04:16:38 +0000 (15:16 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 16 Nov 2005 02:29:40 +0000 (13:29 +1100)
Add a few more missing includes of udbg.h

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/pci_64.c
arch/powerpc/kernel/setup-common.c
arch/powerpc/kernel/smp.c
arch/powerpc/platforms/pseries/smp.c

index 3cef1b8f57f01a4d70ff2f376a4cda1289bea7fa..d7de3ec0bf83749eb24064c71fc52f8a0ea7537d 100644 (file)
 #include <asm/byteorder.h>
 #include <asm/irq.h>
 #include <asm/machdep.h>
-#include <asm/udbg.h>
 #include <asm/ppc-pci.h>
 
 #ifdef DEBUG
+#include <asm/udbg.h>
 #define DBG(fmt...) udbg_printf(fmt)
 #else
 #define DBG(fmt...)
index 33e7f2c7f194b6e28324dad030acf64da7ab032b..bd3eb4292b53e6ea06096be111989bbe7718a10f 100644 (file)
@@ -59,6 +59,7 @@
 #undef DEBUG
 
 #ifdef DEBUG
+#include <asm/udbg.h>
 #define DBG(fmt...) udbg_printf(fmt)
 #else
 #define DBG(fmt...)
index 62dfc5b8d765c7251c0a469ed596f5cad11d9e60..30374d2f88e5c47eb34bed23bec01628ea387b42 100644 (file)
 #include <asm/paca.h>
 #endif
 
-int smp_hw_index[NR_CPUS];
-struct thread_info *secondary_ti;
-
 #ifdef DEBUG
+#include <asm/udbg.h>
 #define DBG(fmt...) udbg_printf(fmt)
 #else
 #define DBG(fmt...)
 #endif
 
+int smp_hw_index[NR_CPUS];
+struct thread_info *secondary_ti;
+
 cpumask_t cpu_possible_map = CPU_MASK_NONE;
 cpumask_t cpu_online_map = CPU_MASK_NONE;
 cpumask_t cpu_sibling_map[NR_CPUS] = { [0 ... NR_CPUS-1] = CPU_MASK_NONE };
index 5800cde7d5adf66c10699b757564d09d3b07fcf8..25181c594d737f128c0f8676a30dad24a328108c 100644 (file)
@@ -51,6 +51,7 @@
 #include "plpar_wrappers.h"
 
 #ifdef DEBUG
+#include <asm/udbg.h>
 #define DBG(fmt...) udbg_printf(fmt)
 #else
 #define DBG(fmt...)