Re: [PATCH v6 4/4] mm: Use ARRAY_END() instead of open-coding it

From: SeongJae Park

Date: Sun Feb 08 2026 - 15:10:57 EST


On Thu, 11 Dec 2025 11:44:04 +0100 Alejandro Colomar <alx@xxxxxxxxxx> wrote:

> 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.
>
> Cc: Kees Cook <kees@xxxxxxxxxx>
> Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Alejandro Colomar <alx@xxxxxxxxxx>

Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>


Thanks,
SJ

[...]