Re: [PATCH] slub_kunit: Add missing MODULE_DESCRIPTION() to fix modpost warning
From: Vlastimil Babka
Date: Mon Apr 07 2025 - 04:25:50 EST
On 4/7/25 09:21, Shivank Garg wrote:
> Fix a modpost warning due to the missing MODULE_DESCRIPTION() macro in
> slub_kunit.c:
>
> WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/slub_kunit.o
>
> Signed-off-by: Shivank Garg <shivankg@xxxxxxx>
Hi, AFAICS Arnd's fixes [1] for this and other modules is in -mm already.
[1]
https://lore.kernel.org/all/20250324173242.1501003-10-arnd@xxxxxxxxxx/T/#m265ef1255bed7e2ab47fbcf2242a2d98d4875417
> ---
> lib/tests/slub_kunit.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/lib/tests/slub_kunit.c b/lib/tests/slub_kunit.c
> index d47c472b0520..f1bc30be6503 100644
> --- a/lib/tests/slub_kunit.c
> +++ b/lib/tests/slub_kunit.c
> @@ -323,6 +323,8 @@ static struct kunit_suite test_suite = {
> .init = test_init,
> .test_cases = test_cases,
> };
> +
> kunit_test_suite(test_suite);
>
> +MODULE_DESCRIPTION("KUnit tests for SLUB allocator");
> MODULE_LICENSE("GPL");