Re: [PATCH 1/5] UML - Fix ZONE_HIGHMEM compilation error

From: Jeff Dike
Date: Thu Jul 13 2006 - 14:16:19 EST


On Thu, Jul 13, 2006 at 01:24:21AM -0700, Andrew Morton wrote:
> > for(i=0;i<sizeof(zones_size)/sizeof(zones_size[0]);i++)
>
> I spy an ARRAY_SIZE().

Yup, I did an ARRAY_SIZE pass a while ago, but I missed that somehow,
and some grepping shows there are a bunch more.

> Maybe this is an rc1-mm1 fix? Did Christoph's patches break UML, perhaps??

Yes, it's this bit in mmzone.h:
#ifdef CONFIG_HIGHMEM
/*
* A memory area that is only addressable by the kernel through
* mapping portions into its own address space. This is for example
* used by i386 to allow the kernel to address the memory beyond
* 900MB. The kernel will set up special mappings (page
* table entries on i386) for each page that the kernel needs to
* access.
*/
ZONE_HIGHMEM,
#endif

Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/