mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.6.18-rc6-mm2: fix for error compiling ppc/mm/init.c
@ 2006-09-14 17:37 Judith Lebzelter
  2006-09-14 18:11 ` Mel Gorman
  0 siblings, 1 reply; 12+ messages in thread
From: Judith Lebzelter @ 2006-09-14 17:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: mel, akpm

Hello,

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.

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-10-09 23:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-14 17:37 2.6.18-rc6-mm2: fix for error compiling ppc/mm/init.c Judith Lebzelter
2006-09-14 18:11 ` Mel Gorman
2006-10-03  4:24   ` Benjamin Herrenschmidt
2006-10-03  8:51     ` Mel Gorman
2006-10-03  9:19       ` Benjamin Herrenschmidt
2006-10-03  9:34         ` Mel Gorman
2006-10-03 12:12           ` Benjamin Herrenschmidt
2006-10-03 13:04             ` Mel Gorman
2006-10-04  3:22               ` Benjamin Herrenschmidt
2006-10-04 14:12                 ` Mel Gorman
2006-10-05  9:09                   ` Benjamin Herrenschmidt
2006-10-09 23:25                   ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome