diff mbox series

slub_kunit: Add missing MODULE_DESCRIPTION() to fix modpost warning

Message ID 20250407072153.871265-1-shivankg@amd.com (mailing list archive)
State New
Headers show
Series slub_kunit: Add missing MODULE_DESCRIPTION() to fix modpost warning | expand

Commit Message

Shivank Garg April 7, 2025, 7:21 a.m. UTC
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@amd.com>
---
 lib/tests/slub_kunit.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Vlastimil Babka April 7, 2025, 8:25 a.m. UTC | #1
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@amd.com>

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@kernel.org/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");
diff mbox series

Patch

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");