Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3160988lqo; Wed, 15 May 2024 01:11:50 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWe0+JU0NYxQjDPVr5u0YNEsMmuCfdHJ4aPctz1xRtbEDIydmd7kJl5YJe6WaqOq+duXoTbhIVzBaxM7c2htJETyfwnsL8KPumWgX8jgw== X-Google-Smtp-Source: AGHT+IHZQZofE9fmu0nCmEf/I00LAopEKJxzPyrgDR+1QcyRlumoEZqZDNlKCzkc/EUOMX2NYW+1 X-Received: by 2002:ac8:5795:0:b0:43a:88a2:ac90 with SMTP id d75a77b69052e-43dfdb4e6a4mr218513541cf.34.1715760710244; Wed, 15 May 2024 01:11:50 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df549fb88si137110361cf.19.2024.05.15.01.11.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 01:11:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179633-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-179633-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179633-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DFA4F1C21A27 for ; Wed, 15 May 2024 08:11:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FF584C61C; Wed, 15 May 2024 08:11:40 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E2CB4EB20; Wed, 15 May 2024 08:11:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715760699; cv=none; b=WDEMffZ8B7TPCmExacgsp/u5gJc4EiZH5BpHTVw7EPB1eCl2jcukd5F2iTyky7RSMAGkJ8uB0o3yEiVohg7Ownoc9bLjWfe49Ag1NrVFy0HBydmKNikelQ+FxXzfabf3dSkwDAlwQ2O67a19tAjarMDKsHk1RK5i6PToB/p00xY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715760699; c=relaxed/simple; bh=DtvKFCA4qQyRirdQGXF1yoUoa6pALUM1ZE7B/dqBoB8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j4yPyl4sxwg+NRSNE4yrTZHVSqC/YDGdbd6FdPg5JD1Q1ehksQw3PUQxYoc3Rk1NBRRk/a3G0evt5JgHtAUFlLREl6MbGupo1XAwEbDR37sLMRZE6VICw7p/jyymlibC3PtmGgqSL9kbyjv2LtRWbs1gmz5YL5pB9n4oME/Qbn0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1A73B1007; Wed, 15 May 2024 01:12:01 -0700 (PDT) Received: from J2N7QTR9R3 (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BE5843F7A6; Wed, 15 May 2024 01:11:34 -0700 (PDT) Date: Wed, 15 May 2024 10:11:29 +0200 From: Mark Rutland To: Carlos Llamas 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: <20240514224625.3280818-1-cmllamas@google.com> 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 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() Thanks, Mark.