Alpha compile error on 2.6.7-rc1
PATCH 1/1 Alpha compile error on 2.6.7-rc1
Machine is a 21164A Alpha (164LX motherboard). The error is:
CC arch/alpha/mm/init.oarch/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
arch/alpha/mm/init.c +1 -1
@@ -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
Quoted 8 lines · Patrick Finnegan
Machine is a 21164A Alpha (164LX motherboard). The error is:
CCarch/alpha/mm/init.oarch/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: Fixuparch/alpha/mm/init.cto match struct page changes
Might be a better idea to use page_count(&mem_map[i]).
-- wli
Quoted 12 lines · William Lee Irwin III
Quoted 8 lines · Patrick Finnegan
Machine is a 21164A Alpha (164LX motherboard). The error is:
CCarch/alpha/mm/init.oarch/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: Fixuparch/alpha/mm/init.cto match struct page changes
Quoted 1 line
Might be a better idea to use
page_count(&mem_map[i]).
which is what current -BK does...
Jeff