From: "David S. Miller" <davem@redhat.com>
To: andrea@suse.de
Cc: ink@jurassic.park.msu.ru, ezolt@perf.zko.dec.com,
axp-list@redhat.com, rth@twiddle.net, Jay.Estabrook@compaq.com,
linux-kernel@vger.kernel.org, clinux@zk3.dec.com,
wcarr@perf.zko.dec.com, linux-alpha@vger.kernel.org
Subject: Re: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11]
Date: Fri, 15 Dec 2000 09:11:31 -0800 [thread overview]
Message-ID: <200012151711.JAA20826@pizda.ninka.net> (raw)
In-Reply-To: <20001215164626.C16586@inspiron.random> (message from Andrea Arcangeli on Fri, 15 Dec 2000 16:46:26 +0100)
Date: Fri, 15 Dec 2000 16:46:26 +0100
From: Andrea Arcangeli <andrea@suse.de>
This one breaks all archs but i386 and alpha. If some arch maintainer likes me
to update its arch blindly implementing mm_arch structure as an `unsigned long
context' and fixing up the miscompilation I will do.
Can you name the mm_struct member "context" still instead of
"mm_arch"? Because many ports will simply:
typedef unsigned long mm_arch_t;
Then all the code changes will make the accesses look less
meaningful. Consider:
if (CTX_VALID(mm->mm_arch))
whereas before the code said:
if (CTX_VALID(mm->context))
which tells the reader lot more. In fact, retaining the "context" member
name allows most ports to operate with only one change, creating
the asm/mm_arch.h header. You can in fact do this for all ports
which care about MMU tlb contexts (a simple grep such as
egrep -e "m->context" `find . -type f -name "*.[ch]"`
will show you which ports care).
Later,
David S. Miller
davem@redhat.com
next prev parent reply other threads:[~2000-12-15 17:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-30 20:02 Alpha SCSI error on 2.4.0-test11 Phillip Ezolt
2000-11-30 20:37 ` Peter Rival
2000-11-30 21:40 ` Ivan Kokshaysky
2000-11-30 22:26 ` Phillip Ezolt
[not found] ` <20001130233742.A21823@athlon.random>
2000-12-01 11:56 ` Ivan Kokshaysky
[not found] ` <20001201151842.C30653@athlon.random>
2000-12-01 18:19 ` mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11] David S. Miller
[not found] ` <20001201201444.A2098@inspiron.random>
[not found] ` <20001215164626.C16586@inspiron.random>
2000-12-15 17:11 ` David S. Miller [this message]
[not found] ` <20001215185528.C17781@inspiron.random>
2000-12-15 17:44 ` David S. Miller
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox