From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 D55053FC2 for ; Mon, 30 Aug 2021 23:24:34 +0000 (UTC) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1630365466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=waBPSOtEtKCExNwq33nlht3Z/W5y12JWVi4ROsYUn4o=; b=VdMYJwvdoHcxtCr53N6CTe6+RXI/dJQD4aoXzaK7kxvqupSiDzpZ+jGsOu4OIHsNaPESH1 36CFlYXCQ6d9y1ecHnURZikTaevqx+Te5hD0AUT/+25OapiFAp42p/QNER1KUh7WLh0qAs efcRXZQltSG58N/dX0haH6pRBMdS0XKMDKdlhx8U9zsBDt2sa3Ie0HemL9axWum8bA/xHP B6fTDfcn5UWrtoBMnwokQKpe9i/0rj7+4vs8wy3URVbkCzPXSmroGgKDqXvNnIF1TjnRIu bv84JhcufiuiMzjQQFkGTR8qP6PJ/TBTuKafrTZZlUPzzAaXxV9AFlGesyQYpg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1630365466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=waBPSOtEtKCExNwq33nlht3Z/W5y12JWVi4ROsYUn4o=; b=KRwTD0VUCAgK8yGHAjQtM9hIAXF9SbLYvHYdJpU5mf5cvbP3NyQGSokq2ZMEAFHoZwtv6N l0hPjqepuM3Hz0CA== To: Nick Desaulniers , linux-arm-kernel@lists.infradead.org Cc: llvm@lists.linux.dev, Nick Desaulniers , Arnd Bergmann , Nathan Chancellor , Russell King , Geert Uytterhoeven , Linus Walleij , Andrew Morton , Anshuman Khandual , Ard Biesheuvel , YiFei Zhu , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Mike Rapoport , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] ARM: select HAVE_FUTEX_CMPXCHG In-Reply-To: <20210830213846.2609349-1-ndesaulniers@google.com> References: <20210830213846.2609349-1-ndesaulniers@google.com> Date: Tue, 31 Aug 2021 01:17:45 +0200 Message-ID: <87czpufrom.ffs@tglx> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Mon, Aug 30 2021 at 14:38, Nick Desaulniers wrote: > tglx notes: > This function [futex_detect_cmpxchg] is only needed when an > architecture has to runtime discover whether the CPU supports it or > not. ARM has unconditional support for this, so the obvious thing to > do is the below. > > Fixes linkage failure from Clang randconfigs: > kernel/futex.o:(.text.fixup+0x5c): relocation truncated to fit: R_ARM_JUMP24 against `.init.text' > and boot failures for CONFIG_THUMB2_KERNEL. > > Link: https://github.com/ClangBuiltLinux/linux/issues/325 > Reported-by: Arnd Bergmann > Reported-by: Nathan Chancellor > Suggested-by: Thomas Gleixner > Signed-off-by: Nick Desaulniers Reviewed-by: Thomas Gleixner From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D779C432BE for ; Mon, 30 Aug 2021 23:20:12 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id E217860F6B for ; Mon, 30 Aug 2021 23:20:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E217860F6B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pvtVQ4SmwUIXIfJWDJuxYx7ycp9LJRKrOe+q+VjopWk=; b=0APydTg6UP9NpK CDk4zrOLzJQhA0rbQadZaUm8B4vh9D9atkwVCROeInS01Xxyth6TqtoPrinAifPKgobtZPKsykq22 kOMq+eHZLvMGR7u2frwvekNBJn+fmWarpRFNb2grOADmDWrlTmj/yDoFizIH1AJjVrmpWM8DXc1SZ UL8T0yCh+XldRjyjo5LCVBNDJ/FBik1GfPMC3Atm6d7MYd8/s8bIv4YnlRiIjzQGWkwY7XRuxQCj6 ZTjsn6RSZdvTyVtYipvUTjN64soICkDqZ2D/oXAKJgvVIV5xAuRqfkJU6h9bjDH7FWxR0ZZYth+W0 3KID5dxWuk06Obmb+JBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mKqXM-000oXe-Lz; Mon, 30 Aug 2021 23:17:56 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mKqXF-000oWX-EZ for linux-arm-kernel@lists.infradead.org; Mon, 30 Aug 2021 23:17:53 +0000 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1630365466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=waBPSOtEtKCExNwq33nlht3Z/W5y12JWVi4ROsYUn4o=; b=VdMYJwvdoHcxtCr53N6CTe6+RXI/dJQD4aoXzaK7kxvqupSiDzpZ+jGsOu4OIHsNaPESH1 36CFlYXCQ6d9y1ecHnURZikTaevqx+Te5hD0AUT/+25OapiFAp42p/QNER1KUh7WLh0qAs efcRXZQltSG58N/dX0haH6pRBMdS0XKMDKdlhx8U9zsBDt2sa3Ie0HemL9axWum8bA/xHP B6fTDfcn5UWrtoBMnwokQKpe9i/0rj7+4vs8wy3URVbkCzPXSmroGgKDqXvNnIF1TjnRIu bv84JhcufiuiMzjQQFkGTR8qP6PJ/TBTuKafrTZZlUPzzAaXxV9AFlGesyQYpg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1630365466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=waBPSOtEtKCExNwq33nlht3Z/W5y12JWVi4ROsYUn4o=; b=KRwTD0VUCAgK8yGHAjQtM9hIAXF9SbLYvHYdJpU5mf5cvbP3NyQGSokq2ZMEAFHoZwtv6N l0hPjqepuM3Hz0CA== To: Nick Desaulniers , linux-arm-kernel@lists.infradead.org Cc: llvm@lists.linux.dev, Nick Desaulniers , Arnd Bergmann , Nathan Chancellor , Russell King , Geert Uytterhoeven , Linus Walleij , Andrew Morton , Anshuman Khandual , Ard Biesheuvel , YiFei Zhu , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Mike Rapoport , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] ARM: select HAVE_FUTEX_CMPXCHG In-Reply-To: <20210830213846.2609349-1-ndesaulniers@google.com> References: <20210830213846.2609349-1-ndesaulniers@google.com> Date: Tue, 31 Aug 2021 01:17:45 +0200 Message-ID: <87czpufrom.ffs@tglx> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210830_161749_681336_65E387AD X-CRM114-Status: GOOD ( 10.97 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Aug 30 2021 at 14:38, Nick Desaulniers wrote: > tglx notes: > This function [futex_detect_cmpxchg] is only needed when an > architecture has to runtime discover whether the CPU supports it or > not. ARM has unconditional support for this, so the obvious thing to > do is the below. > > Fixes linkage failure from Clang randconfigs: > kernel/futex.o:(.text.fixup+0x5c): relocation truncated to fit: R_ARM_JUMP24 against `.init.text' > and boot failures for CONFIG_THUMB2_KERNEL. > > Link: https://github.com/ClangBuiltLinux/linux/issues/325 > Reported-by: Arnd Bergmann > Reported-by: Nathan Chancellor > Suggested-by: Thomas Gleixner > Signed-off-by: Nick Desaulniers Reviewed-by: Thomas Gleixner _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel