Received: by 10.192.165.148 with SMTP id m20csp408793imm; Fri, 4 May 2018 12:12:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqsrm4jpMR5rv9kMkmZ/1FmsAjbp3a4zx7xwlpS+ZqvwuH/1Vx3muSa3/u84HbWa+eXsp/Z X-Received: by 10.98.247.19 with SMTP id h19mr18134877pfi.165.1525461136458; Fri, 04 May 2018 12:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525461136; cv=none; d=google.com; s=arc-20160816; b=OSD+OzryQPe+Mv3Ce/gTTCwXZrwyWRP3By1cm7oemT4yrLZ+9aQ0+gpHPSSW1LP0Mk tlF1CVzvzpahD7ttp2BVI02wbL+gcYqsfZJiRmrNeBRZkrWFw6ey4DBREVyp05aMybpO gXF4ZxoGaF/wAVUFloAXFqvw5MlhirWtD+3K59NpiJ8DMvy1o4XyJgf5t5Dey24TaE/e yyev+sPRj35x3cy2CciFr7uJDpHFfv+vPBOu1ySBEvOD4iKAga/toV2gkP+Bz82wIBJ4 7M8RD6JXSEThS4Zp6EBRUSVyHNbdPeZVmeqrdwgBG1zjAIUEjYRKD3LhEuJxG1Z/9ehD pgnA== 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=rMWF/ScrGXxukDIQQbTqbbITulC2IJXoeDD3+MwwT++KpxH50UC3N8XPX9m/M+TiH6 xZH/wpoSwgSv6BG83TwZBw+ilD9ULs7biMiH2ocPIasmYkpTlo3WO6GAokFczHr7kzu0 Tg+Z+lbAJC0wyzphjcDf4M24rucnIiSVIu9XnVD5z7EL/EQc2ZSDZ51WOs/gg32Lckr8 YDidovmM+5YQcKortXIvJMr4F3xdzrox52xboeuyjLPf2j08dJy0QBYpmMQvlwQQv8ay 7GCu/AMkv4+zNr/Z56+yegWYBExDOUPxeFK7CwVUlWd4uvUhihW+NnGb1B+6x06qm9k2 27KA== 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 e1-v6si16110329pld.69.2018.05.04.12.12.02; Fri, 04 May 2018 12:12:16 -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 S1751812AbeEDTGw (ORCPT + 99 others); Fri, 4 May 2018 15:06:52 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42925 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751646AbeEDTGt (ORCPT ); Fri, 4 May 2018 15:06:49 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 1BD3D20723; Fri, 4 May 2018 21:06:47 +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 (176-137-37-244.abo.bbox.fr [176.137.37.244]) by mail.bootlin.com (Postfix) with ESMTPSA id 1F61C20650; Fri, 4 May 2018 21:06:46 +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: 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, mylene.josserand@bootlin.com Subject: [PATCH v9 01/12] ARM: Allow this header to be included by assembly files Date: Fri, 4 May 2018 21:05:34 +0200 Message-Id: <20180504190545.5114-2-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180504190545.5114-1-mylene.josserand@bootlin.com> References: <20180504190545.5114-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