From patchwork Thu Jan 25 22:55:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 13531825 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6203CC47258 for ; Thu, 25 Jan 2024 22:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=t2yH93q1Qf1ebWgfBnlFymqMU7wVBVKjRRxnhEz4cL8=; b=3HqWCQXsGZPwdV shTJ5oXnIkt8gk4fTZfXFlpKWhYxv+W98BqtO4y77ejTYLHzHiJ90T2EZn8VlNvxOMpbQBjm0ARc4 Y2/WzwzGAaNls8Wak97PZnqXlTcVZzTDFi1aW1+m2t2rzM8KhGv8NBCePQGh1ZXBx5KafxNkS3vUF ijxDWniRk2RTbOpIzCI9/SnGlPcC2D3RHzk4PJaYixhVE2ZFpjI6xiyoH5650l7HZG6LnmWm9xZUm BqIMr8DPce6vAXbdUG+90mUy/mQAsI126Tag0LgpJGQyjLopiXnYmAUMZVsCKU8yrXrUGqi6th27n VOBIdqKSu+JrlEzplEuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT8dq-00000002JQc-2rld; Thu, 25 Jan 2024 22:56:14 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT8dh-00000002JKg-2TQV for linux-arm-kernel@lists.infradead.org; Thu, 25 Jan 2024 22:56:07 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 618A06237C; Thu, 25 Jan 2024 22:56:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8894BC43601; Thu, 25 Jan 2024 22:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706223364; bh=uWTUiLcO9yXryUTCzpWsR5tzUSWabWfzZpa+EkOT8AQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=LtixYuPua7PEB5mHUSIx/DN12t01Ocw6BaY//duPCVQ/Gfg0X2QnmYF6w2spLBIwt w60QCQIRBFuR+iZHbgAC5fCOpsRrQEXy9jgnfjPk91FeOFyMq6DWVHxPtz9QqyR33S hqQzBYIBoUjxP6PmxkFaEwyaLn4j7nWZ/82z3PRT1VIriFF2OIWp65WNoST7O8eNhh hSe+AbAPvKd3R5lAcrr8FjQIIeOWdNU+9JNAiL/4QMaD5slesW3u0hrbnKsMK2HNxE qHnG09+Jjwm8dCV/jR3Njb8+P7jeNWQxT5woCtlmj6Dh49cEeMzMkfFPCvQD+7WUMd 8Qvu1QnqWpKFg== From: Nathan Chancellor Date: Thu, 25 Jan 2024 15:55:11 -0700 Subject: [PATCH 05/11] arm64: Kconfig: Clean up tautological LLVM version checks MIME-Version: 1.0 Message-Id: <20240125-bump-min-llvm-ver-to-13-0-1-v1-5-f5ff9bda41c5@kernel.org> References: <20240125-bump-min-llvm-ver-to-13-0-1-v1-0-f5ff9bda41c5@kernel.org> In-Reply-To: <20240125-bump-min-llvm-ver-to-13-0-1-v1-0-f5ff9bda41c5@kernel.org> To: akpm@linux-foundation.org, masahiroy@kernel.org Cc: nicolas@fjasle.eu, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, linux-kernel@vger.kernel.org, Nathan Chancellor , catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org X-Mailer: b4 0.13-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1978; i=nathan@kernel.org; h=from:subject:message-id; bh=uWTUiLcO9yXryUTCzpWsR5tzUSWabWfzZpa+EkOT8AQ=; b=owGbwMvMwCUmm602sfCA1DTG02pJDKmbnv0Vubzx+PoFOUq2DfqBXXdd3ZWPu1w3CBHYHqhyK zC54PahjlIWBjEuBlkxRZbqx6rHDQ3nnGW8cWoSzBxWJpAhDFycAjAR1xaG/ykfqq85Zwb+rOgw UtsyK2RK9a6ZB5YU8OUFeUWwCkau82ZkaFF8JH9b6d57D68rk7N+2jpznplxYXnay1smp17L/3j CyQ8A X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240125_145605_752210_EC092D96 X-CRM114-Status: GOOD ( 10.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now that the minimum supported version of LLVM for building the kernel has been bumped to 13.0.1, several conditions become tautologies, as they will always be true because the build will fail during the configuration stage for older LLVM versions. Drop them, as they are unnecessary. Signed-off-by: Nathan Chancellor Acked-by: Mark Rutland Acked-by: Mark Rutland --- Cc: catalin.marinas@arm.com Cc: will@kernel.org Cc: mark.rutland@arm.com Cc: linux-arm-kernel@lists.infradead.org --- arch/arm64/Kconfig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 5a8acca4dbf4..cb34e7d780c0 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -383,7 +383,7 @@ config BUILTIN_RETURN_ADDRESS_STRIPS_PAC bool # Clang's __builtin_return_adddress() strips the PAC since 12.0.0 # https://github.com/llvm/llvm-project/commit/2a96f47c5ffca84cd774ad402cacd137f4bf45e2 - default y if CC_IS_CLANG && (CLANG_VERSION >= 120000) + default y if CC_IS_CLANG # GCC's __builtin_return_address() strips the PAC since 11.1.0, # and this was backported to 10.2.0, 9.4.0, 8.5.0, but not earlier # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94891 @@ -1387,7 +1387,6 @@ choice config CPU_BIG_ENDIAN bool "Build big-endian kernel" - depends on !LD_IS_LLD || LLD_VERSION >= 130000 # https://github.com/llvm/llvm-project/commit/1379b150991f70a5782e9a143c2ba5308da1161c depends on AS_IS_GNU || AS_VERSION >= 150000 help @@ -2018,8 +2017,6 @@ config ARM64_BTI_KERNEL depends on !CC_IS_GCC || GCC_VERSION >= 100100 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106671 depends on !CC_IS_GCC - # https://github.com/llvm/llvm-project/commit/a88c722e687e6780dcd6a58718350dc76fcc4cc9 - depends on !CC_IS_CLANG || CLANG_VERSION >= 120000 depends on (!FUNCTION_GRAPH_TRACER || DYNAMIC_FTRACE_WITH_ARGS) help Build the kernel with Branch Target Identification annotations