Skip to contentSkip to conversation

kernel/sysctl-test: add MODULE_DESCRIPTION()

PATCH In review Jeff Johnson 2 participants 3 messages May 29, 2024 – Jun 4, 2024

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

PATCH 1/1 kernel/sysctl-test: add MODULE_DESCRIPTION()

Fix the 'make W=1' warning:
WARNING: modpost: missing MODULE_DESCRIPTION() in kernel/sysctl-test.o

---
 kernel/sysctl-test.c | 1 +
 1 file changed, 1 insertion(+)
kernel/sysctl-test.c +1 -0
index 6ef887c19c48..92f94ea28957 100644
@@ -388,4 +388,5 @@ static struct kunit_suite sysctl_test_suite = {
 
 kunit_test_suites(&sysctl_test_suite);
 
+MODULE_DESCRIPTION("KUnit test of proc sysctl");
 MODULE_LICENSE("GPL v2");

---
base-commit: 4a4be1ad3a6efea16c56615f31117590fd881358
change-id: 20240529-md-kernel-sysctl-test-2bbad793ac62

Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Jeff Johnson

Fix the 'make W=1' warning:
WARNING: modpost: missing MODULE_DESCRIPTION() in kernel/sysctl-test.o

---
 kernel/sysctl-test.c | 1 +
 1 file changed, 1 insertion(+)
kernel/sysctl-test.c +0 -0
index 6ef887c19c48..92f94ea28957 100644

kernel/sysctl-test.c static struct kunit_suite sysctl_test_suite = { · line 391

Quoted 4 lines
kernel/sysctl-test.c +1 -0
@@ -388,4 +388,5 @@ static struct kunit_suite sysctl_test_suite = {
 
 kunit_test_suites(&sysctl_test_suite);
 
+MODULE_DESCRIPTION("KUnit test of proc sysctl");

thx

Quoted 6 lines
kernel/sysctl-test.c +0 -1
 MODULE_LICENSE("GPL v2");
 
---

base-commit: 4a4be1ad3a6efea16c56615f31117590fd881358
change-id: 20240529-md-kernel-sysctl-test-2bbad793ac62

Signature · 1 line
Joel Granados
#2 lore raw
In reply to Jeff Johnson
Quoted 2 lines · Jeff Johnson

Fix the 'make W=1' warning:
WARNING: modpost: missing MODULE_DESCRIPTION() in kernel/sysctl-test.o

I changed the message to this
"""
sysctl: Add module description to sysctl-testing

Added a module description to sysctl Kunit self test module to fix the 'make W=1' warning (" WARNING: modpost: missing MODULE_DESCRIPTION() in kernel/sysctl-test.o")
"""

Quoted 21 lines
---
 kernel/sysctl-test.c | 1 +
 1 file changed, 1 insertion(+)
kernel/sysctl-test.c +1 -1
index 6ef887c19c48..92f94ea28957 100644
@@ -388,4 +388,5 @@ static struct kunit_suite sysctl_test_suite = {
 
 kunit_test_suites(&sysctl_test_suite);
 
+MODULE_DESCRIPTION("KUnit test of proc sysctl");
 MODULE_LICENSE("GPL v2");
 
---

base-commit: 4a4be1ad3a6efea16c56615f31117590fd881358
change-id: 20240529-md-kernel-sysctl-test-2bbad793ac62

Signature · 1 line
Joel Granados