From patchwork Mon Oct 19 07:56:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yao yuan X-Patchwork-Id: 7433961 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 35C2F9F302 for ; Mon, 19 Oct 2015 08:05:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5CF69205CA for ; Mon, 19 Oct 2015 08:05:42 +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 24649205C4 for ; Mon, 19 Oct 2015 08:05:40 +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 1Zo5Q0-0006vp-RF; Mon, 19 Oct 2015 08:03:44 +0000 Received: from mail-bl2on0146.outbound.protection.outlook.com ([65.55.169.146] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zo5Px-0006rV-Ta for linux-arm-kernel@lists.infradead.org; Mon, 19 Oct 2015 08:03:42 +0000 Received: from CH1PR03CA005.namprd03.prod.outlook.com (10.255.156.150) by DM2PR0301MB1277.namprd03.prod.outlook.com (10.160.221.146) with Microsoft SMTP Server (TLS) id 15.1.300.14; Mon, 19 Oct 2015 08:03:19 +0000 Received: from BL2FFO11FD022.protection.gbl (10.255.156.132) by CH1PR03CA005.outlook.office365.com (10.255.156.150) with Microsoft SMTP Server (TLS) id 15.1.300.14 via Frontend Transport; Mon, 19 Oct 2015 08:03:19 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=freescale.com; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD022.mail.protection.outlook.com (10.173.161.101) with Microsoft SMTP Server (TLS) id 15.1.300.4 via Frontend Transport; Mon, 19 Oct 2015 08:03:18 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t9J83CsY027127; Mon, 19 Oct 2015 01:03:15 -0700 From: Yuan Yao To: , Subject: [PATCH] arm: fix a compile error for pgtable-3level.h Date: Mon, 19 Oct 2015 15:56:48 +0800 Message-ID: <1445241408-11897-1-git-send-email-yao.yuan@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD022; 1:r/aFXNmc1MXqoOL6yKybzq4hJebJJV9ErhasEOkiaJPFKSVPrswDtRItZpY3gKNwSJSukt8JEwX4hG2T2R/mwyXf8GRZo9cDfcW2ZY9vzsbLdR8NhUPEjAE3uR0RM1ijTJreJQERcgQ2CZGg1uXE5Mo2CEsAfNNA1naqEnecG70wFNlH6/9vqJZHvpNNdz0LYG7o0nDn+thmaLBWYSu8Mj9xgpOvqtTwAgPuSDGc8GHWewGYvTvxFvKSN1em8HrqrFvP4RSwRk1hW3n8KdxVxQAWCsY4sseM89xshcnEapoiygYTcvf99iVsJZEOg4IGqegqgZ7G7m6EMUXSuQbP9xNWcGetcBZs52plka6UICZQkvJOGSVpMlSbqd9k9qhr X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(189998001)(5001960100002)(36756003)(229853001)(48376002)(33646002)(50466002)(105606002)(106466001)(46102003)(92566002)(86362001)(50226001)(77096005)(64706001)(47776003)(50986999)(85426001)(5003940100001)(19580395003)(19580405001)(87936001)(11100500001)(104016004)(5001770100001)(6806005)(5008740100001)(81156007)(97736004)(5007970100001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB1277; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1277; 2:w9wwz290YFOSMl67pypQLIH55cbRgoTDe1JhnMJPRX9P29E6Pb4+tU9IIwItJGwnICKf58TmF5EkcuGFNrR8cq49pS7E1Gu4EVHwYweev7wNSu9rax/e2C/XNluw4f32KZPYJ0LHkie9P9w0wowwEkY7TKRm2pGChoyLOCfQtMI=; 3:briGNlcBIoAQv1rIUmrWcOuXMpuPSm0/N2b/fBt+7e3vLjyOIVTYm6lSkPlzJpvrEBM1RsLzSiMW6xuGc93OI17Hkw5VQ1uxYu0UvXgBJClkZbTVCodqP3ECBj8KwdEe2/PGxwQPDDyiHQk90ZRsuZn/9QTGjrqUN5D3WuI4SNh+JUQb5M0de+9dsnX/w2ZFw4/AQKqBl74iQXukbcvxDTDju6hOJkOdijB6Vlzvaeo=; 25:bmjTfeuAMmIq6D7mCtC+GOYpy2psp5mkShrAy4JcHgBzVj0YAcpLUFPss6x7Wv0GGc1lK9WvhKWdtco7Kr0ALBWJ3GktAiDzFuyhcsa+wndr82pPX8aSEjru0kXPePQ86Y9GK1aTXqmE8Cfwbh2OKk1cKyR5SX2s67146G339NStuQDhfQXU/DFLgmcGDbZlebToMFpAJukRUajcvo+0kQrWK9ZACJpJXq1IS+/c2Kcsj1F5CBZu8uxQ7p37pIOB X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1277; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1277; 20:AnOjfhzVUPzOzyq82v9cOnSXYUUVvuCEfebBZhGk9kmfXywwl9KTxbLxzEqtw30zroVtZLRPRLdGfHd7f13intpFZatafSoW/cKcRPpPQDNjxQgRVrSdWZ6xYHkwO8y++Z29bBswBe1CG86vZn5+ansLNmJ/S4TSg8PF30O1tT42fIZKszQPGQUOegSiBWAokFIWMMmJ0Qpr9/zu4rFfIa9Vh63qmtoIA0R6aHol+z2K8oC2Rbidd5t3AmgQCnmwWa5bIHRbnKjpNFQ9toBqWTxkyzlQ3CJpDH9KzEws3xKJtxR7O775OPuS3uZYlh2PZ1BI/tx/827jQb4huMAoaiRqlweEH4VRVUt8oZvUxXw=; 4:Rwfaizeos0AaNpHkrrV26oi1PUjdrk1Zjf9RgNZ6hfDo/Em6WCuU5iGBlz3Up78E37OEfCODbEe+zrzdDA8P/Ip1bnddJ++Aa+Vl0hOwAUaKD9ajr0dxMv7uyge156CDZTE8ngpyi8/TB5SSE63UAcO2mXs9wt9qY/CbJhSQVorqZm/Z9Bj5GMgeLJLS6e2plNi+fWYw6DZVIOyNm6E79XIsA2LJWspbsefBlpagrS5zopPjJVxil0Q6I1ZUlyYq+nHIh7oNO37bilYJBbZFB4ZaKqr2SrIAqNVZlt8vw+zwL/nTAHq7aI/vZE5H+VvXQn3LdzPZVh1efXb3CDfPy3D0XAY9ESNqcMCLfjPSFtU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001); SRVR:DM2PR0301MB1277; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB1277; X-Forefront-PRVS: 07349BFAD2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB1277; 23:GcEhDOOZ631xS+lhyAHnl/kH3nsa59E6oy59gj2?= =?us-ascii?Q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JZw1kDvUemRuay2WPdqd2?= =?us-ascii?Q?2ZIZmoEmQWI9YvijJmrtVCV29n3RXVK5dla3ARVEenlLK+5kuPJEcPnRCvgB?= =?us-ascii?Q?NfscQDzzgFIIRPTG3QrUWIGXL5u+24zzfbLfNKI3cEEBh6g=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1277; 5:U7bfcb6Pnza3CSgCwucBT34D1mI7FNPEaToICPc5iDYa/bh/vQZlgZFlyQznH3/oaFgV3sk1fipgXqvIrgXAhwUEUjJbDT4LbOh70o62L3vgymUjvxqHyR7+lyGaJ5mBQnCc1ETvsasTQkVlnSofMg==; 24:zdsEC4yLM2FZySdWGb7EYrTvTxN+U6e70oi+BCxSovBuf3/6cYdsskWgCfWuT8GU+TbfTs9jVu2wIp3g2/qzRrvhUNwYFF+w5zJ1PNhXN0I=; 20:LSH0kKweHntvcvI6SgwpQGRXZ4ljQ3tMzgPXApuxoGab30Qmv5Yfq/mrH4D3OVfaaiS5mbGPOMAvt0/64ta1KA== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2015 08:03:18.7370 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB1277 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151019_010342_139181_6D2814D5 X-CRM114-Status: GOOD ( 19.54 ) 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: linux-kernel@vger.kernel.org, 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, 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 With the compile error: In file included from ./arch/arm/include/asm/pgtable.h:31:0, from include/linux/mm.h:55, from arch/arm/kernel/asm-offsets.c:15: ./arch/arm/include/asm/pgtable-3level.h:20:0: error: unterminated #ifndef #ifndef _ASM_PGTABLE_3LEVEL_H ^ make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1 make: *** [prepare0] Error 2 The #endif for #ifdef CONFIG_TRANSPARENT_HUGEPAGE is missing. Signed-off-by: Yuan Yao --- arch/arm/include/asm/pgtable-3level.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/pgtable-3level.h b/arch/arm/include/asm/pgtable-3level.h index d42f81f..dc46398 100644 --- a/arch/arm/include/asm/pgtable-3level.h +++ b/arch/arm/include/asm/pgtable-3level.h @@ -231,6 +231,7 @@ static inline pte_t pte_mkspecial(pte_t pte) #ifdef CONFIG_TRANSPARENT_HUGEPAGE #define pmd_trans_huge(pmd) (pmd_val(pmd) && !pmd_table(pmd)) +#endif #define PMD_BIT_FUNC(fn,op) \ static inline pmd_t pmd_##fn(pmd_t pmd) { pmd_val(pmd) op; return pmd; }