Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1869641ybl; Wed, 28 Aug 2019 23:31:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwU3Vh2u9Kr6G9OcAssKI/3BMK+oegyy89FoaIVrznlg6/7mojlDX/cFp5gYdVaAk0oGwtj X-Received: by 2002:a17:902:1122:: with SMTP id d31mr8379291pla.254.1567060291476; Wed, 28 Aug 2019 23:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567060291; cv=none; d=google.com; s=arc-20160816; b=Y2cjHDVNuJFmSDjzrIPMIMFEW64N1UeO9wPz8krhwr7OAKp5VSseGhWFoXSS+CO3nw X8Cb405w+gJLWmH/d4cU4qhRhZW8G4jcL75jbYuRthpnNbCdyJc5PZQBVbW7w6aGwkrw Mke+ax+gucUjP2ZYqWcAH9x82qsdv+klAnJNBfbx/yL7M4BPg6nG7A1uBWATRAmYJp+z yNW08gh8Up5nya2VO5qTAfJ0U53xsqR9Lqy5qonr01mIJaScyPMQg2CVnoeOHkZ66ZoH +yn5yEQ+XwKl+V7nnzosWYCNWHVx6MYrRB21hPH/Q+c81Wz/r4AduQOjpgqEXff92qB+ Oh/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=pVzT2DMoK4c+BPz96xNawQi94lx/6xiOWftvgTfFW5Q=; b=lcwj7vqd4C1m2b8cb3spAVDcwoX4TNHYHZTDY3YA4ssEeULjcHVR2fnnnSwtOLhGVJ WOjO5sBgoP1U9a3wR47K4rV1k/cvwl9sY0SGY4l9LxHbQKIf2XHWnkz7JsUHnDKqzlzE UwJ/8O06d0AWZ+gLdCVobW0dO2hsX9mBaIJJr/Ov8fP0MUOxQUfNr8ASRNVHDJM+C2pY r6IouANffnPZ1GHuYzVb2Q+2h3Y4afymaGGJnmSEXr8IKz8fUdG2pYX1+0OBeUaxcz/y Wev8DL1WE4mxLuk/b0qrTGLWXMODDB44cmGUKWoWflFG9H8A8HHf0E06vYAEWtgmNd7d phkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si1123879pgt.124.2019.08.28.23.31.12; Wed, 28 Aug 2019 23:31:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727216AbfH2GaX (ORCPT + 99 others); Thu, 29 Aug 2019 02:30:23 -0400 Received: from ozlabs.org ([203.11.71.1]:52285 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbfH2GaX (ORCPT ); Thu, 29 Aug 2019 02:30:23 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 46Jt5S3rV6z9sBp; Thu, 29 Aug 2019 16:30:20 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , segher@kernel.crashing.org, npiggin@gmail.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 1/2] powerpc: permanently include 8xx registers in reg.h In-Reply-To: References: Date: Thu, 29 Aug 2019 16:30:16 +1000 Message-ID: <875zmgv5zb.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > Most 8xx registers have specific names, so just include > reg_8xx.h all the time in reg.h in order to have them defined > even when CONFIG_PPC_8xx is not selected. This will avoid > the need for #ifdefs in C code. > > Guard SPRN_ICTRL in an #ifdef CONFIG_PPC_8xx as this register > has same name but different meaning and different spr number as > another register in the mpc7450. > > Signed-off-by: Christophe Leroy > > --- > v2: no change > --- > arch/powerpc/include/asm/reg.h | 2 -- > arch/powerpc/include/asm/reg_8xx.h | 2 ++ > 2 files changed, 2 insertions(+), 2 deletions(-) This breaks the ppc64e build unfortunately, presumably due to it changing the ordering of header inclusion. In file included from ../arch/powerpc/include/asm/percpu.h:13, from ../arch/powerpc/include/asm/mmu.h:137, from ../arch/powerpc/include/asm/reg_8xx.h:8, from ../arch/powerpc/include/asm/reg.h:28, from ../arch/powerpc/include/asm/processor.h:9, from ../include/linux/processor.h:6, from ../arch/powerpc/include/asm/delay.h:6, from ../include/linux/delay.h:26, from ../lib/nmi_backtrace.c:17: ../arch/powerpc/include/asm/paca.h:147:23: error: field 'tcd' has incomplete type struct tlb_core_data tcd; ^~~ cheers