[PATCH] powerpc: More debugging fixups
Michael Ellerman
michael at ellerman.id.au
Tue Nov 15 15:16:38 EST 2005
Add a few more missing includes of udbg.h
Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
---
arch/powerpc/kernel/pci_64.c | 2 +-
arch/powerpc/kernel/setup-common.c | 1 +
arch/powerpc/kernel/smp.c | 7 ++++---
arch/powerpc/platforms/pseries/smp.c | 1 +
4 files changed, 7 insertions(+), 4 deletions(-)
Index: kexec/arch/powerpc/kernel/smp.c
===================================================================
--- kexec.orig/arch/powerpc/kernel/smp.c
+++ kexec/arch/powerpc/kernel/smp.c
@@ -49,15 +49,16 @@
#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: kexec/arch/powerpc/platforms/pseries/smp.c
===================================================================
--- kexec.orig/arch/powerpc/platforms/pseries/smp.c
+++ kexec/arch/powerpc/platforms/pseries/smp.c
@@ -51,6 +51,7 @@
#include "plpar_wrappers.h"
#ifdef DEBUG
+#include <asm/udbg.h>
#define DBG(fmt...) udbg_printf(fmt)
#else
#define DBG(fmt...)
Index: kexec/arch/powerpc/kernel/pci_64.c
===================================================================
--- kexec.orig/arch/powerpc/kernel/pci_64.c
+++ kexec/arch/powerpc/kernel/pci_64.c
@@ -30,10 +30,10 @@
#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: kexec/arch/powerpc/kernel/setup-common.c
===================================================================
--- kexec.orig/arch/powerpc/kernel/setup-common.c
+++ kexec/arch/powerpc/kernel/setup-common.c
@@ -59,6 +59,7 @@
#define DEBUG 1
#ifdef DEBUG
+#include <asm/udbg.h>
#define DBG(fmt...) udbg_printf(fmt)
#else
#define DBG(fmt...)
More information about the Linuxppc64-dev
mailing list