Received: by 10.223.185.116 with SMTP id b49csp1169558wrg; Fri, 23 Feb 2018 13:12:22 -0800 (PST) X-Google-Smtp-Source: AH8x227pgU4hgOH4DuRotke+uN8f1+pmCFh97if9R2h/uLFuJ/pATy3OQFm713d1QVgXSWac7RFV X-Received: by 2002:a17:902:367:: with SMTP id 94-v6mr2948469pld.140.1519420342608; Fri, 23 Feb 2018 13:12:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519420342; cv=none; d=google.com; s=arc-20160816; b=mRrZiR1g9N4kwE/tlKgviEnwN8P0BnVRMhHNqET3zCpqw4E3+6J8VZvm+lBGo2t7o2 935aVQOCPmwgASQksGxJsFw7U4t2R2WkqrIuciUA7Ke+xJrVoZYruFBmDmQNrUN/jls8 eyl6LbQputJeRN0Hg28FN3n0ti5aIykAoAkNFPDGtKEedkYVe5v163u36v/vaETdXAsZ I/pOMz/AC2WAgW7mjj/FcnZae7Qggw/KFEEgc7r0oq/bhiqoLBT8BI9qeWlO7aRBkQd1 f0WMenlPns4wF3Y+cq8KH0FH+Lzur7Xy9/tSOfla3phgavAicLLqWK/YKafOu/yCG725 TPzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=zxD032hDEg0q3J6hg2UhWFukYFGV+9FMSco53oLWH5Y=; b=gsIxzGDpEsgB2uAH4AZYy0fGIhU1Oc2ronrSYtX6aQOd3cLG5a92As6Im9wriqR9lQ VGM52569+uwa8kbEfm3g+ZXyTsPczsQ0hVq4BHjS3GUsMtH+TARZG0+O2d8Y/bdE6Vpu Z2/b5Q4f+PT45HT/JF2LaQn+zlELC0sAcrf1QE+xqk6VesdgXuOpZejGdqXeT7Lc99WH QnE5wpKiiov5h8tLx8V/HSglB3ttf1bUMExo76mpR4dJVYTB8co6EDPSltkdqpNkzf2V 9DrSMqrmGk2tOjUqzdkJezbcCvDH8lnWEtR/CnE2nMgomA3gJrRuopUhGOUGfLejaFs4 uvLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gZHGcp39; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb10-v6si1066799plb.86.2018.02.23.13.12.08; Fri, 23 Feb 2018 13:12:22 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b=gZHGcp39; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752659AbeBWVKz (ORCPT + 99 others); Fri, 23 Feb 2018 16:10:55 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:39236 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752268AbeBWVJp (ORCPT ); Fri, 23 Feb 2018 16:09:45 -0500 Received: by mail-qt0-f193.google.com with SMTP id f4so12184431qtj.6 for ; Fri, 23 Feb 2018 13:09:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zxD032hDEg0q3J6hg2UhWFukYFGV+9FMSco53oLWH5Y=; b=gZHGcp39R8MyfVDqfERC7Cd7HlDrxhqZBG5VrWwvypSbIPE6xdD42bcwa5MdbuNlQh yjaS3aSc+O+ewrdX2MnwGftPPEMotwj5G5HupCFd6rJHu16fkiUnf9yMvBfH0ZTBcBxx rTFevoEnPckiunTgBlTXYK7guVPecRIYrUYBKeUWSZZsElR6suWnRv4Ur0BmFabtke5c PmYlO0k6Rhjj/7e/Azqmryda0fKGod/DTf3NkfqoxFOFFCl2/+qg800/2JaCazFY0vxx 4AEdYTbP8bI6qQ74CtJZvjp83vWsrcbTDdge3HWMAHu5IP3heaNI/aw29SGRGnpXA0HP qODg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zxD032hDEg0q3J6hg2UhWFukYFGV+9FMSco53oLWH5Y=; b=UO9JxeQVjQzhUpYlcswMNEgaJq7C21B+yi1XY/zurEpvwh4L0LrDT28VxNPhKYq7j3 PEaAQoDlBKX/BFzVQEvVNE1j0WWf+OyChir+wd2oz/3s9B8ksHVVGaycadvesKXlmxXa jNC6m8oAZr/AhNLi3pNpia/31AUwOGTWriarVFY/2Y58iRkVpEbNbS38ECWwf7AKPSsX vARiAQbUZbIbTB6DJmymsdTfqhHw5YmlhCWQVM55VLNT3URf1E9vugyElpOFj7HA5wG8 lQ9Hx6X5t/YYnZHyT1Doxvk/dQalwxs4+g5Loein43ykOzaRzXv21he8rwL7JG/GZLpg 7GLw== X-Gm-Message-State: APf1xPBX2CFXfVFHuvCOz6BEHti+FIBEBL7/wEsDBvOjs8MZ9gyoHto6 Y6HifYQ+cM1LSQGFHz+Omks= X-Received: by 10.237.36.170 with SMTP id t39mr4995101qtc.136.1519420184831; Fri, 23 Feb 2018 13:09:44 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id m13sm1912561qtf.31.2018.02.23.13.09.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 13:09:43 -0800 (PST) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Doug Berger , Florian Fainelli , Russell King , Brian Norris , Gregory Fong , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE), Vladimir Murzin , Philippe Ombredanne , Greg Kroah-Hartman , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/4] ARM: Allow this header to be included by assembly files Date: Fri, 23 Feb 2018 13:09:20 -0800 Message-Id: <20180223210923.544-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180223210923.544-1-f.fainelli@gmail.com> References: <20180223210923.544-1-f.fainelli@gmail.com> 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 --- 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.14.1