From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0113.outbound.protection.outlook.com [157.56.110.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 37D8D1A0019 for ; Wed, 7 Oct 2015 03:56:57 +1100 (AEDT) Message-ID: <1444150599.5336.289.camel@freescale.com> Subject: Re: [PATCH v2 15/25] powerpc/8xx: move 8xx SPRN defines into reg_8xx.h and add some missing ones From: Scott Wood To: Christophe Leroy CC: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , , Date: Tue, 6 Oct 2015 11:56:39 -0500 In-Reply-To: <5613DC41.2000100@c-s.fr> References: <20150929000346.GH6161@home.buserror.net> <5613DC41.2000100@c-s.fr> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2015-10-06 at 16:35 +0200, Christophe Leroy wrote: > Le 29/09/2015 02:03, Scott Wood a écrit : > > On Tue, Sep 22, 2015 at 06:50:58PM +0200, Christophe Leroy wrote: > > > Move 8xx SPRN defines into reg_8xx.h and add some missing ones > > > > > > Signed-off-by: Christophe Leroy > > > --- > > > No change in v2 > > Why are they being moved? Why are they being separated from the bit > > definitions? > > > > > It was to keep asm/reg_8xx.h self sufficient for the following patch. Again, it would have been nice if this were in the commit message. > Also because including asm/mmu-8xx.h creates circular inclusion issue > (mmu-8xx.h needs page.h which includes page-32.h, page-32.h includes > cache.h, cache.h include reg.h which includes reg_8xx). The circle > starts with an inclusion of asm/cache.h by linux/cache.h, himself > included by linux/printk.h, and I end up with 'implicit declaration' issues. > > How can I fix that ? mmu-8xx.h should have been including page.h instead of assuming the caller h as done so... but another option is to do what mmu-book3e.h does, and use the kconfig symbols instead of PAGE_SHIFT. -Scott