Skip to contentSkip to conversation

patch arch/ppc/mm/pgtable.c

PATCH Thomas Gleixner 1 participant 1 message Apr 10, 2003

lore
Share & tools
lore
#0 lore raw

If HAVE_BATS is not defined, compile stop later as total_lowmem is undefined.

--
Thomas
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: [email protected]

diff -urN linux-2.4.20-ppc/arch/ppc/mm/pgtable.c
linux-2.4.20-ppc-work/arch/ppc/mm/pgtable.c

arch/ppc/mm/pgtable.c +1 -1
@@ -199,11 +199,11 @@
 adjust_total_lowmem(void)
 {
 	unsigned long max_low_mem = MAX_LOW_MEM;
+	unsigned long ram = total_lowmem;
 
 #ifdef HAVE_BATS
 	unsigned long bat_max = 0x10000000;
 	unsigned long align;
-	unsigned long ram = total_lowmem;
 	int is601 = 0;
 
 	/* 601s have smaller BATs */

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/