Re: [PATCH v5 2/2] scanf: break kunit into test cases

From: Tamir Duberstein
Date: Mon Feb 10 2025 - 11:36:20 EST


On Mon, Feb 10, 2025 at 11:27 AM Geert Uytterhoeven
<geert@xxxxxxxxxxxxxx> wrote:
>
> > [...]
> >
> > -static char *test_buffer;
> > -static char *fmt_buffer;
> > +static char test_buffer[BUF_SIZE];
> > +static char fmt_buffer[BUF_SIZE];
>
> Why? This wastes 2 KiB of memory when the test is not running.

It's a fair point. I guess I'll respin v6 after all and go back to kmalloc.

Thanks for reviewing!