Received: by 10.192.165.156 with SMTP id m28csp1655507imm; Tue, 17 Apr 2018 03:14:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx49RsZKvDZa6xG5QymHzOVBllxN58Ag3GQHok2A+r9VkdBYmbJLlYdkUhnY4x28keeBrZN91 X-Received: by 10.99.100.65 with SMTP id y62mr1300702pgb.362.1523960048269; Tue, 17 Apr 2018 03:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523960048; cv=none; d=google.com; s=arc-20160816; b=W7b1ilDlhwqws5jGNjf8/sHptL32cU+1C/Z9j7EybE8VXRZrvYgCmUBvPzO1Dtk0mG JaD63Dp6JV3nCe8tMxZMeeYwYbiNbfzfhPLrGd0VRmw7ik/qNozRukWxFcEpaGjyPDt2 bYzfuov0KqHZntFM1vj2RD/GiclylDmzppd3APPVnyHtAVoAeT3lFa9nDRNeKBuD6jw0 zHquspEvix2Y/5BRJip4ySQXBR3oTn6Xd72LqF9teb5l1p1MveLRE6hCNDpLiVKdIaN5 6cNFAaN+Wu3rnHFvWrOAOJ90dN6b7RV4H4/2vvcEUxgMTFAZXy5WxsK5ZGn5PcS9ifNB BKcA== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=eknoGVoT7XCPmIljfhVBvaawq4L/Tl6T9r7thob5+Wg=; b=jR6r+F1OzGv9omart8NeN26UkTp/oio85txvMDTtIkXnJlanFl9KxfJg7z0m5tkmH5 VsXwQR5e52fHqss70PaavulDw/Eec4ondl3KKvlLM2fxLazKBu/FdhGuYWEBTszfCB36 nFsrzbyd80WWZkK7anyh05TuPPrp7cFgxEn4AeQdKM294umbfDwlHnrBx9FfKt08/S2o KKKJ8ab85jzRhMFb1RVmfTblilXEuS0eBTui/cte3gKe9cxbWKG/dNbBmEi/u1FMYWec f9FfTCukZ6VN/eKMKVIa55PpLhV0BzvAM5/5f/oQCM/mxQJVOYaO497U6yC+7hkON4Fy 73Og== 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 x4si11392768pgt.575.2018.04.17.03.13.53; Tue, 17 Apr 2018 03:14:08 -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 S1752683AbeDQKLv (ORCPT + 99 others); Tue, 17 Apr 2018 06:11:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:60748 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752417AbeDQKLt (ORCPT ); Tue, 17 Apr 2018 06:11:49 -0400 Received: from localhost.localdomain (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D1E0C21838; Tue, 17 Apr 2018 10:11:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D1E0C21838 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jhogan@kernel.org From: James Hogan To: linux-mips@linux-mips.org, Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , linux-alpha@vger.kernel.org Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, James Hogan Subject: [PATCH v3 1/3] alpha: Use OPTIMIZE_INLINING instead of asm/compiler.h Date: Tue, 17 Apr 2018 11:11:04 +0100 Message-Id: X-Mailer: git-send-email 2.13.6 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: linux-alpha@vger.kernel.org --- Changes in v3 (James): - 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 b2022885ced8..b296ba9bd8b7 100644 --- a/arch/alpha/Kconfig +++ b/arch/alpha/Kconfig @@ -81,6 +81,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 */ -- git-series 0.9.1