summaryrefslogtreecommitdiff
path: root/scripts/include/array_size.h
diff options
context:
space:
mode:
authorZhan Xusheng <zhanxusheng@xiaomi.com>2026-08-17 20:16:13 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-09-13 21:33:30 -0700
commit132a66fcc29a807022055419fabbd006b5f042a9 (patch)
tree21fe8d3453bbc4cfa88ecf3856d3c5479234d95b /scripts/include/array_size.h
parent0cc71ffa3734dfb806bccaec7b6fc32cfb4bbb8a (diff)
downloadlinux-next-132a66fcc29a807022055419fabbd006b5f042a9.tar.gz
linux-next-132a66fcc29a807022055419fabbd006b5f042a9.zip
minmax.h: update the stale 'x' versus 'ux' comment
Commit b280bb27a9f7 ("minmax.h: reduce the #define expansion of min(), max() and clamp()") made __sign_use(), __is_nonneg() and __types_ok() take only 'ux', and commit a5743f32baec ("minmax.h: use BUILD_BUG_ON_MSG() for the lo < hi test in clamp()") did the same for the clamp() limit test. The comment describing the old split was added one patch earlier and was never updated. 'ux' now carries the value check too, since __is_nonneg() tests it rather than the original expression, and nothing here looks at the value of 'x' any more: it is expanded only to initialise 'ux' and in the error message, as the first of those changes intended. Link: https://lore.kernel.org/20260817121613.3846511-1-zhanxusheng@xiaomi.com Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: David Laight <david.laight.linux@gmail.com> Cc: "H. Peter Anvin" <hpa@zytor.com>
Diffstat (limited to 'scripts/include/array_size.h')
0 files changed, 0 insertions, 0 deletions