Re: 2.6.18-rc6-mm2: fix for error compiling ppc/mm/init.c

From: Mel Gorman
Date: Thu Sep 14 2006 - 14:11:49 EST


On Thu, 14 Sep 2006, Judith Lebzelter wrote:

For ppc in our cross-compile build farm (PLM), there is an error
compiling file ppc/mm/init.c:

CC arch/ppc/mm/init.o
CC arch/powerpc/kernel/init_task.o
arch/ppc/mm/init.c: In function 'paging_init':
arch/ppc/mm/init.c:381: error: subscripted value is neither array nor pointer
arch/ppc/mm/init.c:383: warning: passing argument 1 of '/' makes pointer from integer without a cast
make[1]: [arch/ppc/mm/init.o] Error 1 (ignored)


This is caused by an error/oversight in file
'have-power-use-add_active_range-and-free_area_init_nodes.patch'

Here is a patch to fix that patch.


Looks good. Thanks

Acked-by: Mel Gorman <mel@xxxxxxxxx>


Thanks;
Judith Lebzelter
OSDL


--- arch/ppc/mm/init.c.old 2006-09-14 09:40:51.964543641 -0700
+++ arch/ppc/mm/init.c 2006-09-14 10:04:46.814015750 -0700
@@ -359,7 +359,7 @@
void __init paging_init(void)
{
unsigned long start_pfn, end_pfn;
- unsigned long max_zone_pfns;
+ unsigned long max_zone_pfns[MAX_NR_ZONES];
#ifdef CONFIG_HIGHMEM
map_page(PKMAP_BASE, 0, 0); /* XXX gross */
pkmap_page_table = pte_offset_kernel(pmd_offset(pgd_offset_k


--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
-
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/