From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.lst.de (verein.lst.de [213.95.11.210]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 644C167B93 for ; Fri, 17 Nov 2006 19:01:04 +1100 (EST) Date: Fri, 17 Nov 2006 09:00:52 +0100 From: Christoph Hellwig To: Vitaly Bordug Subject: Re: [PATCH 2/5] [POWERPC] 8xx: generic 8xx code arch/powerpc port Message-ID: <20061117080052.GA16985@lst.de> References: <20061114012504.17455.13833.stgit@localhost.localdomain> <20061114012816.17455.12059.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20061114012816.17455.12059.stgit@localhost.localdomain> Cc: linuxppc-dev , Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , I've done some grepping, so here are some more useful comments on the fault.c additions: > +#ifdef CONFIG_8xx > + > +/* The pgtable.h claims some functions generically exist, but I > + * can't find them...... > + */ This comment is copied from arch/ppc/ but utterly wrong - no one but 8xx implements any of these functions. I'd say just kill it. > +pte_t *va_to_pte(unsigned long address) this is used by arch/ppc/fec.c to set mapping uncachable, which seems rather odd to me. For now we'll have to keep it I think, but it might make sense to move the implementation to fec.c. > +unsigned long va_to_phys(unsigned long address) this is completely unused. You should probably remove it from arch/ppc aswell. > +void > +print_8xx_pte(struct mm_struct *mm, unsigned long addr) > +int > +get_8xx_pte(struct mm_struct *mm, unsigned long addr) These two are only used by arch/ppc/kernel/softemu8xx.c and should bew move to that file.