From patchwork Fri Aug 11 14:03:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13350926 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 666ECC0015E for ; Fri, 11 Aug 2023 14:03:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234123AbjHKODp (ORCPT ); Fri, 11 Aug 2023 10:03:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234098AbjHKODn (ORCPT ); Fri, 11 Aug 2023 10:03:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AE3D2D7B; Fri, 11 Aug 2023 07:03:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D3B7867363; Fri, 11 Aug 2023 14:03:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3921C433CD; Fri, 11 Aug 2023 14:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691762620; bh=j+eOKQYti+AN7EczMgi60CP1M65iTD27prSKu2KILxM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EFca2cxkebiISpHQkQRzdb+UxNgasyUOKqgT46/xbyJZzh7SCIMOREecRSuDzEgQn oK/QDQO001KiF/9foe5meWYNB76P2p+myTvmQSCrRE1V2o6sNtPXtKjL2Nb5mfnRyc Z+vWOFS5v1sF6Cm4/XUQIgP+0g1S1aDY20cugUMRHn6zEVVuVn1taFPKInbnIWSdZF YRXa21egHU56n9g+2v20hCIJaKFsuRtRfqK3cy2bBEhNam3qIGIKDV/HIUR+l/EsmN SX88i0U+rLbmPLUK7nruN0EuGcx2Q3Bj5uY4tNDJZakmjWK/hflnfJOCoQ58CrmKtA +SLkrv//TPGoQ== From: Arnd Bergmann To: Masahiro Yamada Cc: Arnd Bergmann , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Guenter Roeck , Lee Jones , Stephen Rothwell , linux-kbuild@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH 1/9] Kbuild: only pass -fno-inline-functions-called-once for gcc Date: Fri, 11 Aug 2023 16:03:19 +0200 Message-Id: <20230811140327.3754597-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230811140327.3754597-1-arnd@kernel.org> References: <20230811140327.3754597-1-arnd@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org From: Arnd Bergmann clang ignores the -fno-inline-functions-called-once option, but warns when building with -Wignored-optimization-argument enabled: clang: error: optimization flag '-fno-inline-functions-called-once' is not supported [-Werror,-Wignored-optimization-argument] Move it back to using cc-option for this one. Fixes: 7d73c3e9c514 ("Makefile: remove stale cc-option checks") Signed-off-by: Arnd Bergmann --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bf5a6100cf66e..991c02f8e9ac0 100644 --- a/Makefile +++ b/Makefile @@ -967,7 +967,7 @@ endif # We trigger additional mismatches with less inlining ifdef CONFIG_DEBUG_SECTION_MISMATCH -KBUILD_CFLAGS += -fno-inline-functions-called-once +KBUILD_CFLAGS += $(call cc-option,-fno-inline-functions-called-once) endif # `rustc`'s `-Zfunction-sections` applies to data too (as of 1.59.0).