Received: by 2002:a05:7208:13c3:b0:82:bbfa:f723 with SMTP id r3csp1541991rbe; Wed, 15 May 2024 06:28:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2LdIHy8jmxhLtZVWaNC0yLCVOztBUhI7HyMfZ85GZ3GZ5d0f6/JSTkxn0xioYhbPpaz9/kiNe6BgayQl/QGYykGjsQaFJ8c/0+lbmnw== X-Google-Smtp-Source: AGHT+IHsmu1+8eR8wxbH1bc1yevMYI99qqXsZIDcgR41sMQ0wlO9MP0hMUzMoBsERKbrJhqHmBpC X-Received: by 2002:a05:6512:3499:b0:523:8e07:5603 with SMTP id 2adb3069b0e04-5238e0756a2mr1452847e87.41.1715779733169; Wed, 15 May 2024 06:28:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715779733; cv=pass; d=google.com; s=arc-20160816; b=HbxhtWZcLFN3RVYX//oXdYXXUZ6TQ7zlBdxofahy6K1yhN9Ecxy1RQiVFadtV/werY iwlW+Qg4EkdDWWxX1+0dPJe0GlrVM1McUxmed+BJS2xwQZOCkblSQ0Ehk8+XB3Gxvena x6H06f39VhNwgovcL7bZk90GZFByf8sivFiem8OpTlA6x6KaFrqoN7IpJecAHMH6OPBH H95VziaOJxsSMvbIF6Ztc1BmL7oPRRQ1ul3XdSD9UsBIrhJE03cfrFtrJWLsyF1gEpW7 WL5oOlqO7U8xY6zqaGzJu3RqBkFkvbeR1bx2Tdouu+/qFOBWyUwFPghkLWicUI2LIw9H KFuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5Bl5pZZSvHcWypBy/YQwOUekmFc++htbsX2zW49QzNc=; fh=2SVgu9Ok/IaMyO/inMOhe154WteMwJHgBVKU6BDnnac=; b=sdVawUzHaRhNpkknDMal8HcWqhssrtGy/gbSdvYmhQ7wH9zFOop5e1/cvJoFwxmqUM v8D17Djs4TDJPJ9N0MhbXhQEAL0F1utv33Gpv0uULeRPUJ3+aCpSsqSpjVUcZTjydqKY sgmfG7Gr+Q575Hq3KwLv7nezHgyWpx9dlili9LmRIbmx4H0VqqOHFTUsPThsxDZxrgFO 7qnCJK+TAR2eXuH2vUiwJMCDkJO63OgAszyS9lhDrO6c53d/cz8kpdctNzpgKjNK07TI cluKnOipWQtOBAA1yD4S/GcgKYtuE98TUBU7d2HkLXMzE68nxe0K/vApKtkouPxrUwon ecNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0f0T6zeU; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-179902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179902-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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-a5a1794645asi711854966b.26.2024.05.15.06.28.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 06:28:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179902-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=@google.com header.s=20230601 header.b=0f0T6zeU; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-179902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179902-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 CFA3B1F26BC8 for ; Wed, 15 May 2024 13:18:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FE8E129E7E; Wed, 15 May 2024 13:16:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="0f0T6zeU" Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13D4786245 for ; Wed, 15 May 2024 13:16:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715779005; cv=none; b=YJUzw/ic0BrKFufbtLamROjRnPQVowJT1b8hsjzeV4oSOocST8u6eleJyolmhrlNlD9oBt4e72ux78tZqWoIde/UySgIJGfwJ2itsGCCODYt0yjaIt9cdk2nF9rwh8igQxUu8YZyt7Rvgym9dkfVCOdNDsT/aSv6ZBtNkNryfcY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715779005; c=relaxed/simple; bh=Nv5VngqdeVvWHqjAcczguyK/0wJN1Krb/aobvZPhYao=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XVWpB6z1Ec7JF14TwdDTZ7OjtV+WAmltJ91GpkuFuyB+PzjxiUQQiiseRNdLdQqHh48w/Ef9G2bIT/rM6qbPM5uL8iuZtbLwtqVKXarzY9qXst+7aBPZ8uyCNSwingVF77lVbgxVkx9uHvPOTN6K0+Us7qVkwQWxDLL/1uRBCUY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=0f0T6zeU; arc=none smtp.client-ip=209.85.210.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6f4f2b1c997so3697353b3a.0 for ; Wed, 15 May 2024 06:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715779003; x=1716383803; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5Bl5pZZSvHcWypBy/YQwOUekmFc++htbsX2zW49QzNc=; b=0f0T6zeUgE3+ViKbfsAyv0OZgxhCValEyxJ/cCSzoqwTvmTQmUKnmCGayzSBAI+LuY uFTr8Tq4asbcQSiVPHm4FH3robNI1tR2HuxWktyaEkEQlUMqjjIDpE8apYcMqe93CCVI iIhMPWYy16V8p8IjaFD0rCPGtkiR/ha6s6yaX2pgIQqR9uDHWJowgM9W3XDXtZu+uTC2 JTYMYBt7N+nRP4rmyZBlyi53VjUvMlO7jiM9ccsBrMuxByG2AliZ7eNUwd4fgTSWx/pC Zh4KMJn7cyOMfo8rxZTNXh9VExEl3jaRxRLfTV1yxvx5YSeQ7nOAukKtOCUWrK2Tf97P 1clw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715779003; x=1716383803; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5Bl5pZZSvHcWypBy/YQwOUekmFc++htbsX2zW49QzNc=; b=J687540z2qbit8yf7KezlVjQTd3vAl+M7pCd69K3udtaHhzAUbwBx4qiX1hNkt8j3i DLerJa9RGHkXjcsalo8vQNBva52TXWg4qiLOn0Nab5vB2Ajo8pcdJaQK4PZ6OE9eKEtz Vwea6/W1XGUNWd5eJONs5A6etLky4vO3QcFpj2DhTPRL4r6Dpn58elAljW5SO0mAqK4g v4QplQFT8sn47r59YRuO8ACcSMTCu1SzshKWqB0hvpMNsUbJq0tR7GxZtBN2rXYk+vYD GAwqqBohi3wv1GFXMRkJ9hpUnuwbnqaPc/xf7QJrX8/TJ+ZMrtJi4acw6lAOyfq4vvn7 uO5A== X-Forwarded-Encrypted: i=1; AJvYcCVkJsdci/nQglq33ntEDQig7nmGSmevZ5I3VOHqAVKP+Sz6GwHzPUqq3lM6Y/e/GGOmW82o5DITxBliRrW5424tlJ7m3X1QOqbxIjGV X-Gm-Message-State: AOJu0YwYbI1+dQWzZgwjZVsDr6VYw7tgn0NmAXhhZT/2VZCXY86i9w6n smL898Xkki1bK64LfmgL2fpFuUtGwthogWOL3vFbYXGQwoJOK4J66ssbKW35Gw== X-Received: by 2002:a05:6a21:680b:b0:1ac:e07f:e3aa with SMTP id adf61e73a8af0-1afde1b7264mr17270032637.48.1715779003108; Wed, 15 May 2024 06:16:43 -0700 (PDT) Received: from google.com (57.92.83.34.bc.googleusercontent.com. [34.83.92.57]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f4d2a68c1asm11046375b3a.32.2024.05.15.06.16.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 06:16:42 -0700 (PDT) Date: Wed, 15 May 2024 13:16:38 +0000 From: Carlos Llamas To: Mark Rutland Cc: Peter Zijlstra , Kees Cook , "Paul E. McKenney" , Ingo Molnar , Uros Bizjak , linux-kernel@vger.kernel.org, kernel-team@android.com, stable@vger.kernel.org, Arnd Bergmann Subject: Re: [PATCH] locking/atomic: fix trivial typo in comment Message-ID: References: <20240514224625.3280818-1-cmllamas@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, May 15, 2024 at 10:11:29AM +0200, Mark Rutland wrote: > Hi Carlos, > > On Tue, May 14, 2024 at 10:46:03PM +0000, Carlos Llamas wrote: > > For atomic_sub_and_test() the @i parameter is the value to subtract, not > > add. Fix the kerneldoc comment accordingly. > > > > Fixes: ad8110706f38 ("locking/atomic: scripts: generate kerneldoc comments") > > Cc: Mark Rutland > > Cc: stable@vger.kernel.org > > Signed-off-by: Carlos Llamas > > --- > > include/linux/atomic/atomic-instrumented.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/include/linux/atomic/atomic-instrumented.h b/include/linux/atomic/atomic-instrumented.h > > index debd487fe971..12b558c05384 100644 > > --- a/include/linux/atomic/atomic-instrumented.h > > +++ b/include/linux/atomic/atomic-instrumented.h > > @@ -1349,7 +1349,7 @@ atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new) > > > > /** > > * atomic_sub_and_test() - atomic subtract and test if zero with full ordering > > - * @i: int value to add > > + * @i: int value to subtract > > * @v: pointer to atomic_t > > Whoops; sorry about that. > > The atomic headers are generated, and this kerneldoc comment is > generated from the template in scripts/atomic/kerneldoc/sub_and_test Oh I see. Sorry, I wasn't aware of this. > > You'll need to modify that then run: > > sh scripts/atomic/gen-atomics.sh > > ... to regenerate all the affected instances of ${atomic}_sub_and_test() Ok, let me go do that. Thanks! > > Thanks, > Mark.