summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2025-12-11 13:44:04 +0300
committerAndrew Morton <akpm@linux-foundation.org>2026-01-21 06:44:20 +0300
commit61e9210e23921cf1176af23b426b9bad8b08ffff (patch)
tree897ce48620bf559751336c2476e9903249fcbd00 /include
parenta9e5620c9a9e237b3344702dec0839b89159a060 (diff)
downloadlinux-61e9210e23921cf1176af23b426b9bad8b08ffff.tar.xz
mm: use ARRAY_END() instead of open-coding it
There aren't any bugs in this code; it's purely cosmetic. By using ARRAY_END(), we prevent future issues, in case the code is modified; it has less moving parts. Also, it should be more readable (and perhaps more importantly, greppable), as there are several ways of writing an expression that gets the end of an array, which are unified by this API name. Link: https://lkml.kernel.org/r/2335917d123891fec074ab1b3acfb517cf14b5a7.1765449750.git.alx@kernel.org Signed-off-by: Alejandro Colomar <alx@kernel.org> Cc: Kees Cook <kees@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Alexander Potapenko <glider@google.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Christopher Bazley <chris.bazley.wg14@gmail.com> Cc: Dmitriy Vyukov <dvyukov@google.com> Cc: Jann Horn <jannh@google.com> Cc: Maciej W. Rozycki <macro@orcam.me.uk> Cc: Marco Elver <elver@google.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions