Add kernel-doc header template for arch_${atomic}_read_acquire function family. Signed-off-by: Paul E. McKenney <paulmck@xxxxxxxxxx> Cc: Will Deacon <will@xxxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Boqun Feng <boqun.feng@xxxxxxxxx> Cc: Mark Rutland <mark.rutland@xxxxxxx> --- include/linux/atomic/atomic-arch-fallback.h | 16 +++++++++++++++- scripts/atomic/fallbacks/read_acquire | 7 +++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/include/linux/atomic/atomic-arch-fallback.h b/include/linux/atomic/atomic-arch-fallback.h index 7ba75143c149..c3552b83bf49 100644 --- a/include/linux/atomic/atomic-arch-fallback.h +++ b/include/linux/atomic/atomic-arch-fallback.h @@ -240,6 +240,13 @@ #endif /* arch_try_cmpxchg64_local */ #ifndef arch_atomic_read_acquire +/** + * arch_atomic_read_acquire - Atomic load acquire + * @v: pointer of type atomic_t + * + * Atomically load from *@v with acquire ordering, returning the value + * loaded. + */ static __always_inline int arch_atomic_read_acquire(const atomic_t *v) { @@ -1695,6 +1702,13 @@ arch_atomic_dec_if_positive(atomic_t *v) #endif #ifndef arch_atomic64_read_acquire +/** + * arch_atomic64_read_acquire - Atomic load acquire + * @v: pointer of type atomic64_t + * + * Atomically load from *@v with acquire ordering, returning the value + * loaded. + */ static __always_inline s64 arch_atomic64_read_acquire(const atomic64_t *v) { @@ -3146,4 +3160,4 @@ arch_atomic64_dec_if_positive(atomic64_t *v) #endif #endif /* _LINUX_ATOMIC_FALLBACK_H */ -// c46693a9f3b3ceacef003cd42764251148e3457d +// 96c8a3c4d13b12c9f3e0f715709c8af1653a7e79 diff --git a/scripts/atomic/fallbacks/read_acquire b/scripts/atomic/fallbacks/read_acquire index a0ea1d26e6b2..779f40c07018 100755 --- a/scripts/atomic/fallbacks/read_acquire +++ b/scripts/atomic/fallbacks/read_acquire @@ -1,4 +1,11 @@ cat <<EOF +/** + * arch_${atomic}_read_acquire - Atomic load acquire + * @v: pointer of type ${atomic}_t + * + * Atomically load from *@v with acquire ordering, returning the value + * loaded. + */ static __always_inline ${ret} arch_${atomic}_read_acquire(const ${atomic}_t *v) { -- 2.40.1