Received: by 2002:ab2:7853:0:b0:1fa:5c73:8e2d with SMTP id m19csp34247lqp; Thu, 30 May 2024 11:06:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUr9Xqm3Oii5l9BkgHCs/rVY5x8Q8iQpRJc/17A/G3KOdOYOP8DHU0KeZM591WJz0SQ47sGrhqFGp/e63ggqxjhsd6CEXF2CNtZa7oi2w== X-Google-Smtp-Source: AGHT+IGicxyKyU++JJjvbgAS5XALorzNVHbKHqGxAUqgf4SAC0vw9InQo/sz/3KyrzYoqgz3rT6k X-Received: by 2002:a17:906:7d88:b0:a66:e60a:8947 with SMTP id a640c23a62f3a-a66e60a8a26mr99675666b.45.1717092384018; Thu, 30 May 2024 11:06:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717092384; cv=pass; d=google.com; s=arc-20160816; b=UN1hRVw2lFUyoYQFBKPveYLmrn/idqiKKi5d09ksByBeHdooW8X6NDRF2b1IxX530X vnZ2GYXruhjL5iMG32uOAgJ0U4hVaRRHprlw09fI187FRhzO2b9/OhRQO7EhTWGd5A8r nNzUqkPSzRLvE64SHKtnJF+z3DVgTDz9ozntxVn8FjceWheDEFIrki9DzAN6tIKRFgiy PzxbDo+nNjqSdjIn4xUkhoneQsS4ahdLri8exLiplnpOumn8NmuvxX5ygktb0OeuK+W4 Y/ZCZA3loVrFpI+bEf0uAcg8FTAyRxKKZSCVnVNFj+7dzPhnjivxffRe7L1f8lqRUpqU leGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=SkLD/QSa35SjDwEkaUt3lwI+SBmwPmQOygwVgmlQz2s=; fh=ddQL/bGSjmoIVQR17VLjPN2NY6eKy8OK0Cglt88qpkc=; b=DJ4wL4dMjTlCpMGBLKWZMvWdF4foW3OnLIBg5ZoULthobuyq/3ZhBF8WITSixpwGVO PTaJdwIBnrDD2l0MR9Cm2Yv9cpP1p7kNWl2akt2zKl2QSXeSSXAR438tZWnT01edDLUM 7WzNrBlzKfPfKo4rWhdtK4Sx4PbOkp3rQ7xRPICksawY0UYOAmk+Ly5GybaeuaEqJSp6 P5lg5gTxzrdwZzQnKndlK3aUjnatyF3EbCWSAGlZMTM1yWyFw9ym3ONEw/5KJuVbtetP zvsKVeyKKzWkTjO6P4Z8vEIKVjLkWUV7ZiN6CqI/UYl6jQIlQNb/tyzHhg1F/wDCd3FV Rt2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=LayYkV9W; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=F5yW3jNC; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-195767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a67eaf64e3bsi881366b.834.2024.05.30.11.06.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 11:06:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=LayYkV9W; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=F5yW3jNC; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-195767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195767-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id B79AF1F23A75 for ; Thu, 30 May 2024 18:06:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 225424B5A6; Thu, 30 May 2024 18:06:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="LayYkV9W"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="F5yW3jNC" Received: from wfhigh8-smtp.messagingengine.com (wfhigh8-smtp.messagingengine.com [64.147.123.159]) (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 7F9EA433D2; Thu, 30 May 2024 18:06:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.159 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717092376; cv=none; b=My46Yxl+ehcWDbnuODfIU/xfua9j31jF2V/rZaVi9RamLBXZC2zy5gnNTwL1xq5nT86Inkuf5+vdq73CGDU+QjIQbp+evgntR8OVDD9yKfCEzdbxpkAKlE71XuXleAGTT3fFMLidM3+mL+Lle922evaBH1+9X/whFsJYOX+FcCk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717092376; c=relaxed/simple; bh=ECROXY97FzRRFQfl/vTg9noe1+ys7k0kn2Q+dIUph7Y=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=H3kD1+pyqa25wJyfI6wU7ZqU3zjGGJcC29uv2BIcQdQroOLxNkiJSAi5al5waxoWRIaFTBI0rLKcZzHDTnqfyvlfyfcN8ildxUMd5b9IcUJhXuvQX7vTDAusv3kNwmQhvnKvkLS1pPbUh1EIgtdcEuWHrPQvGL3qz0bdQGwLCgo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=LayYkV9W; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=F5yW3jNC; arc=none smtp.client-ip=64.147.123.159 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.west.internal (Postfix) with ESMTP id D5CAC1800079; Thu, 30 May 2024 14:06:12 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 30 May 2024 14:06:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1717092372; x=1717178772; bh=SkLD/QSa35 SjDwEkaUt3lwI+SBmwPmQOygwVgmlQz2s=; b=LayYkV9WK4f6u5i7IHuefhADZR SRZx8GYAhJ2vN8neBBjcFYIqov388lwboVrHphim/Sw/W4elUyFixlKtLIXA6/hK vU26MgPk8udNrj5RkyKu3QlbMxUs/VDT4ELPRhVI+I2TzxWLsk21+ezWO+b2B03X JAT2X/BJQ+bkKcLJDD3GRQbRlPpKFiVIz47m/OegB5eDQxtbjIGdpMZnrFtqKhQB Gg10e7BAyGYoRTfls61EWjV+ooItFdbWlZphZZs0dwbpkFZHyq9b+4JznreCfSDX J2fl/147w3JZplclvkTAXJ+/FaohUwhFZ2YsYTtqHy2ByWSNfWGfyf0chYiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1717092372; x=1717178772; bh=SkLD/QSa35SjDwEkaUt3lwI+SBmw PmQOygwVgmlQz2s=; b=F5yW3jNCWi4pf8bFfGOqpfo9+c/c7BOh0lfT5jd+dkvc 4sfBpqMbeVGgKaMFKwBB/danWHi9fCWT9VT3QexmMoiPcTrQuGiW+3PM067YTORI 2UzyyzW90pn2kHLVNIOQc1cArR8uj8cV3HK8MKpGPcDDhXdHhgTs+voOmJzBAkrs UmRXN4IKO7HhlA6FUjUQW2cfZPgUoT3070RJTjJtiE+3IJ9tMHJVWt8lM1ucvKbZ GAcoX7UO1glDoKWQczit6nDD/oXRwHzJPhOf94I2AyxUoRMXZFYzljwwYQsJckgm nLItEaTgt0Hh9I9MwR4NDt333OorSsOdw5ox1WIC8Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekgedguddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E5E5DB6008D; Thu, 30 May 2024 14:06:11 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-491-g033e30d24-fm-20240520.001-g033e30d2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <38442e3d-1e43-4894-b126-b4258d331a32@app.fastmail.com> In-Reply-To: <214a33ac-d4fa-4d48-ad3c-ad8b00ae1a5e@paulmck-laptop> References: <7f61cc11-7afe-46ac-9f07-62e0b9ab429f@app.fastmail.com> <5426b25f-9c25-4938-99e8-5cdea75e4d3b@paulmck-laptop> <214a33ac-d4fa-4d48-ad3c-ad8b00ae1a5e@paulmck-laptop> Date: Thu, 30 May 2024 20:05:50 +0200 From: "Arnd Bergmann" To: "Paul E. McKenney" Cc: "Russell King" , "Naresh Kamboju" , "open list" , "Linux ARM" , lkft-triage@lists.linaro.org, "Linux Regressions" , rcu , "Dan Carpenter" , "Joel Fernandes" , eeraj.upadhyay@kernel.org, "John Ogness" , "Mark Brown" Subject: Re: arm-linux-gnueabihf-ld: kernel/rcu/update.o:update.c:(.text+0x1cc4): more undefined references to `__bad_cmpxchg' follow Content-Type: text/plain On Thu, May 30, 2024, at 19:24, Paul E. McKenney wrote: > On Thu, May 30, 2024 at 09:37:21AM -0700, Paul E. McKenney wrote: >> On Thu, May 30, 2024 at 03:27:58PM +0200, Arnd Bergmann wrote: > And for an untested first attempt at a fix. > > What did I mess up this time? ;-) > I think only the comment: > > switch (size) { > -#ifndef CONFIG_CPU_V6 /* min ARCH >= ARMv6K */ > +#ifdef CONFIG_CPU_V6 /* min ARCH >= ARMv6K */ > + case 1: > + oldval = cmpxchg_emu_u8((volatile u8 *)ptr, old, new); > + break; > +#else "min ARCH >= ARMv6K" now applies to the #else side, while the #if side is the early ARMv6 (pre-v6K). Arnd