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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 DECE0C432BE for ; Mon, 30 Aug 2021 23:17:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B44BE60FD9 for ; Mon, 30 Aug 2021 23:17:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238962AbhH3XSn (ORCPT ); Mon, 30 Aug 2021 19:18:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238476AbhH3XSm (ORCPT ); Mon, 30 Aug 2021 19:18:42 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A297C061575 for ; Mon, 30 Aug 2021 16:17:48 -0700 (PDT) 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 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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