Skip to content

Commit bbc5332

Browse files
committed
Merge tag 'locking-urgent-2024-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull locking doc fix from Ingo Molnar: "Fix typos in the kerneldoc of some of the atomic APIs" * tag 'locking-urgent-2024-06-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: locking/atomic: scripts: fix ${atomic}_sub_and_test() kerneldoc
2 parents dc772f8 + f92a59f commit bbc5332

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

include/linux/atomic/atomic-arch-fallback.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,7 @@ raw_atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new)
22422242

22432243
/**
22442244
* raw_atomic_sub_and_test() - atomic subtract and test if zero with full ordering
2245-
* @i: int value to add
2245+
* @i: int value to subtract
22462246
* @v: pointer to atomic_t
22472247
*
22482248
* 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)
43684368

43694369
/**
43704370
* raw_atomic64_sub_and_test() - atomic subtract and test if zero with full ordering
4371-
* @i: s64 value to add
4371+
* @i: s64 value to subtract
43724372
* @v: pointer to atomic64_t
43734373
*
43744374
* Atomically updates @v to (@v - @i) with full ordering.
@@ -4690,4 +4690,4 @@ raw_atomic64_dec_if_positive(atomic64_t *v)
46904690
}
46914691

46924692
#endif /* _LINUX_ATOMIC_FALLBACK_H */
4693-
// 14850c0b0db20c62fdc78ccd1d42b98b88d76331
4693+
// b565db590afeeff0d7c9485ccbca5bb6e155749f

include/linux/atomic/atomic-instrumented.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new)
13491349

13501350
/**
13511351
* atomic_sub_and_test() - atomic subtract and test if zero with full ordering
1352-
* @i: int value to add
1352+
* @i: int value to subtract
13531353
* @v: pointer to atomic_t
13541354
*
13551355
* Atomically updates @v to (@v - @i) with full ordering.
@@ -2927,7 +2927,7 @@ atomic64_try_cmpxchg_relaxed(atomic64_t *v, s64 *old, s64 new)
29272927

29282928
/**
29292929
* atomic64_sub_and_test() - atomic subtract and test if zero with full ordering
2930-
* @i: s64 value to add
2930+
* @i: s64 value to subtract
29312931
* @v: pointer to atomic64_t
29322932
*
29332933
* 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)
45054505

45064506
/**
45074507
* atomic_long_sub_and_test() - atomic subtract and test if zero with full ordering
4508-
* @i: long value to add
4508+
* @i: long value to subtract
45094509
* @v: pointer to atomic_long_t
45104510
*
45114511
* Atomically updates @v to (@v - @i) with full ordering.
@@ -5050,4 +5050,4 @@ atomic_long_dec_if_positive(atomic_long_t *v)
50505050

50515051

50525052
#endif /* _LINUX_ATOMIC_INSTRUMENTED_H */
5053-
// ce5b65e0f1f8a276268b667194581d24bed219d4
5053+
// 8829b337928e9508259079d32581775ececd415b

include/linux/atomic/atomic-long.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ raw_atomic_long_try_cmpxchg_relaxed(atomic_long_t *v, long *old, long new)
15351535

15361536
/**
15371537
* raw_atomic_long_sub_and_test() - atomic subtract and test if zero with full ordering
1538-
* @i: long value to add
1538+
* @i: long value to subtract
15391539
* @v: pointer to atomic_long_t
15401540
*
15411541
* Atomically updates @v to (@v - @i) with full ordering.
@@ -1809,4 +1809,4 @@ raw_atomic_long_dec_if_positive(atomic_long_t *v)
18091809
}
18101810

18111811
#endif /* _LINUX_ATOMIC_LONG_H */
1812-
// 1c4a26fc77f345342953770ebe3c4d08e7ce2f9a
1812+
// eadf183c3600b8b92b91839dd3be6bcc560c752d

scripts/atomic/kerneldoc/sub_and_test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cat <<EOF
22
/**
33
* ${class}${atomicname}() - atomic subtract and test if zero with ${desc_order} ordering
4-
* @i: ${int} value to add
4+
* @i: ${int} value to subtract
55
* @v: pointer to ${atomic}_t
66
*
77
* Atomically updates @v to (@v - @i) with ${desc_order} ordering.

0 commit comments

Comments
 (0)