From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 14 May 2018 08:15:41 +0200 (CEST) Received: from mail.kernel.org ([198.145.29.99]:37418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23990395AbeENGPScGDbO (ORCPT ); Mon, 14 May 2018 08:15:18 +0200 Received: from localhost.localdomain (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9809421839; Fri, 11 May 2018 21:47:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526075243; bh=dgRO40TCs5ZjoBH3Eljimxd7L5mVs61IIRNdJvbU0zU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=RfawhXXwN/Q/GtL7Dn3kMzebFiVXBdZGQm2zRCwBHPY282YalHr48TdrLxQxSMlK/ kxLgk71XiZv2RbPffqKLgKVbBmbywWGb3mNoM3Xf7Ib3XHHINGSa51pRnzpx2TYD4H wNJ+jZo5bNOW5g/9+R/I2bCsBE1blJ16jmURFHSQ= From: James Hogan To: linux-mips@linux-mips.org, Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , linux-alpha@vger.kernel.org, Jeff Dike , Richard Weinberger , user-mode-linux-devel@lists.sourceforge.net Cc: James Hogan Subject: [PATCH v4 1/4] alpha: Use OPTIMIZE_INLINING instead of asm/compiler.h Date: Fri, 11 May 2018 22:46:59 +0100 Message-Id: X-Mailer: git-send-email 2.17.0 In-Reply-To: References: In-Reply-To: References: Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 63906 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: jhogan@kernel.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips 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 --- 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