summaryrefslogtreecommitdiff
path: root/scripts/atomic/fallbacks
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2023-05-02 16:29:40 -0700
committerPaul E. McKenney <paulmck@kernel.org>2023-05-10 10:45:33 -0700
commitca0a3dca2a24ee71b74e86b1aff5a0ea952ca88a (patch)
tree74630a0e687304879b1294d662fd83bb68666ac9 /scripts/atomic/fallbacks
parentc7398a52fdc83e28884d8ee4b2a225ce69f24107 (diff)
downloadlinux-next-ca0a3dca2a24ee71b74e86b1aff5a0ea952ca88a.tar.gz
locking/atomic: Add kernel-doc header for arch_${atomic}_${pfx}andnot${sfx}${order}
Add kernel-doc header template for arch_${atomic}_${pfx}andnot${sfx}${order} function family. [ paulmck: Apply feedback from Akira Yokosawa. ] Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Cc: Will Deacon <will@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Boqun Feng <boqun.feng@gmail.com> Cc: Mark Rutland <mark.rutland@arm.com>
Diffstat (limited to 'scripts/atomic/fallbacks')
-rwxr-xr-xscripts/atomic/fallbacks/andnot8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/atomic/fallbacks/andnot b/scripts/atomic/fallbacks/andnot
index 5a42f54a3595..9fbc0ce75a7c 100755
--- a/scripts/atomic/fallbacks/andnot
+++ b/scripts/atomic/fallbacks/andnot
@@ -1,4 +1,12 @@
cat <<EOF
+/**
+ * arch_${atomic}_${pfx}andnot${sfx}${order} - Atomic and-not
+ * @i: the quantity to and-not with *@v
+ * @v: pointer of type ${atomic}_t
+ *
+ * Atomically and-not @i with @v using ${docbook_order} ordering.
+ * returning ${docbook_oldnew} value.
+ */
static __always_inline ${ret}
arch_${atomic}_${pfx}andnot${sfx}${order}(${int} i, ${atomic}_t *v)
{