Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp631505pxb; Mon, 25 Oct 2021 15:23:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv1I2y7J0YKBk2n+Yj9ZN8Yj02yrzsZ3xSnIx85MG1SvljQFKUsCEs5uFQWgfcLqoM5FnT X-Received: by 2002:a17:90a:f0c6:: with SMTP id fa6mr1333076pjb.5.1635200614262; Mon, 25 Oct 2021 15:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635200614; cv=none; d=google.com; s=arc-20160816; b=NR4ebS3F6y/Vox6g0ztlGaZPCTqoXE618haoFJXVWd24zcinPsxS0lyYDpGfkNj8nj 5k921W7LgOyyN8fZ643lfnreZ6vKuOYtPeuECB+EDXLyB/UlXM7Nv423xtT5wKqdFzOh 6FoaZtWWmFhveJr/AbrIEVNs+DZfxIsuw6uMcvdnCdhqWOWESCoZNI2QY4YDaHoHV9TL 1UPqH7zVzko9TdonWtTP0mejfIj9jhrW8nBuJZ9LJQcBAA6KzlIfJjuCTY39Rns1rOr0 Js62DD4ms0RQQNsMexchOggYEwlyUonK7DwlvQmVg39LWnKWsgTMxlLSgwTpZ1itLJzC mpIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rokxX/4Fxfs+6bUUlgQSI3BBOOtYZWzBLxqv26Xsl2A=; b=ppMRd0yjHp3B1s1d99OqoqyR+1cFpjjch4hRboUIsPDCSUsKo1M+cTGb8jI8V8tcwo p3jnc5jk9eyhR74zG6R+ILRXoUsiCgOBvzgFegUvIEFbOkeGitGW502Y4Xi52E8Qe1Ua XPnJPYOP/HAil6vRONcoyknoYsDcx18LMxRGx8cZ16vdu4D4SpoDVmeXVVmLXRkpnkw5 nXAX85KaYSpH0Ljn/MPyqXWTa1WJQiFjEC+gDKaQyzlgL3dJ0tU3P7VBVm3aHJVp5sKV VNT+ZDogDni/kmdsQ6ub598T/h3h/rn22u1kAjg/NP+bV7TuX0d51qDacgDYpdMpwjCJ jI9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Vc1p1yX3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si29404399pfv.197.2021.10.25.15.23.21; Mon, 25 Oct 2021 15:23:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Vc1p1yX3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233044AbhJYTUv (ORCPT + 99 others); Mon, 25 Oct 2021 15:20:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:38042 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234547AbhJYTTw (ORCPT ); Mon, 25 Oct 2021 15:19:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 13E3A61078; Mon, 25 Oct 2021 19:17:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635189450; bh=ZRVUPx2uGfFZEyzf7HVtEtVAo2ZffGGhO+E00unNCwM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vc1p1yX3ifXcOlmw9zGxV9SptE0Jr7A2mUdamCWRMOh38EGF7LyieZV/Bgs8btTNV K7pMfFItfbMs8gIkTkjtfBUD58zsmvw9eyUcVQXpGhGRMohSMOdpBGfPClvV6BfOe+ yhExdP7UOs9p7hWqLENqZatlGSCwauzSuuiCD+Rc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Nathan Chancellor , Thomas Gleixner , Nick Desaulniers , Linus Walleij , "Russell King (Oracle)" Subject: [PATCH 4.4 44/44] ARM: 9122/1: select HAVE_FUTEX_CMPXCHG Date: Mon, 25 Oct 2021 21:14:25 +0200 Message-Id: <20211025190937.446321165@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211025190928.054676643@linuxfoundation.org> References: <20211025190928.054676643@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nick Desaulniers commit 9d417cbe36eee7afdd85c2e871685f8dab7c2dba upstream. 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 Comments from Nick Desaulniers: See-also: 03b8c7b623c8 ("futex: Allow architectures to skip futex_atomic_cmpxchg_inatomic() test") Reported-by: Arnd Bergmann Reported-by: Nathan Chancellor Suggested-by: Thomas Gleixner Signed-off-by: Nick Desaulniers Reviewed-by: Thomas Gleixner Tested-by: Nathan Chancellor Reviewed-by: Linus Walleij Cc: stable@vger.kernel.org # v3.14+ Reviewed-by: Arnd Bergmann Signed-off-by: Russell King (Oracle) Signed-off-by: Greg Kroah-Hartman --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -51,6 +51,7 @@ config ARM select HAVE_FTRACE_MCOUNT_RECORD if (!XIP_KERNEL) select HAVE_FUNCTION_GRAPH_TRACER if (!THUMB2_KERNEL) select HAVE_FUNCTION_TRACER if (!XIP_KERNEL) + select HAVE_FUTEX_CMPXCHG if FUTEX select HAVE_GENERIC_DMA_COHERENT select HAVE_HW_BREAKPOINT if (PERF_EVENTS && (CPU_V6 || CPU_V6K || CPU_V7)) select HAVE_IDE if PCI || ISA || PCMCIA