From patchwork Wed Sep 2 14:00:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 7112051 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 337FA9F1D5 for ; Wed, 2 Sep 2015 14:03:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4F0EC20608 for ; Wed, 2 Sep 2015 14:03:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F352203DF for ; Wed, 2 Sep 2015 14:03:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZX8bT-0001k0-GR; Wed, 02 Sep 2015 14:01:31 +0000 Received: from mail-bl2on0095.outbound.protection.outlook.com ([65.55.169.95] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZX8bQ-0001YF-DQ for linux-arm-kernel@lists.infradead.org; Wed, 02 Sep 2015 14:01:28 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Received: from localhost (91.77.150.194) by DM2PR07MB623.namprd07.prod.outlook.com (10.141.177.148) with Microsoft SMTP Server (TLS) id 15.1.256.15; Wed, 2 Sep 2015 14:01:05 +0000 From: Yury Norov To: , , Subject: [PATCH v2 1/2] arm64: cpufeature.h: resolve hidden header dependencies Date: Wed, 2 Sep 2015 17:00:37 +0300 Message-ID: <1441202438-27005-2-git-send-email-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1441202438-27005-1-git-send-email-ynorov@caviumnetworks.com> References: <1441202438-27005-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [91.77.150.194] X-ClientProxiedBy: HE1PR02CA0075.eurprd02.prod.outlook.com (25.163.170.43) To DM2PR07MB623.namprd07.prod.outlook.com (10.141.177.148) X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB623; 2:MFsV5wObFiw+WNsARg2k4sPaD2rcIHPkmqum8/dnxgcpkOS6CrP1ZEFGGDJJN//1GtNZV+SV/uPDlplI/17REU1PunMq271hM8rLXNlsipkRoD7TT43Mrk+jIPRKVfTtYX0a3l3hKSl6KW5B0sTaFKxXiDe5DLWY17dVHXldxf8=; 3:4j6BKOKWFt2sZkBXRZbvKhAB0z9iKwhyvP7OQ744hHYtb3cSuXb4mzr6xQTtEBfOaUNVA7CtmIPFiBHBbdiqVZ5KbfPE//hSsWwsWfi4dZeLg2fLkKTLKJ2fOjA4kE0NW703P/FHASk17T9vaBPCyA==; 25:yvIMnWY9j3DDzW/PlkrxEBzd4ZZlZT/8kjI1rT0embp0ftqNeESvRld6Kyht9GAUnwEEw0jlhYuYcId5M8npNAAU+liNdZaAKmbUV3O8TGPwt+GP8eDwp8ajgIu1Tg2BSN+Lq+ACIgfpypktBh6/2CuaMLzvpXGDYGQ0d1F8OEC6amjKD880gL4WyCmezDHTXju9qej51iGkPG7OQffAanVfOPreECRCaGBkO/lIgZlcZqTFYXySTzJ10jUJ2i4strt0zR2O7uWsH5F4N4fjUg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB623; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB623; 20:mLSXcpLz1ps11SDEvXFZujB9wMHVhs/zI+YR5FL5Me1+9Xyq7uVyV+dYa/KjaVCVCw4ogW4B/jPfDkp+FLkevgMukR+Hkw61d+cBqaDvqHXIrCk4/YYC6jm92oVAB9BkoKYvremECBeLux6s9gVnWMf1ltp12GdzpnEO5MaAz2hkjq7vS2cJIethbTlVcFXdXLO+GR2Frz7pmDZ9KEWFocd+sgP5dYrK4PKvFeyjmxyyrOEteMpsGQukP+kpL1DZi91MMJRlV/DMVX2pHEHegHAxCKdVEbFSsB7O4GiU/DP3bm58vMvzTkSUpDj+kHpcBetOAAYBIix8U+De09RHuvsPKTopot6kifYwnODQlROulHmKStI2ZRajn7cGQR8OcRuvLL15ejr6Dhs3fJk5MTNp5mf3ToDGonXCFcZ64tkipLRBsC1Du4IEQZMRBaW24klvoP2Hq4m5J/xJ9CDBNnzL1Hi95cdvm1wsNYp/3EWsCZGbsLoLke6Enb6yMgZuwqYmI9KgW5mgAc+ntfM9w/55lSZjkmIUzw/Krwv3m7JcW03Bz3Pvo75h1R43sGYEdbynb09MIyvI40HLbnX+S7YSGmClXL90CzOKrn1P5po=; 4:CuaaZXutIT/U87rDygSyvAsQejyyRtUc+Xw6Eaba1d6IDKWDl02aOgMKJ1I6Z/5FDGHxTeIe/a3JcBDLUK3rxo8+PQOTEh2a1VBfVaNVVgdsvUT+0yNMg7mBrfO1ye+MFGr0QL4dT2KhB3kHw/mQXA4Ffcwq+oFfT4RGkdFtGBkUImkuPigm6+hMo1MofCiWUapOpywdu3JpeRdkObYbAAHAekWgF+vsDc9A47iKILkXTrJApzMn9faP1Q60eMkXrjK0jUuzUWpUGpFh74ZdzACKonaObIJLeYTbseKktMfLIiFO8LOe/7NdPJ0QCnTP X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(3002001); SRVR:DM2PR07MB623; BCL:0; PCL:0; RULEID:; SRVR:DM2PR07MB623; X-Forefront-PRVS: 0687389FB0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(199003)(189002)(66066001)(33646002)(5007970100001)(77156002)(50986999)(76176999)(5003940100001)(64706001)(47776003)(5001830100001)(5001860100001)(5004730100002)(575784001)(5001960100002)(81156007)(68736005)(97736004)(36756003)(107886002)(50226001)(19580395003)(229853001)(5001920100001)(76506005)(46102003)(42186005)(92566002)(48376002)(19580405001)(189998001)(122386002)(50466002)(40100003)(2201001)(101416001)(2950100001)(62966003)(106356001)(105586002)(5001770100001)(77096005)(87976001)(4001540100001)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB623; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR07MB623; 23:mK++HcSlunO7r2PCk8f8KgU1RHMAlVD3lUx+wRwh9t?= =?us-ascii?Q?Akx4O95q8iFyOG5WRsXqDgDjUODQhWHzGRPbzVZreKyDs26H0BI3/hjuqp9b?= =?us-ascii?Q?AC4fObvwRcGJSRjZH10ZuOOPxNjy0WXfzuyS9jI5jwZYEUxmPv2ve93Js5gC?= =?us-ascii?Q?VFbjuU9oWoX4+om2YfzA7iMcfPkQwydWTIgaJUXBG3jGVovx+F3zuY5CKADf?= =?us-ascii?Q?GhUA2kXZD/wgInEQwezpVS30/WNVNa2l1gvjSw4mPswZTDNV89TK3h+2iVwv?= =?us-ascii?Q?WetB0PtK4zvtRV2HZXC+7vlt4fGdFY8h9sPvNIKuJg2FxBDHbmD1593uGtNI?= =?us-ascii?Q?S2P1ucs4OQmgTAg080zMrXd275pAvl7SHrDWiD+wL/2nyfV+3mwlKgIvF2hy?= =?us-ascii?Q?Fi1pRKuGKFvRNYQKA4y9g2++uv++nedQ4CLjrIJXplnF9JI6Tey/aDtI6MYI?= =?us-ascii?Q?KBgjl4tnNy+8W0k6jrTj2QNZQ5/DwbtKwnonbMr6AhfRNleLmuBF5MZLHf4C?= =?us-ascii?Q?/GBe7IKJkfbodSYdIT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JsW35KAhZzbFIkR75Fg1IwmjNq+YNN25zuQlujPeF3N+AzUBYQXIrUvCtLUf0sexEuJQ0OVmuZyeUhFZdQ==; 24:PQbITZB94D+DcxvYhRDA47dMAZbXWzCfu+GtzWPj7ykgRjbBw5h0Bw4jC9RCCUMsa+8kkxczgM0fi9VyCYLGaPTbElsruasBtzGFXHmqxX4=; 20:pLqffe3w43kh0p/4M2g6HrJmPCj5qEOJ3kKW1ClvvhVyoYLcClJOFMz0/usUiPQ7cOroRdLZhtDsynCbTIWheQ== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2015 14:01:05.0998 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB623 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150902_070128_646959_5694868C X-CRM114-Status: UNSURE ( 8.48 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yury.norov@gmail.com, ard.biesheuvel@linaro.org, will.deacon@arm.com, linux-kernel@vger.kernel.org, klimov.linux@gmail.com, Yury Norov , ddaney.cavm@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Functions implemented in cpufeature.h depend on some headers, but cpufeature.h does not include them. This may cause build failure if cpufeature.h user does not include that headers by itself. (Like it happens in next patch of this series.) Signed-off-by: Yury Norov Reviewed-by: Mark Rutland --- arch/arm64/include/asm/cpufeature.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h index c104421..f0e4017 100644 --- a/arch/arm64/include/asm/cpufeature.h +++ b/arch/arm64/include/asm/cpufeature.h @@ -19,7 +19,6 @@ */ #define MAX_CPU_FEATURES (8 * sizeof(elf_hwcap)) -#define cpu_feature(x) ilog2(HWCAP_ ## x) #define ARM64_WORKAROUND_CLEAN_CACHE 0 #define ARM64_WORKAROUND_DEVICE_LOAD_ACQUIRE 1 @@ -30,6 +29,14 @@ #ifndef __ASSEMBLY__ +#include +#include +#include +#include +#include + +#define cpu_feature(x) ilog2(HWCAP_ ## x) + struct arm64_cpu_capabilities { const char *desc; u16 capability;