From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id BC9F32F0D2 for ; Fri, 15 Dec 2000 12:34:05 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eBFHY5A12853 for axp-list@listman.redhat.com; Fri, 15 Dec 2000 12:34:05 -0500 Received: from pizda.ninka.net (IDENT:root@pizda.ninka.net [216.101.162.242]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id eBFHY4D12849 for ; Fri, 15 Dec 2000 12:34:04 -0500 Received: (from davem@localhost) by pizda.ninka.net (8.9.3/8.9.3) id JAA20826; Fri, 15 Dec 2000 09:11:31 -0800 Date: Fri, 15 Dec 2000 09:11:31 -0800 Message-Id: <200012151711.JAA20826@pizda.ninka.net> From: "David S. Miller" 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 In-reply-to: <20001215164626.C16586@inspiron.random> (message from Andrea Arcangeli on Fri, 15 Dec 2000 16:46:26 +0100) Subject: Re: mm->context[NR_CPUS] and pci fix check [was Re: Alpha SCSI error on 2.4.0-test11] References: <20001201004049.A980@jurassic.park.msu.ru> <20001130233742.A21823@athlon.random> <20001201145619.A553@jurassic.park.msu.ru> <20001201151842.C30653@athlon.random> <200012011819.KAA02951@pizda.ninka.net> <20001201201444.A2098@inspiron.random> <20001215164626.C16586@inspiron.random> X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors Date: Fri, 15 Dec 2000 16:46:26 +0100 From: Andrea Arcangeli 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