Skip to contentSkip to conversation

: fix type of MAXMEM

PATCH In review Juan Quintela 2 participants 2 messages Dec 19, 2002 – Dec 20, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : fix type of MAXMEM

Hi
I expect that the amount from where it is highmem to never be bigger that 4Giga Megabytes :) I.e. int should be enough.

Later, Juan.

Index: arch/mips/kernel/setup.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/kernel/setup.c,v retrieving revision 1.96.2.34

mips/kernel/setup.c +1 -1
diff -u -r1.96.2.34 setup.c
@@ -306,7 +306,7 @@
 		max_low_pfn = MAXMEM_PFN;
 #ifndef CONFIG_HIGHMEM
 		/* Maximum memory usable is what is directly addressable */
-		printk(KERN_WARNING "Warning only %ldMB will be used.\n",
+		printk(KERN_WARNING "Warning only %dMB will be used.\n",
 		       MAXMEM>>20);
 		printk(KERN_WARNING "Use a HIGHMEM enabled kernel.\n");
 #endif
Signature · 2 lines
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy
#1 lore raw
Quoted 2 lines · Juan Quintela

I expect that the amount from where it is highmem to never be bigger that 4Giga Megabytes :) I.e. int should be enough.

No. The root cause of this problem is the type of the constant HIGHMEM_START which should have been unsigned int but actually was just int.

Ralf