Received: by 10.192.165.148 with SMTP id m20csp4880219imm; Tue, 1 May 2018 05:37:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqKBtmx5PBUVuDmMGnop97UHhz1gFvAnaXXpQX0t/AGE1dkbspTJRt+wwKgrPzYQYaXC5di X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr15740676plb.224.1525178247108; Tue, 01 May 2018 05:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525178247; cv=none; d=google.com; s=arc-20160816; b=U9tzGvFNDpu0FRCH5EXSBZBHJtb4a5kfEEcEGXhxOxt6aarLYfb5AGwWl1L0cgBSZj Xw2rAvbJ4n+lhVhcUuRWXoCqQd9igkE2083VQEQmeGZ0zTvqTZWvf85KEag83dYwf/bG UBJTaU3jeo9IsT9HdY9i/tlo8hBdN7Wj6tIKP8FfrGJpcNQs+5oDkTJX4xG5zw0joohB sq4A56mtp2Xsg6KLbInO3IAW5p5BnNTjF9ijl1s9uum3WYMKqboKrk65CL+hVW8o1g25 lu//AEnbKSthCMdmeA5IcwMy7vC7pz4XrCVFrWSuVPoR9AAT6JPUAe7DwRZHd5Ghfdk+ A0ug== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=/zE/CJ47/mIxEl4xiL1wipdu9WQF6rLt+pbgN812kt4=; b=0JnXTInrJqB6YwdFyctJTMiwM4XcL5NLYYi4JwKymOfLf8ojg2RFSzzG5ob2/GpGaa EFYmpLMt+I98s/pRwk37XnWgpPe15dZiVAW+FaiRHYkcML8bHN+T327rNTef0APD9QtQ siAql5GCwIt+xhzq278exfoEbOenuCTdMyA+o9ng6sgs813XwitS/LZXzY1vbntvaaaS qanATG45fRR38Nx5hkv74S9lgjEo8Re8r4Ssk3cFnKr4NdFkGVK1wrkXDF2sgUowHZl4 JZTwhkcptpBD3n/Fs3lwCEOmsN1qP4n9qSD62OCBT3syUF4prQvqS4wpzQNoGD6bEzwi hU3A== 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 b5-v6si7728927pgc.150.2018.05.01.05.37.13; Tue, 01 May 2018 05:37:27 -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 S1755352AbeEAMcS (ORCPT + 99 others); Tue, 1 May 2018 08:32:18 -0400 Received: from mail.bootlin.com ([62.4.15.54]:46024 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755145AbeEAMcQ (ORCPT ); Tue, 1 May 2018 08:32:16 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id AA07020A20; Tue, 1 May 2018 14:32:14 +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, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from dell-desktop.home (176-137-37-244.abo.bbox.fr [176.137.37.244]) by mail.bootlin.com (Postfix) with ESMTPSA id B5E38208B3; Tue, 1 May 2018 14:32:13 +0200 (CEST) From: =?UTF-8?q?Myl=C3=A8ne=20Josserand?= To: linux@armlinux.org.uk, 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 Cc: 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, mylene.josserand@bootlin.com, Doug Berger , Florian Fainelli Subject: [PATCH v8 01/12] ARM: Allow this header to be included by assembly files Date: Tue, 1 May 2018 14:31:20 +0200 Message-Id: <20180501123131.7738-2-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180501123131.7738-1-mylene.josserand@bootlin.com> References: <20180501123131.7738-1-mylene.josserand@bootlin.com> 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 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 --- 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