* [PATCH] Alpha compile error on 2.6.7-rc1
@ 2004-05-28 19:05 Patrick Finnegan
2004-05-28 19:11 ` William Lee Irwin III
0 siblings, 1 reply; 3+ messages in thread
From: Patrick Finnegan @ 2004-05-28 19:05 UTC (permalink / raw)
To: linux-kernel; +Cc: rth
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Alpha compile error on 2.6.7-rc1
2004-05-28 19:05 [PATCH] Alpha compile error on 2.6.7-rc1 Patrick Finnegan
@ 2004-05-28 19:11 ` William Lee Irwin III
2004-05-28 19:48 ` Jeff Garzik
0 siblings, 1 reply; 3+ messages in thread
From: William Lee Irwin III @ 2004-05-28 19:11 UTC (permalink / raw)
To: Patrick Finnegan; +Cc: linux-kernel, rth
On Fri, May 28, 2004 at 02:05:30PM -0500, Patrick Finnegan wrote:
> 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
Might be a better idea to use page_count(&mem_map[i]).
-- wli
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Alpha compile error on 2.6.7-rc1
2004-05-28 19:11 ` William Lee Irwin III
@ 2004-05-28 19:48 ` Jeff Garzik
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2004-05-28 19:48 UTC (permalink / raw)
To: William Lee Irwin III; +Cc: Patrick Finnegan, linux-kernel, rth
William Lee Irwin III wrote:
> On Fri, May 28, 2004 at 02:05:30PM -0500, Patrick Finnegan wrote:
>
>>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
>
>
> Might be a better idea to use page_count(&mem_map[i]).
which is what current -BK does...
Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-28 19:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-28 19:05 [PATCH] Alpha compile error on 2.6.7-rc1 Patrick Finnegan
2004-05-28 19:11 ` William Lee Irwin III
2004-05-28 19:48 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox