Received: by 10.192.165.148 with SMTP id m20csp4255952imm; Tue, 8 May 2018 05:42:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoRychO/p+S1Ga4yW5A2NjZ1d1GWbcYeV3wGwlvqd2UZWTv7yF93MW8z4uZWjEACZf4paio X-Received: by 2002:a17:902:265:: with SMTP id 92-v6mr40170845plc.368.1525783370253; Tue, 08 May 2018 05:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525783370; cv=none; d=google.com; s=arc-20160816; b=yM9PfR968xWCHtSRf9a0oauYRXzNA1FIdYrzvBFP6mpBmk5pNh8PWB6UcaDpMo8sdj 87Q8gorXhLFLL7ffnFcr8c9mAbhmMMeMa9AXjGvMEoHnPdzXICrd1D7r1Du2bPpW8abV KSJbMBAZkrFfOvQFeNaRT28quIhKyQn0UDaer7fFgSeG3rP80xkc6/Fi0akkXvmGENEJ cbGLVAGrYKd/BieKvyIRdsSnlXZwSxsMXWIN9urE+0kQ3NG5ch5UeTOO1ybR5FU1E71P JY5QisJ4aqUFN815lf75CwkQwXxSvXihKRKsdcHExZhYoT7Y30y6reoQwcbV7bPkoYrs FLQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=ERO3NSJczhsFbwFDyxsm408uP5QqaemFv3ZnsRBJBeI=; b=o+bGDzwvJjeeUj6t7HrOzWzUgsQWLuYYYVGotv7v5+kV0J0FtVtl03K4tEreEzikrl wjXAHXnT6di0K2Xy/0cPyh8xGJ+K96OIE266mKrK64RXs++YLf3/han1ylkZtVIysn6p MrXfPD+hj6a75voy+MLzPXBOZAYUyRx+O2SoZhAw6RN+ABPqpKgWPId5psqh55oMCQ0c e9uUSevz3AiRfU+7CKUCGc09XMcF4J/iUS5UQBrtVRKGeNjN7mYBBRXmE0DRtxfry2UW yflWKrFik2muLzvn1vNO0kKi/KFC77291r7eJc6AagX3o6UUNbnnni5ueK1I8zt+/lnZ v6ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=qjF4nq6o; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f19-v6si13089243plr.13.2018.05.08.05.42.35; Tue, 08 May 2018 05:42:50 -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; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=qjF4nq6o; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754815AbeEHMmY (ORCPT + 99 others); Tue, 8 May 2018 08:42:24 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:52450 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752461AbeEHMmW (ORCPT ); Tue, 8 May 2018 08:42:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ERO3NSJczhsFbwFDyxsm408uP5QqaemFv3ZnsRBJBeI=; b=qjF4nq6oOe6MVLdmY8OVvt0MI +x2F6wKCuQeseL+URWXvmwSNnUYChhJa/qAJqIOakUsLSvG4Saqx+n3n4XY9gmKrdmKVJcTxChqQ8 8W89vXm0QqjDi2Nv2dQ0dGpWbUAaUO8qPCeCzuLxJwjgZVhc4aGuFTnnNhe3F2QIHyiUU=; Received: from n2100.armlinux.org.uk ([fd8f:7570:feb6:1:214:fdff:fe10:4f86]:56263) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1fG1wY-0006rY-Kp; Tue, 08 May 2018 13:42:10 +0100 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1fG1wQ-0007RU-LD; Tue, 08 May 2018 13:42:02 +0100 Date: Tue, 8 May 2018 13:42:00 +0100 From: Russell King - ARM Linux To: =?iso-8859-1?Q?Myl=E8ne?= Josserand Cc: maxime.ripard@bootlin.com, wens@csie.org, marc.zyngier@arm.com, mark.rutland@arm.com, robh+dt@kernel.org, horms@verge.net.au, geert@linux-m68k.org, magnus.damm@gmail.com, f.fainelli@gmail.com, opendmb@gmail.com, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, thomas.petazzoni@bootlin.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 01/12] ARM: Allow this header to be included by assembly files Message-ID: <20180508124200.GM16141@n2100.armlinux.org.uk> References: <20180504190545.5114-1-mylene.josserand@bootlin.com> <20180504190545.5114-2-mylene.josserand@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180504190545.5114-2-mylene.josserand@bootlin.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 04, 2018 at 09:05:34PM +0200, Myl?ne Josserand wrote: > From: Doug Berger > > The constants defined in this file are equally useful in assembly and C > source files. The arm64 architecture version of this file allows > inclusion in both assembly and C source files, so this this commit adds > that capability to the arm architecture version so that the constants > don't need to be defined in multiple places. > > Signed-off-by: Doug Berger > Signed-off-by: Florian Fainelli > Signed-off-by: Myl?ne Josserand Acked-by: Russell King Thanks. > --- > arch/arm/include/asm/cputype.h | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/include/asm/cputype.h b/arch/arm/include/asm/cputype.h > index cb546425da8a..e7632f536633 100644 > --- a/arch/arm/include/asm/cputype.h > +++ b/arch/arm/include/asm/cputype.h > @@ -2,9 +2,6 @@ > #ifndef __ASM_ARM_CPUTYPE_H > #define __ASM_ARM_CPUTYPE_H > > -#include > -#include > - > #define CPUID_ID 0 > #define CPUID_CACHETYPE 1 > #define CPUID_TCM 2 > @@ -98,6 +95,11 @@ > /* Qualcomm implemented cores */ > #define ARM_CPU_PART_SCORPION 0x510002d0 > > +#ifndef __ASSEMBLY__ > + > +#include > +#include > + > extern unsigned int processor_id; > > #ifdef CONFIG_CPU_CP15 > @@ -326,4 +328,6 @@ static inline int __attribute_const__ cpuid_feature_extract_field(u32 features, > #define cpuid_feature_extract(reg, field) \ > cpuid_feature_extract_field(read_cpuid_ext(reg), field) > > +#endif /* __ASSEMBLY__ */ > + > #endif > -- > 2.11.0 > -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up