Re: [PATCH] kunit: use kmemdup in kunit_filter_tests(), take suite as const

From: Brendan Higgins
Date: Wed Jul 06 2022 - 14:55:12 EST


On Mon, May 16, 2022 at 12:54 PM Daniel Latypov <dlatypov@xxxxxxxxxx> wrote:
>
> kmemdup() is easier than kmalloc() + memcpy(), per lkp bot.
>
> Also make the input `suite` as const since we're now always making
> copies after commit a127b154a8f2 ("kunit: tool: allow filtering test
> cases via glob").
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Daniel Latypov <dlatypov@xxxxxxxxxx>

Reviewed-by: Brendan Higgins <brendanhiggins@xxxxxxxxxx>