[PATCH] Alpha compile error on 2.6.7-rc1

From: Patrick Finnegan
Date: Fri May 28 2004 - 14:06:34 EST


Machine is a 21164A Alpha (164LX motherboard). The error is:

CC arch/alpha/mm/init.o
arch/alpha/mm/init.c: In function `show_mem':
arch/alpha/mm/init.c:120: structure has no member named `count'
make[1]: *** [arch/alpha/mm/init.o] Error 1
make: *** [arch/alpha/mm] Error 2

Patch is below.

Alpha: Fixup arch/alpha/mm/init.c to match struct page changes

--- linux-2.6.7-rc1.old/arch/alpha/mm/init.c 2004-05-28 13:53:04.000000000 -0500
+++ linux-2.6.7-rc1/arch/alpha/mm/init.c 2004-05-28 13:53:52.000000000 -0500
@@ -117,7 +117,7 @@
else if (!page_count(mem_map+i))
free++;
else
- shared += atomic_read(&mem_map[i].count) - 1;
+ shared += atomic_read(&mem_map[i]._count) - 1;
}
printk("%ld pages of RAM\n",total);
printk("%ld free pages\n",free);

-- Pat
Purdue University ITAP/RCS --- http://www.itap.purdue.edu/rcs/
The Computer Refuge --- http://computer-refuge.org
-
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/