Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1728658ybt; Thu, 25 Jun 2020 12:37:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6ziMsKX23GFOxguXn5VJEUMVLKktdGd3gN9cK6BIlhrYx7Lw/22RsxoqbFpNmnqPBT+IG X-Received: by 2002:aa7:c883:: with SMTP id p3mr4155592eds.128.1593113870493; Thu, 25 Jun 2020 12:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593113870; cv=none; d=google.com; s=arc-20160816; b=c1tEx/bAMTzeJ/XQYsYrj2nLhq1Iq6yMax+yurZPrq3ZLxdpnWWzc7dbxzaOfFcAav LH1p2tveLlhTJ4MR2AYSm4AlMQ0IQRCxP2sV6+0FavcDhoc7iK9xbJcr1ZchJ31Xxotp 9TNh/HPPM5l6tct9HRUMVqdkhG0z1UnT6edZokjnzdZ22GOWsz3F43LSfdttsvOuN3I3 lCwvsnYnAaCJRSLnp6SPRU9hjeglVZJNFB8ZF0R+yufOW27TD/sgQpKXw6BN72Fk6l72 /GCpeHfG2ONlQdfy39SIj9dY5jRGq8r6v9NQOaSY8UEsyL2E1SNjUXD782kNLjRUvm7a rsUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=338KiFmHj0j9aEP9OnwhZQhzwCpeImYEtfOmTA/bECk=; b=jJvwGZwCvOzEfKTukxHokuMHnMMxRUhnLwFOGFMH+hhi9Vy13BcBKErzWrqiL5muKw hzpl0d3i1v8BUEFeRFEEi3FR5bZ/ocuumbEBWyxa50AgNDRFs0fkBVzibe5gl1PEIqx0 tSDyKLjoR77xVWxPNpidtjJPtiQ7urLHsA3n0p9t2lwqS4fkqMe0eE7jNKUPrtZKIjvd 6z23kVVj1FV2CnJB0KShKyeAgQvw6MR6CFyWxuNCjN99/6DCgdAuNY06sQWhePnTxNPC +042pIBNc76TLd6mKgVDL1+ZlFMlq+yT+7IgdKi7LUWskJdckrGS2Mrly///5O6jxxZu fQxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cZx1Jl3k; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si8305917ejc.325.2020.06.25.12.37.27; Thu, 25 Jun 2020 12:37:50 -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=@google.com header.s=20161025 header.b=cZx1Jl3k; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406661AbgFYTfm (ORCPT + 99 others); Thu, 25 Jun 2020 15:35:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405815AbgFYTfl (ORCPT ); Thu, 25 Jun 2020 15:35:41 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 629F1C08C5C1 for ; Thu, 25 Jun 2020 12:35:41 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id r12so7041050wrj.13 for ; Thu, 25 Jun 2020 12:35:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=338KiFmHj0j9aEP9OnwhZQhzwCpeImYEtfOmTA/bECk=; b=cZx1Jl3kF6Z3T9JrekfYLiqxZZVEEyfVJwWfYCcpEu7dOn5mjB2XQbR4eZrpFUZKE7 FhQzgOFEXpD5Z8Ifa6k8GcVLaj61pIP/S3PrvFi29pspMw8uW3p4Q7RskTgmCh9hN924 vmL5PYWJfs+a0CnZKLfNob1DXN4Rpj2LvM/3zFXIhDa7Cx6IboTCUVntFxntCuUphqJv KrHCVa6RvJm0YffFTkvt7fviIOH6l9iKr/zG2YNwonNvC66EO6ayWkZ8r00F0L0vbKw6 pYglt3O4wOUUfrEZhbpLT3kWHjBFwQsUlCIx3C4gYO3D3qMUkAz5YG+nvpHvq9fV4rpb 4LEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=338KiFmHj0j9aEP9OnwhZQhzwCpeImYEtfOmTA/bECk=; b=aYgCVTzzAAZZcY5JOKVdJWETLCC2SksTLQF1jY4LF1Cbn4HT5FMK5XkOq3I6rDmzbJ OafzaTqQ0gAQYhU8LlmfY0neMuF/pIpGoVR5iT0dqhLVYprCJ4sybINacSZLYWrRA8JW KJC4ZMiN3ohVKk3hBk+mtAk+8hnRwRaJZYNajftzmREJWDNoykpbRPsJgDZggoG8GlZy f1eF5tyEhpCETswLRN6b/rJiw4TF5UwlFAg3XQplSthS0Itin/s6UOszT+SNs4raTxPT 4cpixBZmDjUswbtrcAplEx/xrhQDS6x6W+3RkJ4tun/1h854oxxZZnIY2ZCEeZtQ5vmc ZK4Q== X-Gm-Message-State: AOAM5332a80gMG4R6jaAfOHSOqrnx1b9VeqAEumMqYalvtj/bd8F9a0v u4udlwigoxwMPX84DzVlNGdSng== X-Received: by 2002:a5d:458a:: with SMTP id p10mr33140763wrq.184.1593113739967; Thu, 25 Jun 2020 12:35:39 -0700 (PDT) Received: from elver.google.com ([100.105.32.75]) by smtp.gmail.com with ESMTPSA id t4sm7862891wmf.4.2020.06.25.12.35.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 12:35:39 -0700 (PDT) Date: Thu, 25 Jun 2020 21:35:33 +0200 From: Marco Elver To: Peter Zijlstra Cc: "Paul E. McKenney" , kernel test robot , kbuild-all@lists.01.org, LKML , Will Deacon , Mark Rutland Subject: Re: [rcu:rcu/next 35/35] kernel/rcu/tree.c:251:8: error: implicit declaration of function 'arch_atomic_add_return'; did you mean Message-ID: <20200625193533.GA235320@elver.google.com> References: <202006250300.ic32FsdY%lkp@intel.com> <20200624203025.GJ9247@paulmck-ThinkPad-P72> <20200625112926.GO4781@hirez.programming.kicks-ass.net> <20200625141125.GE117543@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200625141125.GE117543@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.13.2 (2019-12-18) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 25, 2020 at 04:11PM +0200, Peter Zijlstra wrote: > On Thu, Jun 25, 2020 at 01:29:26PM +0200, Peter Zijlstra wrote: > > I fear the same. Let me see if I can quickly modify the atomic scripts > > to generate the required fallbacks. > > Something like so ought to work, I suppose. > > --- > Subject: locking/atomics: Provide the arch_atomic_ interface to generic code > From: Peter Zijlstra > Date: Thu Jun 25 15:55:14 CEST 2020 > > Architectures with instrumented (KASAN/KCSAN) atomic operations > natively provide arch_atomic_ variants that are not instrumented. > > It turns out that some generic code also requires arch_atomic_ in > order to avoid instrumentation, so provide the arch_atomic_ interface > as a direct map into the regular atomic_ interface for > non-instrumented architectures. > > Signed-off-by: Peter Zijlstra (Intel) > --- > include/linux/atomic-fallback.h | 236 +++++++++++++++++++++++++++++++++- > scripts/atomic/gen-atomic-fallback.sh | 31 ++++ > 2 files changed, 266 insertions(+), 1 deletion(-) Thanks, looks reasonable! If noinstr becomes important on architectures that don't implement atomics using arch_ themselves, there might be a problem with CONFIG_TRACE_BRANCH_PROFILING, because unlikely() is used throughout this file. Probably not something to worry about now. Thanks, -- Marco