Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp647621pxb; Mon, 25 Oct 2021 15:47:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRRpaFJe07EstiWQVJ774bgv6UsE1l4iDT3KHArR1cdk38Q1K/LXseb4hQeJcs+R1bePzP X-Received: by 2002:a63:e613:: with SMTP id g19mr16340413pgh.12.1635202074970; Mon, 25 Oct 2021 15:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635202074; cv=none; d=google.com; s=arc-20160816; b=EiO3DGWvmJ35KLJfzXZFghZAhZ5C7rfvqxTwJPktWINnzKkEjaGORB9Lc0EWaysARH bcaoWAt2vTsEay4wy4kBsRUVBAkqCCEZQMG94nBqk6sTa0wGeFPdozkVYDfR7AI74ezM Z3aEm0twDvOOGgo1UZIgy7H7UTzikvZTY3q9JYUitLMq+kjR2oT8uvWLPd+HbVGPKeMv PF+W2l/ccQvlCYUnpJLZTUueeLlXpv7BkPNzl/vzH0QtHIrotwVoCvTL+pXtny3jkKul sflnA2g+E0pEnxuBGh5oPMlcd7xZnydNN4KsfmzeMXlGm0jg84jaKo3cUGjpJML0wOcS Coyg== 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=mmnrEn1mcjnEGevxeVlcTW6jSzM5qKebF71DogV6SLU=; b=gxWFG/nG1XFsMP7SJxCN+m6pVd7JAaP5/pLMeiyYarMgk/Iksfweaj1rwe471f3JUy FHyO6u6/iUm76tgT61ujrXf7JDHELNjmK0Q9A1XmUaB6hQKrQbJ9Tl2MGm3Ru77SqLoo AjRzEIoGvqTgmv5nyYIoTEdcrxI7CnTzKsXq7lR9I59mvOZnBDwYV7+Li61/p2/v19qY bsJOxRgKU+2Ixi8NRDGLxeE/708I4vBQ69TK9X2QGzqBt19D4kHHsB2DopZ/ZgMZOrWN Fpheyr5ZgBtlM9qvmM7MC6S3ef9yGC2rK3p19xox4i7meOdgg0KNMm55yY5020Q1HPZ+ PLWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Pz7PIm/2"; 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 f18si18401869pfe.368.2021.10.25.15.47.41; Mon, 25 Oct 2021 15:47:54 -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="Pz7PIm/2"; 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 S234540AbhJYTiz (ORCPT + 99 others); Mon, 25 Oct 2021 15:38:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:49320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236176AbhJYTdl (ORCPT ); Mon, 25 Oct 2021 15:33:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F2E6761177; Mon, 25 Oct 2021 19:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635190157; bh=pw+g9uqhyfyHd9pZd8pNNIEmXfL04D2FURuJLm3OOso=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pz7PIm/2SFo9aEwyNluVhvzYNPks7x12myYylUC7ub01wbaGuW6u6tlcXm3vG8yNi WKPYfNvZ12P9q1xrQgD9TaEJVtH9Q1lS5KGkZWN80VjN2yMjdrixiDW95ju/r85mz8 sSYnWt9EflM2qBymQWCSUSTXZiuYAYYQ9xzOlsgk= 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 5.4 57/58] ARM: 9122/1: select HAVE_FUTEX_CMPXCHG Date: Mon, 25 Oct 2021 21:15:14 +0200 Message-Id: <20211025190947.171093540@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211025190937.555108060@linuxfoundation.org> References: <20211025190937.555108060@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 @@ -85,6 +85,7 @@ config ARM select HAVE_FTRACE_MCOUNT_RECORD if !XIP_KERNEL select HAVE_FUNCTION_GRAPH_TRACER if !THUMB2_KERNEL && !CC_IS_CLANG select HAVE_FUNCTION_TRACER if !XIP_KERNEL && (CC_IS_GCC || CLANG_VERSION >= 100000) + select HAVE_FUTEX_CMPXCHG if FUTEX select HAVE_GCC_PLUGINS select HAVE_HW_BREAKPOINT if PERF_EVENTS && (CPU_V6 || CPU_V6K || CPU_V7) select HAVE_IDE if PCI || ISA || PCMCIA