Skip to contentSkip to conversation

slub_kunit: Add missing MODULE_DESCRIPTION() to fix modpost warning

PATCH In review Shivank Garg 2 participants 2 messages Apr 7, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 slub_kunit: Add missing MODULE_DESCRIPTION() to fix modpost warning

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

---
 lib/tests/slub_kunit.c | 2 ++
 1 file changed, 2 insertions(+)
lib/tests/slub_kunit.c +2 -0
index d47c472b0520..f1bc30be6503 100644
@@ -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");
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Shivank Garg

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

Hi, AFAICS Arnd's fixes [1] for this and other modules is in -mm already.

[1]
https://lore.kernel.org/all/[email protected]/T/#m265ef1255bed7e2ab47fbcf2242a2d98d4875417

Quoted 17 lines
---
 lib/tests/slub_kunit.c | 2 ++
 1 file changed, 2 insertions(+)
lib/tests/slub_kunit.c +2 -0
index d47c472b0520..f1bc30be6503 100644
@@ -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");