summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2010-02-02 14:42:02 +1100
committerSimon Horman <horms@verge.net.au>2010-02-02 14:42:02 +1100
commit48f3ad610b7098659064801f8dc9688e8795a42d (patch)
tree2c97677193078f874b008117f02f7ef8233a8810
parente563dfd8f3a8ef9550722fc93ff1fc204dcb04c8 (diff)
ppc: memory_range global is only used in conjunction with WITH_GAMECUBE
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/ppc/kexec-ppc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kexec/arch/ppc/kexec-ppc.c b/kexec/arch/ppc/kexec-ppc.c
index 511b027..3a17f5f 100644
--- a/kexec/arch/ppc/kexec-ppc.c
+++ b/kexec/arch/ppc/kexec-ppc.c
@@ -19,8 +19,10 @@
#include "config.h"
+#ifdef WITH_GAMECUBE
#define MAX_MEMORY_RANGES 64
static struct memory_range memory_range[MAX_MEMORY_RANGES];
+#endif
/* Return a sorted list of memory ranges. */
int get_memory_ranges(struct memory_range **UNUSED(range), int *UNUSED(ranges),