Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scripts/atomic: Fix kerneldoc spelling in try_cmpxchg()

Fix a typo in the kerneldoc comment template.

This changes 'occured' to 'occurred' in generated documentation.

Signed-off-by: oldzhu <oldrunner999@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260106040158.31461-1-oldrunner999@gmail.com

authored by

oldzhu and committed by
Peter Zijlstra
0e2036a0 c10d860e

+28 -28
+9 -9
include/linux/atomic/atomic-arch-fallback.h
··· 2121 2121 * 2122 2122 * Safe to use in noinstr code; prefer atomic_try_cmpxchg() elsewhere. 2123 2123 * 2124 - * Return: @true if the exchange occured, @false otherwise. 2124 + * Return: @true if the exchange occurred, @false otherwise. 2125 2125 */ 2126 2126 static __always_inline bool 2127 2127 raw_atomic_try_cmpxchg(atomic_t *v, int *old, int new) ··· 2155 2155 * 2156 2156 * Safe to use in noinstr code; prefer atomic_try_cmpxchg_acquire() elsewhere. 2157 2157 * 2158 - * Return: @true if the exchange occured, @false otherwise. 2158 + * Return: @true if the exchange occurred, @false otherwise. 2159 2159 */ 2160 2160 static __always_inline bool 2161 2161 raw_atomic_try_cmpxchg_acquire(atomic_t *v, int *old, int new) ··· 2189 2189 * 2190 2190 * Safe to use in noinstr code; prefer atomic_try_cmpxchg_release() elsewhere. 2191 2191 * 2192 - * Return: @true if the exchange occured, @false otherwise. 2192 + * Return: @true if the exchange occurred, @false otherwise. 2193 2193 */ 2194 2194 static __always_inline bool 2195 2195 raw_atomic_try_cmpxchg_release(atomic_t *v, int *old, int new) ··· 2222 2222 * 2223 2223 * Safe to use in noinstr code; prefer atomic_try_cmpxchg_relaxed() elsewhere. 2224 2224 * 2225 - * Return: @true if the exchange occured, @false otherwise. 2225 + * Return: @true if the exchange occurred, @false otherwise. 2226 2226 */ 2227 2227 static __always_inline bool 2228 2228 raw_atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new) ··· 4247 4247 * 4248 4248 * Safe to use in noinstr code; prefer atomic64_try_cmpxchg() elsewhere. 4249 4249 * 4250 - * Return: @true if the exchange occured, @false otherwise. 4250 + * Return: @true if the exchange occurred, @false otherwise. 4251 4251 */ 4252 4252 static __always_inline bool 4253 4253 raw_atomic64_try_cmpxchg(atomic64_t *v, s64 *old, s64 new) ··· 4281 4281 * 4282 4282 * Safe to use in noinstr code; prefer atomic64_try_cmpxchg_acquire() elsewhere. 4283 4283 * 4284 - * Return: @true if the exchange occured, @false otherwise. 4284 + * Return: @true if the exchange occurred, @false otherwise. 4285 4285 */ 4286 4286 static __always_inline bool 4287 4287 raw_atomic64_try_cmpxchg_acquire(atomic64_t *v, s64 *old, s64 new) ··· 4315 4315 * 4316 4316 * Safe to use in noinstr code; prefer atomic64_try_cmpxchg_release() elsewhere. 4317 4317 * 4318 - * Return: @true if the exchange occured, @false otherwise. 4318 + * Return: @true if the exchange occurred, @false otherwise. 4319 4319 */ 4320 4320 static __always_inline bool 4321 4321 raw_atomic64_try_cmpxchg_release(atomic64_t *v, s64 *old, s64 new) ··· 4348 4348 * 4349 4349 * Safe to use in noinstr code; prefer atomic64_try_cmpxchg_relaxed() elsewhere. 4350 4350 * 4351 - * Return: @true if the exchange occured, @false otherwise. 4351 + * Return: @true if the exchange occurred, @false otherwise. 4352 4352 */ 4353 4353 static __always_inline bool 4354 4354 raw_atomic64_try_cmpxchg_relaxed(atomic64_t *v, s64 *old, s64 new) ··· 4690 4690 } 4691 4691 4692 4692 #endif /* _LINUX_ATOMIC_FALLBACK_H */ 4693 - // b565db590afeeff0d7c9485ccbca5bb6e155749f 4693 + // 206314f82b8b73a5c3aa69cf7f35ac9e7b5d6b58
+13 -13
include/linux/atomic/atomic-instrumented.h
··· 1269 1269 * 1270 1270 * Unsafe to use in noinstr code; use raw_atomic_try_cmpxchg() there. 1271 1271 * 1272 - * Return: @true if the exchange occured, @false otherwise. 1272 + * Return: @true if the exchange occurred, @false otherwise. 1273 1273 */ 1274 1274 static __always_inline bool 1275 1275 atomic_try_cmpxchg(atomic_t *v, int *old, int new) ··· 1292 1292 * 1293 1293 * Unsafe to use in noinstr code; use raw_atomic_try_cmpxchg_acquire() there. 1294 1294 * 1295 - * Return: @true if the exchange occured, @false otherwise. 1295 + * Return: @true if the exchange occurred, @false otherwise. 1296 1296 */ 1297 1297 static __always_inline bool 1298 1298 atomic_try_cmpxchg_acquire(atomic_t *v, int *old, int new) ··· 1314 1314 * 1315 1315 * Unsafe to use in noinstr code; use raw_atomic_try_cmpxchg_release() there. 1316 1316 * 1317 - * Return: @true if the exchange occured, @false otherwise. 1317 + * Return: @true if the exchange occurred, @false otherwise. 1318 1318 */ 1319 1319 static __always_inline bool 1320 1320 atomic_try_cmpxchg_release(atomic_t *v, int *old, int new) ··· 1337 1337 * 1338 1338 * Unsafe to use in noinstr code; use raw_atomic_try_cmpxchg_relaxed() there. 1339 1339 * 1340 - * Return: @true if the exchange occured, @false otherwise. 1340 + * Return: @true if the exchange occurred, @false otherwise. 1341 1341 */ 1342 1342 static __always_inline bool 1343 1343 atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new) ··· 2847 2847 * 2848 2848 * Unsafe to use in noinstr code; use raw_atomic64_try_cmpxchg() there. 2849 2849 * 2850 - * Return: @true if the exchange occured, @false otherwise. 2850 + * Return: @true if the exchange occurred, @false otherwise. 2851 2851 */ 2852 2852 static __always_inline bool 2853 2853 atomic64_try_cmpxchg(atomic64_t *v, s64 *old, s64 new) ··· 2870 2870 * 2871 2871 * Unsafe to use in noinstr code; use raw_atomic64_try_cmpxchg_acquire() there. 2872 2872 * 2873 - * Return: @true if the exchange occured, @false otherwise. 2873 + * Return: @true if the exchange occurred, @false otherwise. 2874 2874 */ 2875 2875 static __always_inline bool 2876 2876 atomic64_try_cmpxchg_acquire(atomic64_t *v, s64 *old, s64 new) ··· 2892 2892 * 2893 2893 * Unsafe to use in noinstr code; use raw_atomic64_try_cmpxchg_release() there. 2894 2894 * 2895 - * Return: @true if the exchange occured, @false otherwise. 2895 + * Return: @true if the exchange occurred, @false otherwise. 2896 2896 */ 2897 2897 static __always_inline bool 2898 2898 atomic64_try_cmpxchg_release(atomic64_t *v, s64 *old, s64 new) ··· 2915 2915 * 2916 2916 * Unsafe to use in noinstr code; use raw_atomic64_try_cmpxchg_relaxed() there. 2917 2917 * 2918 - * Return: @true if the exchange occured, @false otherwise. 2918 + * Return: @true if the exchange occurred, @false otherwise. 2919 2919 */ 2920 2920 static __always_inline bool 2921 2921 atomic64_try_cmpxchg_relaxed(atomic64_t *v, s64 *old, s64 new) ··· 4425 4425 * 4426 4426 * Unsafe to use in noinstr code; use raw_atomic_long_try_cmpxchg() there. 4427 4427 * 4428 - * Return: @true if the exchange occured, @false otherwise. 4428 + * Return: @true if the exchange occurred, @false otherwise. 4429 4429 */ 4430 4430 static __always_inline bool 4431 4431 atomic_long_try_cmpxchg(atomic_long_t *v, long *old, long new) ··· 4448 4448 * 4449 4449 * Unsafe to use in noinstr code; use raw_atomic_long_try_cmpxchg_acquire() there. 4450 4450 * 4451 - * Return: @true if the exchange occured, @false otherwise. 4451 + * Return: @true if the exchange occurred, @false otherwise. 4452 4452 */ 4453 4453 static __always_inline bool 4454 4454 atomic_long_try_cmpxchg_acquire(atomic_long_t *v, long *old, long new) ··· 4470 4470 * 4471 4471 * Unsafe to use in noinstr code; use raw_atomic_long_try_cmpxchg_release() there. 4472 4472 * 4473 - * Return: @true if the exchange occured, @false otherwise. 4473 + * Return: @true if the exchange occurred, @false otherwise. 4474 4474 */ 4475 4475 static __always_inline bool 4476 4476 atomic_long_try_cmpxchg_release(atomic_long_t *v, long *old, long new) ··· 4493 4493 * 4494 4494 * Unsafe to use in noinstr code; use raw_atomic_long_try_cmpxchg_relaxed() there. 4495 4495 * 4496 - * Return: @true if the exchange occured, @false otherwise. 4496 + * Return: @true if the exchange occurred, @false otherwise. 4497 4497 */ 4498 4498 static __always_inline bool 4499 4499 atomic_long_try_cmpxchg_relaxed(atomic_long_t *v, long *old, long new) ··· 5050 5050 5051 5051 5052 5052 #endif /* _LINUX_ATOMIC_INSTRUMENTED_H */ 5053 - // f618ac667f868941a84ce0ab2242f1786e049ed4 5053 + // 9dd948d3012b22c4e75933a5172983f912e46439
+5 -5
include/linux/atomic/atomic-long.h
··· 1449 1449 * 1450 1450 * Safe to use in noinstr code; prefer atomic_long_try_cmpxchg() elsewhere. 1451 1451 * 1452 - * Return: @true if the exchange occured, @false otherwise. 1452 + * Return: @true if the exchange occurred, @false otherwise. 1453 1453 */ 1454 1454 static __always_inline bool 1455 1455 raw_atomic_long_try_cmpxchg(atomic_long_t *v, long *old, long new) ··· 1473 1473 * 1474 1474 * Safe to use in noinstr code; prefer atomic_long_try_cmpxchg_acquire() elsewhere. 1475 1475 * 1476 - * Return: @true if the exchange occured, @false otherwise. 1476 + * Return: @true if the exchange occurred, @false otherwise. 1477 1477 */ 1478 1478 static __always_inline bool 1479 1479 raw_atomic_long_try_cmpxchg_acquire(atomic_long_t *v, long *old, long new) ··· 1497 1497 * 1498 1498 * Safe to use in noinstr code; prefer atomic_long_try_cmpxchg_release() elsewhere. 1499 1499 * 1500 - * Return: @true if the exchange occured, @false otherwise. 1500 + * Return: @true if the exchange occurred, @false otherwise. 1501 1501 */ 1502 1502 static __always_inline bool 1503 1503 raw_atomic_long_try_cmpxchg_release(atomic_long_t *v, long *old, long new) ··· 1521 1521 * 1522 1522 * Safe to use in noinstr code; prefer atomic_long_try_cmpxchg_relaxed() elsewhere. 1523 1523 * 1524 - * Return: @true if the exchange occured, @false otherwise. 1524 + * Return: @true if the exchange occurred, @false otherwise. 1525 1525 */ 1526 1526 static __always_inline bool 1527 1527 raw_atomic_long_try_cmpxchg_relaxed(atomic_long_t *v, long *old, long new) ··· 1809 1809 } 1810 1810 1811 1811 #endif /* _LINUX_ATOMIC_LONG_H */ 1812 - // eadf183c3600b8b92b91839dd3be6bcc560c752d 1812 + // 4b882bf19018602c10816c52f8b4ae280adc887b
+1 -1
scripts/atomic/kerneldoc/try_cmpxchg
··· 11 11 * 12 12 * ${desc_noinstr} 13 13 * 14 - * Return: @true if the exchange occured, @false otherwise. 14 + * Return: @true if the exchange occurred, @false otherwise. 15 15 */ 16 16 EOF