From patchwork Thu Aug 9 17:44:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 955738 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mips.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qC+QGhb+"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=wavesemi.onmicrosoft.com header.i=@wavesemi.onmicrosoft.com header.b="rpR3Wa+Q"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41mbK71cJwz9s4c for ; Fri, 10 Aug 2018 03:46:19 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9TLmrrR4n4DuADHx5CbwufyVcvItIn5SgOiLrRjxvEs=; b=qC+QGhb+DZnoKm rVdJXXyRrT7Wy2nwCvA28x6pk04H0/21z7ta3gPqDg4Crxr6mwJYDlpX2LSoWzW5CDD4t47364yl0 YtkNCmNG6ru3gdLszlmAQLXn6skmvmiRxxFFPM7Pz0rlJRipE184G9P4E4E9hKJR5nFo50IyCeS71 nV2NTbBYPfHfegV768cQJvzkLTqEXWPvC6UMusCzXqi8Tbe0Wvpl3hYr03OWs5IXhRUOkdxE2CZFE jwX34BuMwjC2BNfQQuno7zofcvsEg8U15QPcdMYu1DdsJ23VTFVHspqgBZa7kQnA4mhKuiqplrSDg RjDAv7iWJDkuXladWEHg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnp0X-0006uG-Ro; Thu, 09 Aug 2018 17:45:57 +0000 Received: from mail-eopbgr730101.outbound.protection.outlook.com ([40.107.73.101] helo=NAM05-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnp0V-0006rt-RE for linux-um@lists.infradead.org; Thu, 09 Aug 2018 17:45:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yR1wJo1OXRpqHGq42ayG+uQFibEp9AG9Jf6KY+WnG8U=; b=rpR3Wa+QPTB+N7/Swoba+9MZ6+HInbfnBt3WfgaAFCxxJ16vk+6MdWMu5QxS87cFSzIQ4bsYBAU2mWf+dR+hQggiOQvQJ+hiZWEq/DKXOoaWyDBVaTXo99D8ZgwK3USUfuCWYD2mzY6KVWTnlHaUGt6OkvjUOZX4bn52AwlV95Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; Received: from pburton-laptop.mipstec.com (4.16.204.77) by BN7PR08MB4929.namprd08.prod.outlook.com (2603:10b6:408:28::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.21; Thu, 9 Aug 2018 17:45:37 +0000 From: Paul Burton To: linux-mips@linux-mips.org Subject: [PATCH v6 1/4] alpha: Use OPTIMIZE_INLINING instead of asm/compiler.h Date: Thu, 9 Aug 2018 10:44:41 -0700 Message-Id: <20180809174444.31705-2-paul.burton@mips.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180809174444.31705-1-paul.burton@mips.com> References: <20180809174444.31705-1-paul.burton@mips.com> MIME-Version: 1.0 X-Originating-IP: [4.16.204.77] X-ClientProxiedBy: BN6PR2001CA0025.namprd20.prod.outlook.com (2603:10b6:405:16::11) To BN7PR08MB4929.namprd08.prod.outlook.com (2603:10b6:408:28::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ad5afe6f-7bb5-4e17-eab4-08d5fe1feb01 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BN7PR08MB4929; X-Microsoft-Exchange-Diagnostics: 1; BN7PR08MB4929; 3:QSm8g2R6U0wLy2kTXZzplhO7vh6gnl9q/BIg4WOTPHR81kRwYwE2xvLTJW70BcEm+d7SYTUA2bNyYLDST3lyF+tteuCCVZUk/EFuIy/gsOklWqKp9XLn9rPGUD86bJs45PxfNdxI/OZCwLIQRo8hQCC9Fzz9PbuponS+iRUGGaMhxax/Gq5EwS3bDD32UIe6jlUsNGTJvhK9j60UtRCiNQZ9YzEMQ/GZmJT1NpGcQj1525XFSkAQTA2zL3+9YKVR; 25:fM/7/laJoyVcujMtqo3b32w1zhJJBkvoM/nYmF/67yseE6jRUq9JKaWi9nFYNolkxHXk3BORsArv23Yg/9wasKeLXyYGbpa4uz180+AcB/ejBDS9eSIwzRasHrzYIRZUss5dWqBdC2trU0xgMhbE2aseekoA/Vp5sEapx2IdE5266XWGJzxApeExYIgIP7jOJx8YfMAHiUeiHQjKFaq0YFJPNbzaipepy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ispam-Report-Test: UriScan:(9452136761055)(85827821059158); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(3002001)(3231311)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:BN7PR08MB4929; BCL:0; PCL:0; RULEID:; SRVR:BN7PR08MB4929; X-Forefront-PRVS: 0759F7A50A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(346002)(136003)(376002)(39850400004)(396003)(366004)(199004)(189003)(47776003)(2351001)(7736002)(81166006)(81156014)(6116002)(3846002)(186003)(16526019)(6506007)(386003)(107886003)(5660300001)(39060400002)(25786009)(1076002)(26005)(8676002)(4477795004)(6666003)(53936002)(478600001)(6512007)(105586002)(106356001)(2361001)(66066001)(53416004)(6486002)(305945005)(6916009)(4326008)(11346002)(50226002)(8936002)(69596002)(476003)(486006)(97736004)(316002)(68736007)(51416003)(52116002)(44832011)(76176011)(16586007)(42882007)(54906003)(50466002)(446003)(2906002)(7416002)(48376002)(956004)(2616005)(36756003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN7PR08MB4929; H:pburton-laptop.mipstec.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN7PR08MB4929; 23:liFguk4igToeHImocoOX0kZZhJir+BTSUeBCk7qXn?= 2rmTCycjtO1tvcm8/NOF9xCnQL6bjKmmv8ib4AtM0x+5SnuIZOUUC+JD2XNgLfs7P2F9SQaZyy5qj9+1Mn6B3vDF/txKmKRK6kSH+UCJCVBf2+njgfV9zW1L7rYeSvVoA9ryhE4AOW3E/Wa3JEgZiFc7LuMES98JVpreMU772a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vTAU0b/OlL6SYYASbyHjxvM/xPxpQJ+1ITbxaUeCpFSaWAgWxdzE1M+iMD80Rk9Ij+bnwVy39ZbBcOOoyeR8XlJyfU8H5gi3MtOdDJbeeIV548DyN/ydt1HszsBQ=; 7:CMrdhoFrnLd/0mcl95MShBqYOcsTajzPkSw4NyMeM3lfrQCVzvQt4paTN4pPs9rFTVlGm5Ywnu0dK0oGcKG1kbckXrTTFfa8yC0MtVl+gL7zoyZj0+UknuTfFX1+wPtQmdukid+NCoMtRzifVdlGbcYtUW0HzBC9e6kB8/mO8ERuxBR6+FadVtz2bQTB+Gm38XfaVFcDljMny5iNXXfs5WfkwaMC7Y00+CzucTqc/0CWHaBEaDZ3Pq+C16DxMjff SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2018 17:45:37.1557 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ad5afe6f-7bb5-4e17-eab4-08d5fe1feb01 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR08MB4929 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180809_104555_882476_16DD0462 X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [40.107.73.101 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 T_DKIMWL_WL_MED DKIMwl.org - Whitelisted Medium sender X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net, Arnd Bergmann , Richard Weinberger , Jeff Dike , linux-alpha@vger.kernel.org, linux-um@lists.infradead.org, Ralf Baechle , Paul Burton , Ivan Kokshaysky , James Hogan , Matt Turner , Richard Henderson Sender: "linux-um" Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: James Hogan Use CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING and CONFIG_OPTIMIZE_INLINING instead of undefining the inline macros in the alpha specific asm/compiler.h. This is to allow asm/compiler.h to become a general header that can be used for overriding linux/compiler*.h. A build of alpha's defconfig on GCC 7.3 before and after this series (i.e. this commit and "compiler.h: Allow arch-specific overrides" which includes asm/compiler.h from linux/compiler_types.h) results in the following size differences, which appear harmless to me: $ ./scripts/bloat-o-meter vmlinux.1 vmlinux.2 add/remove: 1/1 grow/shrink: 3/0 up/down: 264/-348 (-84) Function old new delta cap_bprm_set_creds 1496 1664 +168 cap_issubset - 68 +68 flex_array_put 328 344 +16 cap_capset 488 500 +12 nonroot_raised_pE.constprop 348 - -348 Total: Before=5823709, After=5823625, chg -0.00% Suggested-by: Arnd Bergmann Signed-off-by: James Hogan Acked-by: Matt Turner Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: linux-alpha@vger.kernel.org Signed-off-by: Paul Burton --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - New patch in v3. arch/alpha/Kconfig | 6 ++++++ arch/alpha/include/asm/compiler.h | 11 ----------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/arch/alpha/Kconfig b/arch/alpha/Kconfig index 04a4a138ed13..649b41621520 100644 --- a/arch/alpha/Kconfig +++ b/arch/alpha/Kconfig @@ -74,6 +74,12 @@ config PGTABLE_LEVELS int default 3 +config ARCH_SUPPORTS_OPTIMIZED_INLINING + def_bool y + +config OPTIMIZE_INLINING + def_bool y + source "init/Kconfig" source "kernel/Kconfig.freezer" diff --git a/arch/alpha/include/asm/compiler.h b/arch/alpha/include/asm/compiler.h index 5159ba259d65..ae645959018a 100644 --- a/arch/alpha/include/asm/compiler.h +++ b/arch/alpha/include/asm/compiler.h @@ -4,15 +4,4 @@ #include -/* Some idiots over in thought inline should imply - always_inline. This breaks stuff. We'll include this file whenever - we run into such problems. */ - -#include -#undef inline -#undef __inline__ -#undef __inline -#undef __always_inline -#define __always_inline inline __attribute__((always_inline)) - #endif /* __ALPHA_COMPILER_H */ From patchwork Thu Aug 9 17:44:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 955737 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mips.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="CJJP+vNc"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=wavesemi.onmicrosoft.com header.i=@wavesemi.onmicrosoft.com header.b="okzHI/yV"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41mbK65PHfz9ryt for ; Fri, 10 Aug 2018 03:46:18 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sWxeRoofG1UgXwEJzA77FFCEgpOKJNnGIByvecacxjk=; b=CJJP+vNc2h+1yl tvtxPi/nDZf7KvMhPf1Nm5dqU29jHZ+T/LTocDb5NGlU6/lMTObErHxWi6lKg6WJG7C5AsMShl/yh iMxf83uHQeHA0ThNvCvTLXIGvcJO8z9UAPKUpfKZqkJQdUnqLtmgUL2QEhBddyKd1TOJRzKw4UPYn +VliMLQSFF10V1S/qnbYtTH4JR9G5X1xwsytEj4Jo881Qfxn9ajsSnGO7fNFMJGBHWQfIAWs8a1td Kcqvq1HCsFWPEaaukvuQX6BHwpAyK3hbI4W6359vBwPYE89QEUQuzhxhv8TFTlCAqirWDP1I54RmM XSdE6wJmp82ykUyU67wQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnp0Z-0006ux-WF; Thu, 09 Aug 2018 17:46:00 +0000 Received: from mail-eopbgr730101.outbound.protection.outlook.com ([40.107.73.101] helo=NAM05-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnp0X-0006rt-Dk for linux-um@lists.infradead.org; Thu, 09 Aug 2018 17:45:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PZvGZqVhafGThUeBzNSeyouglMHIAbzbWO3mjYsJFU0=; b=okzHI/yVlo3EUCeg/gfKnCo/4uX3oTYLcu+3HqAWX1MMzpyhFocJ7SQjQiue31ovxl6rAketGsTKsCZxyUslsKkAadZ8HgiyUfhlKDsOAsyj4fkJMZk5c3g+WmnSqVyBN6qACX2KloSanTBJnx6Kipx1E2Gx4FkWr4YdWLvT+sA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; Received: from pburton-laptop.mipstec.com (4.16.204.77) by BN7PR08MB4929.namprd08.prod.outlook.com (2603:10b6:408:28::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.21; Thu, 9 Aug 2018 17:45:38 +0000 From: Paul Burton To: linux-mips@linux-mips.org Subject: [PATCH v6 2/4] um: Add generated/ to MODE_INCLUDE Date: Thu, 9 Aug 2018 10:44:42 -0700 Message-Id: <20180809174444.31705-3-paul.burton@mips.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180809174444.31705-1-paul.burton@mips.com> References: <20180809174444.31705-1-paul.burton@mips.com> MIME-Version: 1.0 X-Originating-IP: [4.16.204.77] X-ClientProxiedBy: BN6PR2001CA0025.namprd20.prod.outlook.com (2603:10b6:405:16::11) To BN7PR08MB4929.namprd08.prod.outlook.com (2603:10b6:408:28::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fa78020e-67ea-4d77-f5cb-08d5fe1fec05 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BN7PR08MB4929; X-Microsoft-Exchange-Diagnostics: 1; BN7PR08MB4929; 3:MrQd2QYDF/YvBdrffGksBKglh+mxoSza+BvWyW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fotOuu2W/+cvKeORZcxxuCV6xRPrEq+luLKTjpZ0Eq+Ilj5IppUZL; 4:UN4iY3O6yjmwDD+HiW4+Oj2KR7WwkvSk1+Il+9oyHuQ1K+s8hMR4eU0PdMfk+VWtoRF3AFRgjhUOmU0ShYaPnF6MK+n+m1pbf52Q/+8sJbc2aUZdnDUUYC0m0Z9dQ7XKn7WAyeyRCs5FCmH7YZANN0o4sgxhuhztRlm56JIdRXIRmNEnwcPEqro7OhG5QyeuFYDh6z585PTdt22pHtBOD2Oml0vRK8my2ty33RnsIexYpToNrSWF73y4TgFgEPY0CNsN+GF1efAO+DlaL2Ig9eVyIknPAQO7pKP6Hq68iZ0q+f1JaJ34iGPnsbTxBj9dSh2Rt1LTTmczQInu7sYI1MLOSL2qBGRyfxe348sJFEBUd473pL7nV4xocH/O6q/8Uzq3dzxnvmbTcR+z5kg017Ys+Pbkfih2b4feq6ZlW9g= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(143289334528602)(258649278758335)(42262312472803)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(3002001)(3231311)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:BN7PR08MB4929; BCL:0; PCL:0; RULEID:; SRVR:BN7PR08MB4929; X-Forefront-PRVS: 0759F7A50A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(346002)(136003)(376002)(39850400004)(396003)(366004)(199004)(189003)(47776003)(2351001)(7736002)(81166006)(81156014)(6116002)(3846002)(186003)(16526019)(6506007)(386003)(107886003)(5660300001)(39060400002)(25786009)(1076002)(26005)(8676002)(6666003)(53936002)(478600001)(6512007)(105586002)(106356001)(2361001)(66066001)(53416004)(6486002)(305945005)(6916009)(4326008)(11346002)(50226002)(8936002)(69596002)(476003)(486006)(97736004)(316002)(68736007)(51416003)(52116002)(44832011)(76176011)(16586007)(42882007)(54906003)(50466002)(446003)(2906002)(7416002)(48376002)(956004)(2616005)(36756003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN7PR08MB4929; H:pburton-laptop.mipstec.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN7PR08MB4929; 23:4Q08ESR9dh04r4i8pgUp/m0fLShM2wpZ3qWI3Dile?= +ghgv85bhnuRZ7cdEjnouU47Muut/TXbMdfY/HJxgBagiknfs4Bw58JoxNXpK68dQLziW1S0/ZQS9LeMr4rAHGWWh1g/MEj6IHe6srfdSD2p+F4JGpxq4P2Mhh0Ddrj9X8rjCPmTYoIIBsrSnvg3sgSBV6vNVZKRyGKtwTVGBGqOmGt4ExZ92uG4c188ndeypfv2Y/ts6SycvsEtpk/UkDQSygVtdf1pUpIIIi9RPoxMQXs/0Y42f8JIZGGEoRTdC+uq0wERBS9vEE6aiWMzaY1UkZvEA1aiQqIhJRgHl5BPrK4wqxbJ4+/khVv2kptF/pc2lmA12ybYhKhVwaup9e2h/cdkTg2E/xEIZkANOxhwqqDNrTc3bHrhSQyzmPIbHBPzx9rxUhTyazxvwEYuNG4AU/ntKpMWIBJXBdRP2+imhRlIsAhghKmjxgud/5T1DMTBv8Ve9y5VbgAkvWjYRbiYhOMcX+jyjYDdluMP8JHy4HDeaiFRtDbWMlb2w3hfhdxfsDCGWNWjEJHc7LP7XTqv7fRKzoypRfO7JUJA4vVkF6ViFSFapOazN+iJmXeyFgbeKfAlXiAQoaqjgTA+uXQ3tqPNJbGpbPn+8zNhFDRK+ujRR3FOj7b/3hfG+gsVk9v/BjC2hEIERg5TV3wn399UNZIgQy6EeXAx7QjOph6H8ZgG9BGXg2rPb5cgHL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NQrA1+oGMsKRaILNR7poVyoSjxtNMMFFIb28gQCg4P+zUdMG5b77q0j46C2/lHDnE0t2lqN8eh8BySbfXplP4eTlMqYvHTtKgf/WNeESGqe1A87fS3T0/QjtfnE4YCNa6tALPITlI7DoKmByfCXa5vyZVFqjyCXkjacwAPC24OFzJkxCezXDyib21f2O1LOzHQTUhWu2nXnxSDMqY4DUd07sXjG0GDpxHWh3HUaZsixKHLV67FdJJkGPdOh33TagHFryosDozfte/o0fDbYVHQrUgfFbDartPGiShN4w7eEZGaJ++5VyKz6rZhDzMVNY1TXMI5g6kQavHbjoQo01dmec16OS0GTbwYVzRGOBXtS1XUVDa97BpNoebsZvJujnoqIotwh/WcwuiUdX/sDy8X9P81Xcq+gYl5sUdTGWh1azNghosW5+ZBvPVG3M+gF2g0qFV/iTvnfmg==; 5:rbDqjDDHDpkLWkMJU0gw2nP3WFHamClA9dsUu9bIk89/ORcGbh2UxAoSuznGIwhJFzYFf0kkN/ArcBDlC39vIGQYzWFKKlLcCLa7LANljI/XCPKZIPGlD4+tx02XUM2FQgwCs4DBiEjoidUK5VCAc6PF3VW22myEZ/HN82wsIJk=; 7:XGt0k05qdal+oQJKmG3rIxhOFjuiNVynLUiICBmEH+mWiA/AVxc6od9Ov8qJjgRa4QZkoDhJ6VRXB5tm6zZtohRK+kubSWj5h/ucMKku25pmhGltOr/UiOUbXo/kDLCJnyCNDz1URI4wTdESzfn7uIyjuXtaazTS+WSshxxHVXAMoOqXkkLkbBOEAu0BfoFbYQMlbIb/ylMMcqMcMpdE6spTX5zfwf0ZemFUOOlMdXYB0H7ELu2r/zJX0KUWNq8+ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2018 17:45:38.8840 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fa78020e-67ea-4d77-f5cb-08d5fe1fec05 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR08MB4929 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180809_104557_466117_17B4B1CE X-CRM114-Status: UNSURE ( 8.48 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [40.107.73.101 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 T_DKIMWL_WL_MED DKIMwl.org - Whitelisted Medium sender X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net, Arnd Bergmann , Richard Weinberger , Jeff Dike , linux-alpha@vger.kernel.org, linux-um@lists.infradead.org, Ralf Baechle , Paul Burton , Ivan Kokshaysky , James Hogan , Matt Turner , Richard Henderson Sender: "linux-um" Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: James Hogan Add the um specific generated includes directory to MODE_INCLUDE so that asm/compiler.h can be used for overriding linux/compiler*.h which is included automatically, with um using a generated asm-generic wrapper at arch/um/include/generated/asm/compiler.h. Reported-by: kbuild test robot Signed-off-by: James Hogan Cc: Jeff Dike Cc: Richard Weinberger Cc: user-mode-linux-devel@lists.sourceforge.net Cc: linux-um@lists.infradead.org Signed-off-by: Paul Burton --- Changes in v6: - s/srctree/objtree/ to fix build issues when building out of tree. Changes in v5: None Changes in v4: - New patch in v4. arch/um/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/Makefile b/arch/um/Makefile index e54dda8a0363..fec1252160db 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile @@ -30,6 +30,7 @@ core-y += $(ARCH_DIR)/kernel/ \ $(ARCH_DIR)/os-$(OS)/ MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas +MODE_INCLUDE += -I$(objtree)/$(ARCH_DIR)/include/generated HEADER_ARCH := $(SUBARCH) From patchwork Thu Aug 9 17:44:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Burton X-Patchwork-Id: 955740 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mips.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hKHgpx5i"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=wavesemi.onmicrosoft.com header.i=@wavesemi.onmicrosoft.com header.b="M1QQvIEW"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41mbK71GdPz9s4Z for ; Fri, 10 Aug 2018 03:46:19 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PiUpIccKZIOYA2t/JauNIAzt5GkZKOuSqC/RD5X7h50=; b=hKHgpx5icSGo5M uokcWHETlVKGYE/XNs/06QUHJl4wy+87YZt2b4hXXCW15szjcepWtDrnWKOh5lgVnYrQ+TDItWfKo BCJm0RLfLcg2kvl28IQERf10Y6T1spowFCOtQYODYSODOjqpDCT3TpJsJBO+eBXEHpkvpzq2jMK1b ToWsKdc2lz88ZTtgYFF9Q4eb2SgHxu2sl70zJO6O+KC018T7J1iN9QT7cSBAeeYZQNfDM8sVoVXFp FIx6UtcuW+l2Yge25IegxrVM14wF03x75FiXLhEEALSeqGYeeHpKQjsT0NwN1RQOXGRzVwczZjBzw Y1D3xm33HsYb+jGKhb3Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnp0c-0006vl-54; Thu, 09 Aug 2018 17:46:02 +0000 Received: from mail-eopbgr730101.outbound.protection.outlook.com ([40.107.73.101] helo=NAM05-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnp0Z-0006rt-0z for linux-um@lists.infradead.org; Thu, 09 Aug 2018 17:46:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavesemi.onmicrosoft.com; s=selector1-wavecomp-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jhUrVtxFnygwKOAYuv7mEQXIO1h3rVNJgDp8Mc0COSk=; b=M1QQvIEWdRe7fRH8QlkFI01pklhFPAUrDK8xySO4G+TpRRIjfVaCshZKv1KujFQx6L9c15Z7nxKH//Y457IfCD3Kce051xqc6wfnYmxl7qbDC8vdg8kBXDXXqtag57KCecA2C8Izw4Tymmp2DF3jMLNRDIfAcb4lyh7IiwaWH/0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pburton@wavecomp.com; Received: from pburton-laptop.mipstec.com (4.16.204.77) by BN7PR08MB4929.namprd08.prod.outlook.com (2603:10b6:408:28::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.21; Thu, 9 Aug 2018 17:45:40 +0000 From: Paul Burton To: linux-mips@linux-mips.org Subject: [PATCH v6 3/4] compiler.h: Allow arch-specific overrides Date: Thu, 9 Aug 2018 10:44:43 -0700 Message-Id: <20180809174444.31705-4-paul.burton@mips.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180809174444.31705-1-paul.burton@mips.com> References: <20180809174444.31705-1-paul.burton@mips.com> MIME-Version: 1.0 X-Originating-IP: [4.16.204.77] X-ClientProxiedBy: BN6PR2001CA0025.namprd20.prod.outlook.com (2603:10b6:405:16::11) To BN7PR08MB4929.namprd08.prod.outlook.com (2603:10b6:408:28::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a4eafe5c-0a62-4478-380f-08d5fe1fed16 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BN7PR08MB4929; X-Microsoft-Exchange-Diagnostics: 1; BN7PR08MB4929; 3:wvYvlZ7dnMRkf6m1X1+nWvxHtEI0DDfEBb4ESCfQ/dMET0csgD9KzhF7Qk/yWzh409XyXk5WBdJICgMLChawvMP55itdmanD0flrC91buQET+cqI4FJ4PiWPiJwPUCH2tIx33uA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V7ObuEDrG/SyCxqkl+DykP1EwyuuiKEz8bw8z5mQboptjAAJ3SQLCDUrJ9jnupaSCZKdJWynQ4SB6bkTkmuqV7uK/sXYJxwCi+w1y9rSGzdYBVt9OHbV87bnQ7LPVjermbGN9mVsuavNVbMaU8deDcNUjpspyX/Q1ywI6aKuymesMezdxTsrWk/vOSVzundRUsGhIY6ylxBSm7124P7EclJ2b6pJU7NiC3Gk2kbbpZeHe8vYHUdqTs+9PEc5gV9zl61UvcUmW2EDLf3Htx7lgeWe9fZfXDcNDJD+RRsVsxRjRfyWl+jlwqChVa5mg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(258649278758335); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(3002001)(3231311)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:BN7PR08MB4929; BCL:0; PCL:0; RULEID:; SRVR:BN7PR08MB4929; X-Forefront-PRVS: 0759F7A50A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(346002)(136003)(376002)(39850400004)(396003)(366004)(199004)(189003)(47776003)(2351001)(7736002)(81166006)(81156014)(6116002)(3846002)(186003)(16526019)(6506007)(386003)(107886003)(5660300001)(39060400002)(25786009)(1076002)(26005)(8676002)(53936002)(478600001)(6512007)(105586002)(106356001)(2361001)(66066001)(53416004)(6486002)(305945005)(6916009)(4326008)(11346002)(50226002)(8936002)(69596002)(476003)(486006)(97736004)(316002)(68736007)(51416003)(52116002)(44832011)(76176011)(16586007)(42882007)(54906003)(50466002)(446003)(575784001)(2906002)(7416002)(48376002)(956004)(2616005)(36756003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN7PR08MB4929; H:pburton-laptop.mipstec.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN7PR08MB4929; 23:/oozIoD3wYV9qNQIoyrs06R5PBRzh4H7+bZbkZh8a?= uK+6GEiclcmQMVkQv6WEDF/n8GjAP8pnkJYWidAZZKrCr8wExxospdgTmGM2gg1QrMBzvoAVZoSL3EgqT27g33D1FIGRhQECTvqAfDxZD9L+Ul34/YY0sQcnvb/arlu4Yhd9qXMnsP//Y/5b/U0VwhndihBt/U9lK4zkifAqALRo17TC+gAOfgRRnuOjoqagIhV3U+47OAG9MFofN1oAwQHP9phd+EieIRfstODlSU0kFYaIU5iJPenHLNbg2Q0r8vuGbzC+XrKnzqFoyoOMqZgq9H6UyByYXXcFs1Rt0APgZQ1hsJyimq/zwpPCuJaEfSx88QNncS9Gkzis/jGtVEDLlXxkAoxqxxQ9nb6ANg+xYkgE/fyiHM8Apc7Vh4GsRePE+qjV87PBcQXe+Vmdl96qnfGASjvfsWNt4Hgow4Z5s4QQAy/VE5a3Y8jCOpjVflBDKDSj9Jp36CXqk3kPP0w1WL/D/9vGoTJXUBwd9hY4kH1/8Y2iOhz1wnPcDZnN/hQmxXwi5dlaioqsH3bylrqUNLUDxC6nPxtRKT8cAaEb7wGvacgi/XMrwVsRlvaZ2d4iurmoO69VQrZfSsgdeCqP0Unq4NMI2MGURkWiOzmoCM8aHeBHXF2tQ6Zkl8my4wp+yDb6R63+H7slNeUAneJeIACeUOVu6QzphlKbjATNyRbidZr1/UpZb5qhrJX9Et0j978yreMz7B2zZj+quWs6wqLCR+x/5saAK+zVqQdIiuNTvz7/MJDz2T3m386U0MYRJSG4V9NgNpOMO7w5qWvA6FVSmLEbtFVgRIvqlzX1Ds7ViO93yt4CcKfnE5Cw10JaaKd7uH4HwWj6OsIvR85uwQtTJdnhSgS2rQ5YHgsrge+x4M6Q1MORAdzdJoxqUUb3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0eZ/NNzjSYunMRMY1serTHOZ94Ho98dBTSSlPu+otY+CAVD2Kuy9ByUjANLldY0ZqTplzsRPd7zQJrrXeSHtJF2R5BhNc4baY1q0r2vxZgrvQGF7+z0DnV3zPdHUl/taOm66xPJVAZXFoCPmkkpxBchWqJhzeK0mEDDfdTD59NWcNrwo5Y996WyRnMFXkiQor0Wm98auP1xUEfWscj8PRflEPXJtzIu+MU/8LhzkLby/NaT3VfhOI919BnE5uFmw==; 5:cPwqtwj3Tgz+44FBdD3aSoFrskFQa4yj+s8jGLmnvkFNN5vdxIeCOpE9MzsQHtIrWWYHZqmRygbaB0dI1EINhv1crugQElpvFrCkAqe9Bq+jo0iDBi2hItnoqNVacoXFgLHcFZkuPDmMXapFkRg3JhqADn90rvsXKAnEc3o/N38=; 7:SmvTkJFU2u77nG9a8aYoT0/loMHmZovQ4kjOwWy2Xe53T0+kOFV0VvFyvyf7FAD8NnhMuDiLzOI32PCtb8NsKuWmxWhbu02g4FfNgAfO43syoOwN9S82bYSjugHSD1f5RstrRaA0r7IVVRFVl0u3FKnPnxAyTSQ8XSKdsfc8OOqlavHf8ehiy6DFWwDNWr2/u6nBXxFm8SsbeqdDCZiTUPcou1/aco5TO0e6nxEu4ZWDqQxo1MYyIZ2hDSRkABrj SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: mips.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2018 17:45:40.6682 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a4eafe5c-0a62-4478-380f-08d5fe1fed16 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 463607d3-1db3-40a0-8a29-970c56230104 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR08MB4929 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180809_104559_075178_E5A4EC30 X-CRM114-Status: GOOD ( 10.74 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [40.107.73.101 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 T_DKIMWL_WL_MED DKIMwl.org - Whitelisted Medium sender X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net, Arnd Bergmann , Richard Weinberger , Jeff Dike , linux-alpha@vger.kernel.org, linux-um@lists.infradead.org, Ralf Baechle , Paul Burton , Ivan Kokshaysky , James Hogan , Matt Turner , Richard Henderson Sender: "linux-um" Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Include an arch-specific asm/compiler.h and allow for it to define a custom version of barrier_before_unreachable(), which is needed to workaround several issues on the MIPS architecture. This patch includes an effectively empty asm-generic implementation of asm/compiler.h for all architectures except alpha, arm, arm64, and mips (which already have an asm/compiler.h) and leaves the architecture specifics to a further patch. Signed-off-by: Paul Burton [jhogan@kernel.org: Forward port and use asm/compiler.h instead of asm/compiler-gcc.h] Signed-off-by: James Hogan Reviewed-by: Paul Burton Cc: Arnd Bergmann Cc: Ralf Baechle Cc: linux-arch@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: linux-um@lists.infradead.org Reviewed-by: Arnd Bergmann --- Changes in v6: None Changes in v5: - Rebase atop v4.18-rc8. - Add SPDX-License-Identifier to asm-generic/compiler.h. Changes in v4: - Fix asm-generic/compiler.h include from check, compiler_types.h is included on the command line so linux/compiler.h may not be included (kbuild test robot). Changes in v3: - Rebase after 4.17 arch removal. - Use asm/compiler.h instead of compiler-gcc.h (Arnd). - Drop stable tag for now. Changes in v2: - Add generic-y entries to arch Kbuild files. Oops! arch/arc/include/asm/Kbuild | 1 + arch/c6x/include/asm/Kbuild | 1 + arch/h8300/include/asm/Kbuild | 1 + arch/hexagon/include/asm/Kbuild | 1 + arch/ia64/include/asm/Kbuild | 1 + arch/m68k/include/asm/Kbuild | 1 + arch/microblaze/include/asm/Kbuild | 1 + arch/nds32/include/asm/Kbuild | 1 + arch/nios2/include/asm/Kbuild | 1 + arch/openrisc/include/asm/Kbuild | 1 + arch/parisc/include/asm/Kbuild | 1 + arch/powerpc/include/asm/Kbuild | 1 + arch/riscv/include/asm/Kbuild | 1 + arch/s390/include/asm/Kbuild | 1 + arch/sh/include/asm/Kbuild | 1 + arch/sparc/include/asm/Kbuild | 1 + arch/um/include/asm/Kbuild | 1 + arch/unicore32/include/asm/Kbuild | 1 + arch/x86/include/asm/Kbuild | 1 + arch/xtensa/include/asm/Kbuild | 1 + include/asm-generic/compiler.h | 10 ++++++++++ include/linux/compiler-gcc.h | 2 ++ include/linux/compiler_types.h | 3 +++ 23 files changed, 35 insertions(+) create mode 100644 include/asm-generic/compiler.h diff --git a/arch/arc/include/asm/Kbuild b/arch/arc/include/asm/Kbuild index feed50ce89fa..55c955621deb 100644 --- a/arch/arc/include/asm/Kbuild +++ b/arch/arc/include/asm/Kbuild @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 generic-y += bugs.h generic-y += compat.h +generic-y += compiler.h generic-y += device.h generic-y += div64.h generic-y += dma-mapping.h diff --git a/arch/c6x/include/asm/Kbuild b/arch/c6x/include/asm/Kbuild index 33a2c94fed0d..0bbdfe6481fd 100644 --- a/arch/c6x/include/asm/Kbuild +++ b/arch/c6x/include/asm/Kbuild @@ -2,6 +2,7 @@ generic-y += atomic.h generic-y += barrier.h generic-y += bugs.h generic-y += compat.h +generic-y += compiler.h generic-y += current.h generic-y += device.h generic-y += div64.h diff --git a/arch/h8300/include/asm/Kbuild b/arch/h8300/include/asm/Kbuild index a5d0b2991f47..09c6d8cac8be 100644 --- a/arch/h8300/include/asm/Kbuild +++ b/arch/h8300/include/asm/Kbuild @@ -4,6 +4,7 @@ generic-y += bugs.h generic-y += cacheflush.h generic-y += checksum.h generic-y += compat.h +generic-y += compiler.h generic-y += current.h generic-y += delay.h generic-y += device.h diff --git a/arch/hexagon/include/asm/Kbuild b/arch/hexagon/include/asm/Kbuild index dd2fd9c0d292..ef5f1ca92d64 100644 --- a/arch/hexagon/include/asm/Kbuild +++ b/arch/hexagon/include/asm/Kbuild @@ -3,6 +3,7 @@ generic-y += barrier.h generic-y += bug.h generic-y += bugs.h generic-y += compat.h +generic-y += compiler.h generic-y += current.h generic-y += device.h generic-y += div64.h diff --git a/arch/ia64/include/asm/Kbuild b/arch/ia64/include/asm/Kbuild index 557bbc8ba9f5..5c5a5721fe89 100644 --- a/arch/ia64/include/asm/Kbuild +++ b/arch/ia64/include/asm/Kbuild @@ -1,4 +1,5 @@ generic-y += compat.h +generic-y += compiler.h generic-y += exec.h generic-y += irq_work.h generic-y += mcs_spinlock.h diff --git a/arch/m68k/include/asm/Kbuild b/arch/m68k/include/asm/Kbuild index 4d8d68c4e3dd..e920ada07719 100644 --- a/arch/m68k/include/asm/Kbuild +++ b/arch/m68k/include/asm/Kbuild @@ -1,5 +1,6 @@ generic-y += barrier.h generic-y += compat.h +generic-y += compiler.h generic-y += device.h generic-y += emergency-restart.h generic-y += exec.h diff --git a/arch/microblaze/include/asm/Kbuild b/arch/microblaze/include/asm/Kbuild index fe6a6c6e5003..01317fc236e3 100644 --- a/arch/microblaze/include/asm/Kbuild +++ b/arch/microblaze/include/asm/Kbuild @@ -3,6 +3,7 @@ generic-y += bitops.h generic-y += bug.h generic-y += bugs.h generic-y += compat.h +generic-y += compiler.h generic-y += device.h generic-y += div64.h generic-y += emergency-restart.h diff --git a/arch/nds32/include/asm/Kbuild b/arch/nds32/include/asm/Kbuild index dbc4e5422550..a5f2b9058b4c 100644 --- a/arch/nds32/include/asm/Kbuild +++ b/arch/nds32/include/asm/Kbuild @@ -10,6 +10,7 @@ generic-y += clkdev.h generic-y += cmpxchg.h generic-y += cmpxchg-local.h generic-y += compat.h +generic-y += compiler.h generic-y += cputime.h generic-y += device.h generic-y += div64.h diff --git a/arch/nios2/include/asm/Kbuild b/arch/nios2/include/asm/Kbuild index 64ed3d656956..a157f2049d74 100644 --- a/arch/nios2/include/asm/Kbuild +++ b/arch/nios2/include/asm/Kbuild @@ -5,6 +5,7 @@ generic-y += bug.h generic-y += bugs.h generic-y += cmpxchg.h generic-y += compat.h +generic-y += compiler.h generic-y += current.h generic-y += device.h generic-y += div64.h diff --git a/arch/openrisc/include/asm/Kbuild b/arch/openrisc/include/asm/Kbuild index 65964d390b10..54849e38da6f 100644 --- a/arch/openrisc/include/asm/Kbuild +++ b/arch/openrisc/include/asm/Kbuild @@ -3,6 +3,7 @@ generic-y += bug.h generic-y += bugs.h generic-y += checksum.h generic-y += compat.h +generic-y += compiler.h generic-y += current.h generic-y += device.h generic-y += div64.h diff --git a/arch/parisc/include/asm/Kbuild b/arch/parisc/include/asm/Kbuild index 2013d639e735..e458cba4f5ae 100644 --- a/arch/parisc/include/asm/Kbuild +++ b/arch/parisc/include/asm/Kbuild @@ -1,4 +1,5 @@ generic-y += barrier.h +generic-y += compiler.h generic-y += current.h generic-y += device.h generic-y += div64.h diff --git a/arch/powerpc/include/asm/Kbuild b/arch/powerpc/include/asm/Kbuild index 3196d227e351..636a1dae6adc 100644 --- a/arch/powerpc/include/asm/Kbuild +++ b/arch/powerpc/include/asm/Kbuild @@ -1,3 +1,4 @@ +generic-y += compiler.h generic-y += div64.h generic-y += export.h generic-y += irq_regs.h diff --git a/arch/riscv/include/asm/Kbuild b/arch/riscv/include/asm/Kbuild index 576ffdca06ba..f6a7fcd72d37 100644 --- a/arch/riscv/include/asm/Kbuild +++ b/arch/riscv/include/asm/Kbuild @@ -1,6 +1,7 @@ generic-y += bugs.h generic-y += cacheflush.h generic-y += checksum.h +generic-y += compiler.h generic-y += cputime.h generic-y += device.h generic-y += div64.h diff --git a/arch/s390/include/asm/Kbuild b/arch/s390/include/asm/Kbuild index e3239772887a..689993a319d6 100644 --- a/arch/s390/include/asm/Kbuild +++ b/arch/s390/include/asm/Kbuild @@ -6,6 +6,7 @@ generated-y += unistd_nr.h generic-y += asm-offsets.h generic-y += cacheflush.h +generic-y += compiler.h generic-y += device.h generic-y += dma-contiguous.h generic-y += dma-mapping.h diff --git a/arch/sh/include/asm/Kbuild b/arch/sh/include/asm/Kbuild index 46dd82ab2c29..dd49f6b7f036 100644 --- a/arch/sh/include/asm/Kbuild +++ b/arch/sh/include/asm/Kbuild @@ -1,4 +1,5 @@ generic-y += compat.h +generic-y += compiler.h generic-y += current.h generic-y += delay.h generic-y += div64.h diff --git a/arch/sparc/include/asm/Kbuild b/arch/sparc/include/asm/Kbuild index 410b263ef5c8..e944aac9b198 100644 --- a/arch/sparc/include/asm/Kbuild +++ b/arch/sparc/include/asm/Kbuild @@ -1,6 +1,7 @@ # User exported sparc header files +generic-y += compiler.h generic-y += div64.h generic-y += emergency-restart.h generic-y += exec.h diff --git a/arch/um/include/asm/Kbuild b/arch/um/include/asm/Kbuild index b10dde6cb793..14b4f6f09816 100644 --- a/arch/um/include/asm/Kbuild +++ b/arch/um/include/asm/Kbuild @@ -2,6 +2,7 @@ generic-y += barrier.h generic-y += bpf_perf_event.h generic-y += bug.h generic-y += compat.h +generic-y += compiler.h generic-y += current.h generic-y += delay.h generic-y += device.h diff --git a/arch/unicore32/include/asm/Kbuild b/arch/unicore32/include/asm/Kbuild index bfc7abe77905..614a0d99e02e 100644 --- a/arch/unicore32/include/asm/Kbuild +++ b/arch/unicore32/include/asm/Kbuild @@ -1,6 +1,7 @@ generic-y += atomic.h generic-y += bugs.h generic-y += compat.h +generic-y += compiler.h generic-y += current.h generic-y += device.h generic-y += div64.h diff --git a/arch/x86/include/asm/Kbuild b/arch/x86/include/asm/Kbuild index de690c2d2e33..de4246599536 100644 --- a/arch/x86/include/asm/Kbuild +++ b/arch/x86/include/asm/Kbuild @@ -6,6 +6,7 @@ generated-y += unistd_32_ia32.h generated-y += unistd_64_x32.h generated-y += xen-hypercalls.h +generic-y += compiler.h generic-y += dma-contiguous.h generic-y += early_ioremap.h generic-y += mcs_spinlock.h diff --git a/arch/xtensa/include/asm/Kbuild b/arch/xtensa/include/asm/Kbuild index e5e1e61c538c..bf08e8a4fb57 100644 --- a/arch/xtensa/include/asm/Kbuild +++ b/arch/xtensa/include/asm/Kbuild @@ -1,5 +1,6 @@ generic-y += bug.h generic-y += compat.h +generic-y += compiler.h generic-y += device.h generic-y += div64.h generic-y += dma-contiguous.h diff --git a/include/asm-generic/compiler.h b/include/asm-generic/compiler.h new file mode 100644 index 000000000000..0653ff193b40 --- /dev/null +++ b/include/asm-generic/compiler.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef __LINUX_COMPILER_TYPES_H +#error "Please don't include directly, include instead." +#endif + +/* + * We have nothing architecture-specific to do here, simply leave everything to + * the generic linux/compiler.h. + */ diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 573f5a7d42d4..5caf71f15c71 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -233,7 +233,9 @@ * * Adding an empty inline assembly before it works around the problem */ +#ifndef barrier_before_unreachable #define barrier_before_unreachable() asm volatile("") +#endif /* * Mark a position in code as unreachable. This can be used to diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h index a8ba6b04152c..c66b9222fcf0 100644 --- a/include/linux/compiler_types.h +++ b/include/linux/compiler_types.h @@ -54,6 +54,9 @@ extern void __chk_io_ptr(const volatile void __iomem *); #ifdef __KERNEL__ +/* Allow architectures to override some definitions where necessary */ +#include + #ifdef __GNUC__ #include #endif