Re: [PATCH libcrypto 1/2] array_size: introduce min_array_size() function decoration
From: Linus Torvalds
Date: Tue Nov 18 2025 - 18:32:50 EST
On Tue, 18 Nov 2025 at 15:24, Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
>
> Anyway, I actually have a slight preference for just using 'static n'
> directly, without the unnecessary min_array_size() wrapper. But if
> other people prefer min_array_size(), that's fine with me too. At least
> this is what Linus asked for
> (https://lore.kernel.org/linux-crypto/CAHk-=wj6J5L5Y+oHc-i9BrDONpSbtt=iEemcyUm3dYnZ3pXxxg@xxxxxxxxxxxxxx/).
I wouldn't call that "asked for".
It was more a musing on how random that "static" syntax is and it's
likely incomprehensible to a lot of people - but also pointing out
that we already do have users of it, and saying that maybe it won't be
incomprehensible once we have a lot of users.
So I'm definitely not pushing for it.
But I do suspect it makes people understand what the code does more...
Linus