Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp317096lqr; Wed, 5 Jun 2024 07:04:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpozbKB6MDqXVuEv5+2MkSFf6y6HR8HOsmq4qtMx00UvQQ3mQSFK/JASXBgqCi5CeDCAZyNV0eYdMf9V5mpGtcUJnXGUWHjWBMMXxvDw== X-Google-Smtp-Source: AGHT+IHNAmHfcFQkPSvC4ULnKRrL7T/kfZfEen32XtCCYRRlutTfv/O9i+LnpvoVufe2JDIYSwA4 X-Received: by 2002:a50:99d8:0:b0:579:e27a:ff6a with SMTP id 4fb4d7f45d1cf-57a8bc9aa68mr2036479a12.28.1717596258349; Wed, 05 Jun 2024 07:04:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717596258; cv=pass; d=google.com; s=arc-20160816; b=Yt90smtY+VnMUBa4mviD0AfY4C4ycXGUQVtmu9X98cIdVghS/S+HvV6RqLx8ouemv2 QFF+47F09ExXMxr+P5R+4Z4kQs+FzEX0ZHB71uUvgAxIRae8tppEgL6J/STjiom71JO+ A2IzdskxgfnU8ZjvAuxHE/FQ+f1pe0Tg35Y8cGXywAy6K4QtORohHxgaGfKVK+IjwB6k 96inm4vCWoLhk6X1EvKYZhBQvFIVxekwiMatXATwAEOiALw0EL7B7cYtRULWE/vQY8T5 puUE26yg/QiCIr/Kc9THFK1djd2xNb16hjoKl+I8rGv5IZBVXnb7a8P3zTOCie4fo2j2 wuVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=brOKJEgAwoIaoK6tDtQPbkLIQHkKhKhj0UiOZee1Xsk=; fh=4O6c++rFi6kjvgrZ8soKHHfAR+d3yFYz1l/pFEn54t0=; b=IPkcnIHETb02m8xmp+fkNY7ruuPjUkTCO40Snm2egss2vfIHVF/a0ga1TSP7z3wC4R uaYd2sEEMGcAnSLNWtfTX9j3jvMBeonpNkl4iOHS1fFf9cPQudLQQI48BchXlUXpyh3T O/kSQPMk8QRHd0llpCEeDetCHXGTvnGVzd3k8/L8Ec8s8gBqwV1bFyb461d9vK7mMxUK URU52r1pLxOwUmG9PtpBcX0iq+1g9w6NblE4HLGNOTaBZ2uEO7Xv/EgoRXfLsOO6Cae5 yYIrg1zCMk0/lvfqM/Lar7rOGSglPUO0x5gNAz9eB4LUqHq5hybAg5JLzbQBElef0f33 Waow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gGPUtNiT; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-202749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a87c1168asi1400702a12.210.2024.06.05.07.04.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 07:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gGPUtNiT; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-202749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.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 DF1581F2289C for ; Wed, 5 Jun 2024 14:04:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E5A517552; Wed, 5 Jun 2024 14:04:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gGPUtNiT"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0hsE4Uci" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 CDEAC257B; Wed, 5 Jun 2024 14:04:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717596247; cv=none; b=tdvBB2QhFDAI10zwv/qbKTRP+GJuIgIEp03nDdb9FMMF0ufzl23Gm0wIg+JCoV3w9YBsdLiOzrDvMt8opJIrypJ8CHDLFXNcqMDBPwNfIVi3SuVMQlwMQ9nwNxtuXebVwi/TIiJv+1n4pWkblnaX/EpQy1vodeGE7AN1bClz8kE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717596247; c=relaxed/simple; bh=Fb0Q2ZcUDq32sPgcolecMF/mxztpDjuHvr1sFl+gII0=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=j++xkCu2EteMuGxr1qH4tk5mv57iELHHuQBxCW/wONj+7wWblruwYGywJNUhIcGNF2yxvqIsyZ0kB3buSAnCzD1aTsCXQDaCCFbZeY14LIJD0lqGjw8JojMvbtpZvRGA0hn885QT9PBZJcO2kH3mPBIdWqBt/sdlfV8gIDd1ibw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=gGPUtNiT; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0hsE4Uci; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 05 Jun 2024 14:04:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1717596243; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=brOKJEgAwoIaoK6tDtQPbkLIQHkKhKhj0UiOZee1Xsk=; b=gGPUtNiT0giF2y2bJUAXiI3WBgso7VACVPKs3PBAR/k9Q+LVP8tq48snr0BkyXIVUv2YH+ CxHs1sotySoV9mTbVE28OC868bBj0KwFe585LKHDBwFSp9SG28kyVBSAPylelexRE3mgZ6 13QlHb3nM8y/fRjQU5uYN+g1ALA8Hwi2lorVtHI3CFQIe4WjMDTw33ivQerpK3+zdyUPr9 HBWWCENcXliFOsuqpTpaKIlIl6+T7L4tv6wMZ82/lbpfIgBMDrdb1JzxnU2ompdI9Q+L4H m0UVq5fLLtpuij1B2/RCw7DVqOQPeQzMNQhv7KW5Nbo38nk5f0noYDMPZeRbYA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1717596243; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=brOKJEgAwoIaoK6tDtQPbkLIQHkKhKhj0UiOZee1Xsk=; b=0hsE4Uciqavfv5RV2aKRws+UbO5QjRVJYUfjTfhz/VKIzKAEnRw3E5AIDdd6eN3o5bp53S wdqhZ3GLB1S7OfAw== From: "tip-bot2 for Carlos Llamas" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/urgent] locking/atomic: scripts: fix ${atomic}_sub_and_test() kerneldoc Cc: Mark Rutland , Carlos Llamas , "Peter Zijlstra (Intel)" , Kees Cook , stable@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240515133844.3502360-1-cmllamas@google.com> References: <20240515133844.3502360-1-cmllamas@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171759624257.10875.11429140430350503529.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the locking/urgent branch of tip: Commit-ID: f92a59f6d12e31ead999fee9585471b95a8ae8a3 Gitweb: https://git.kernel.org/tip/f92a59f6d12e31ead999fee9585471b95a8ae8a3 Author: Carlos Llamas AuthorDate: Wed, 15 May 2024 13:37:10 Committer: Peter Zijlstra CommitterDate: Wed, 05 Jun 2024 15:52:34 +02:00 locking/atomic: scripts: fix ${atomic}_sub_and_test() kerneldoc For ${atomic}_sub_and_test() the @i parameter is the value to subtract, not add. Fix the typo in the kerneldoc template and generate the headers with this update. Fixes: ad8110706f38 ("locking/atomic: scripts: generate kerneldoc comments") Suggested-by: Mark Rutland Signed-off-by: Carlos Llamas Signed-off-by: Peter Zijlstra (Intel) Acked-by: Mark Rutland Reviewed-by: Kees Cook Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20240515133844.3502360-1-cmllamas@google.com --- include/linux/atomic/atomic-arch-fallback.h | 6 +++--- include/linux/atomic/atomic-instrumented.h | 8 ++++---- include/linux/atomic/atomic-long.h | 4 ++-- scripts/atomic/kerneldoc/sub_and_test | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/linux/atomic/atomic-arch-fallback.h b/include/linux/atomic/atomic-arch-fallback.h index 956bcba..2f9d36b 100644 --- a/include/linux/atomic/atomic-arch-fallback.h +++ b/include/linux/atomic/atomic-arch-fallback.h @@ -2242,7 +2242,7 @@ raw_atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new) /** * raw_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 * * Atomically updates @v to (@v - @i) with full ordering. @@ -4368,7 +4368,7 @@ raw_atomic64_try_cmpxchg_relaxed(atomic64_t *v, s64 *old, s64 new) /** * raw_atomic64_sub_and_test() - atomic subtract and test if zero with full ordering - * @i: s64 value to add + * @i: s64 value to subtract * @v: pointer to atomic64_t * * Atomically updates @v to (@v - @i) with full ordering. @@ -4690,4 +4690,4 @@ raw_atomic64_dec_if_positive(atomic64_t *v) } #endif /* _LINUX_ATOMIC_FALLBACK_H */ -// 14850c0b0db20c62fdc78ccd1d42b98b88d76331 +// b565db590afeeff0d7c9485ccbca5bb6e155749f diff --git a/include/linux/atomic/atomic-instrumented.h b/include/linux/atomic/atomic-instrumented.h index debd487..9409a6d 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 * * Atomically updates @v to (@v - @i) with full ordering. @@ -2927,7 +2927,7 @@ atomic64_try_cmpxchg_relaxed(atomic64_t *v, s64 *old, s64 new) /** * atomic64_sub_and_test() - atomic subtract and test if zero with full ordering - * @i: s64 value to add + * @i: s64 value to subtract * @v: pointer to atomic64_t * * Atomically updates @v to (@v - @i) with full ordering. @@ -4505,7 +4505,7 @@ atomic_long_try_cmpxchg_relaxed(atomic_long_t *v, long *old, long new) /** * atomic_long_sub_and_test() - atomic subtract and test if zero with full ordering - * @i: long value to add + * @i: long value to subtract * @v: pointer to atomic_long_t * * Atomically updates @v to (@v - @i) with full ordering. @@ -5050,4 +5050,4 @@ atomic_long_dec_if_positive(atomic_long_t *v) #endif /* _LINUX_ATOMIC_INSTRUMENTED_H */ -// ce5b65e0f1f8a276268b667194581d24bed219d4 +// 8829b337928e9508259079d32581775ececd415b diff --git a/include/linux/atomic/atomic-long.h b/include/linux/atomic/atomic-long.h index 3ef844b..f86b29d 100644 --- a/include/linux/atomic/atomic-long.h +++ b/include/linux/atomic/atomic-long.h @@ -1535,7 +1535,7 @@ raw_atomic_long_try_cmpxchg_relaxed(atomic_long_t *v, long *old, long new) /** * raw_atomic_long_sub_and_test() - atomic subtract and test if zero with full ordering - * @i: long value to add + * @i: long value to subtract * @v: pointer to atomic_long_t * * Atomically updates @v to (@v - @i) with full ordering. @@ -1809,4 +1809,4 @@ raw_atomic_long_dec_if_positive(atomic_long_t *v) } #endif /* _LINUX_ATOMIC_LONG_H */ -// 1c4a26fc77f345342953770ebe3c4d08e7ce2f9a +// eadf183c3600b8b92b91839dd3be6bcc560c752d diff --git a/scripts/atomic/kerneldoc/sub_and_test b/scripts/atomic/kerneldoc/sub_and_test index d3760f7..96615e5 100644 --- a/scripts/atomic/kerneldoc/sub_and_test +++ b/scripts/atomic/kerneldoc/sub_and_test @@ -1,7 +1,7 @@ cat <