Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp702760rdb; Fri, 26 Jan 2024 08:10:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhY8InXnhGwXfxCbM0JRL3VHdulBTOKQi3i66XZ1JXLH+6oQK4IWneW5SwevkWtG4D/Nqd X-Received: by 2002:ad4:4eee:0:b0:683:8515:f31a with SMTP id dv14-20020ad44eee000000b006838515f31amr61126qvb.111.1706285435119; Fri, 26 Jan 2024 08:10:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706285435; cv=pass; d=google.com; s=arc-20160816; b=i7TEKMj5WX19J2C/9IdLJIOf0mjxm8B85iRjMztOl8wQ/xcQ2tmJIr2Lik5bB1GQU1 U0zeifh7o0qzGex+fsW/kw+enRBoEs8iDULPtrabb8ofkEJdaMbRJODUm8sDlW2ISMTx TnxV8cLb6uHag2WyStjREWxHZQBnkFx2BRrhtlBY2dNgcXCV2lOpx8lWXIWWIgpPmPac Zby0aJh33fu1FHtRO/PMTgzFuI5lvcrTG65jxWafdAzTSPfdlZYxt3dDcZQrSlRVVhZJ NRY222Wm8OAjB/IBbURbQcyr5Xlhcl8aUIdQ8DpPYlmctQ+4lyqHeYkyGkyw80IfO8th xzSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8FtU73UZUadisUzhNimPTjt5GNly8elomROz+EHbzlU=; fh=00nXeLWpooMkx9tu/I3IoUefkJw3cH4cx1F1iPCy52Q=; b=Pl/3CqJbUJ+2/xfFqz9bDMyPA8jrbEuYqRdO7YFNFtq9zrl/QBa1PKr1Q6d7/FF3e7 GqUIMGvjSDjPpYxiRmJRMhgbXz/f7mctXBYcCL71S0R4FCfHOBoY9hX80Zm72lW76/YG y7d6n8Tcoy+BEnlhDPsnD6TN1mD3OV9tBYnP3zgRIWfBJgLoP6WXhQsVqu+hpy9QR/hn GJsbQ7MG3s6elX4JYvafyuQMY67tI4GBanvZ5W0t2PVOnWLj0If/xy7dQPgmQ6bA+cPA 4L9csskwl+exvPsnUKcqmATItsgdatWe34lRBaA8pgwMN1yNm4tnI0cQ2ecwjIMNSrrN Sp6Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tb6NbSgI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-40316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fq1-20020a056214258100b0067f27b5ec64si1549252qvb.141.2024.01.26.08.10.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 08:10:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tb6NbSgI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-40316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id DA51A1C227FC for ; Fri, 26 Jan 2024 16:10:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBAE71D54A; Fri, 26 Jan 2024 16:10:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tb6NbSgI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D624E1CD1F; Fri, 26 Jan 2024 16:10:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706285428; cv=none; b=qGtGaK3/RwH1EYdVkfMMfYYwNcbHX1nuc+kcZ7Gw3991jr/pb55M465MM33NCSkT2vc7+G3N6zvswOPgKWn9NjZoDUN9JhDm+AmG62X1goibGQgFIjHuWbLz8ui/DOy8fog4faiH807LN0vONNyBKYBVT7451EX5O4ozN9ssCNY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706285428; c=relaxed/simple; bh=dCh3Q7IJrxBpqeaYZ3wZ62jWq+kUi+XKjTJ8+Wu15U4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EgbzEvzAXaZ7sbQw+fGUNdQkocZzwV0rKHi2I1VZK27eb/9KTzRG7SR5IMHD1YwI9oh9G408mJjjB3QzCt49sEcAfE86yYjmmwqdBoY8BAjrvk7i3u50MUgkKc9fp3z6iOcLx7/Xil03MZ0iLDHtVB8NN9PyWbo8Z8dj8itSnJs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tb6NbSgI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD07AC43390; Fri, 26 Jan 2024 16:10:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706285427; bh=dCh3Q7IJrxBpqeaYZ3wZ62jWq+kUi+XKjTJ8+Wu15U4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Tb6NbSgIH5Jh9xM0TXplcprBK9xu5xjIlahezLx9JjLaeV3D++84RBlfi1tb0r+B6 ktXLrOiruZrF5P4D+icn+bveWbxq5S9iaVGmCWyDqHYgdYlor6C12TOGUJXC2fwIup JiJdoKB8O18h/S6XqG30/QvhL/xLfKuqHzAzq9xoIu9cq4OZnFIl67icBw+brpRL9j EKs4VLlE39mii6pG12TJ1NjeyCv9vje0I64wtexLpUrozbiZ07z+sDcY8DNuFx0e9H RKPT/DXqqc9f2IHsymkR/kWJq1L9uriLoVILEXVBRw162F/Sm86OMkHbhe+ruZwnFq kDB+ARKOuczmg== Date: Fri, 26 Jan 2024 09:10:25 -0700 From: Nathan Chancellor To: Mark Rutland Cc: akpm@linux-foundation.org, masahiroy@kernel.org, nicolas@fjasle.eu, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 05/11] arm64: Kconfig: Clean up tautological LLVM version checks Message-ID: <20240126161025.GA3265550@dev-arch.thelio-3990X> References: <20240125-bump-min-llvm-ver-to-13-0-1-v1-0-f5ff9bda41c5@kernel.org> <20240125-bump-min-llvm-ver-to-13-0-1-v1-5-f5ff9bda41c5@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Jan 26, 2024 at 12:59:55PM +0000, Mark Rutland wrote: > On Thu, Jan 25, 2024 at 03:55:11PM -0700, Nathan Chancellor wrote: > > 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 > > --- > > 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 > > We can delete the URL here, since that was just to describe why this depended > upon LLVM 13+; it's weird for it to sit here on its own. I think this is the URL for the fix for the problem brought up by commit 146a15b87335 ("arm64: Restrict CPU_BIG_ENDIAN to GNU as or LLVM IAS 15.x or newer"), so I think it should stay? It does not look like I ever added a link or context for the LLD line, I definitely should have. > The URL above for __builtin_return_address() can stay or go; it may as well > stay since we have the comment aboout LLvm 12+ above it. That's the conclusion I came to as well. Thanks a lot for taking a look! Cheers, Nathan > With that: > > Acked-by: Mark Rutland > > Mark. > > > 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 > > > > -- > > 2.43.0 > > >