Received: by 10.213.65.68 with SMTP id h4csp4346006imn; Tue, 10 Apr 2018 13:23:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx49p5BwLr01uHnOfQRwmdEQ+mcPiDGrlMP69IBtEiU53mQar5+QSkAwpoPuivMNhPeo4zS4/ X-Received: by 2002:a17:902:28a6:: with SMTP id f35-v6mr1909064plb.204.1523391824298; Tue, 10 Apr 2018 13:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523391824; cv=none; d=google.com; s=arc-20160816; b=fzXcLgqPv/EBJ8QHq0DNwwJxLgtqOR8f8R3OANP9oD+2GrpXeqqoC3yDI6mz2dDFM3 HJTh38qi5v2oSX/qzzJnH1WM7zZZMaUxB8Zsn31Wc4UtjHkeKZUBC5nCodEMKNYbe88d 7JHABBGdFJfRXCfKBOCoqmBrUoqqRu2noCxlNH+q+ER5wowXYQ8eSr3mftg+MxsEgv4q QSN+FReP+XODA0dXK2AvcZLS2Jh37jVI/0u9gmUY6CrJHtg8VRreq1JhZO81U4Eo+1Lx UvVVc0HmnlEtBjGwAblr3lVswoayo7juKGyK8L1ljyr2CAo33Unr9162eKqv71FTSPSC pYbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=s5EtK4FfvzEvhrRL1sgssvJGY9B6gAMQRSCMiqeTzSU=; b=Wmkmdov8QT/Vf84uz4bW0TZUBurEYn0UVDn05Yp+C6yRs2QJIur63dSS54pk/wFyWR vmE3NVx4FF+abByAy1nJqVricpH21DV8EWc5/ro9knntlNStSzYgGAznXV0jeWtDMawr rmYvNLg6Zudz5Cdj0Sv6mhy+Id+qyq0/dRx1UpCQacCF2LeYGznYb/sXJrXF4XsUWaSh TfT7wBdgmGD/ntI+GXMw1NncCzxcvoSThGJAvJnCoQPbqbIOfxcsnxq9t0VwmXeMikEE 1s6fCn5iYCl86Qf2vIvbLESLtzTMZzCgaCkGJ55LQels16Zr/MHyEKrMe5UVLh/6aifa ek8A== 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 z3-v6si3238851plb.114.2018.04.10.13.23.06; Tue, 10 Apr 2018 13:23:44 -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 S1753251AbeDJUTx convert rfc822-to-8bit (ORCPT + 99 others); Tue, 10 Apr 2018 16:19:53 -0400 Received: from mail.bootlin.com ([62.4.15.54]:59402 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752498AbeDJUTw (ORCPT ); Tue, 10 Apr 2018 16:19:52 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id DE19D2038E; Tue, 10 Apr 2018 22:19:50 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from dell-desktop.home (vol75-h03-176-137-37-244.dsl.sta.abo.bbox.fr [176.137.37.244]) by mail.bootlin.com (Postfix) with ESMTPSA id 38FDA20146; Tue, 10 Apr 2018 22:19:50 +0200 (CEST) Date: Tue, 10 Apr 2018 22:19:49 +0200 From: =?UTF-8?B?TXlsw6huZQ==?= Josserand To: Florian Fainelli Cc: linux-arm-kernel@lists.infradead.org, Vladimir Murzin , Greg Kroah-Hartman , Russell King , open list , Doug Berger , "maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE" , Gregory Fong , Philippe Ombredanne , Brian Norris Subject: Re: [PATCH 1/4] ARM: Allow this header to be included by assembly files Message-ID: <20180410221949.0be82368@dell-desktop.home> In-Reply-To: <20180223210923.544-2-f.fainelli@gmail.com> References: <20180223210923.544-1-f.fainelli@gmail.com> <20180223210923.544-2-f.fainelli@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, 23 Feb 2018 13:09:20 -0800 Florian Fainelli 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 > --- > 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 Tested-by: Mylène Josserand Thanks! Best regards, -- Mylène Josserand, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com