Re: [PATCHv3] gpio: virtio: remove one kcalloc
From: Linus Walleij
Date: Mon Mar 16 2026 - 10:01:55 EST
On Fri, Mar 13, 2026 at 7:09 AM Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote:
> I wonder if it is worth it anymore. Why combining allocations is better when we
> are ending up using more memory ?
For the same reason we are starting to use Rust in the kernel, despite
it sometimes will take more memory essentially. __counted_by() enforce
the same type of runtime size checks as Rust do on arrays.
Yours,
Linus Walleij