[PATCH] selftests: kallsyms: add MODULE_DESCRIPTION

Arnd Bergmann posted 1 patch 3 weeks, 6 days ago
lib/tests/module/gen_test_kallsyms.sh | 1 +
1 file changed, 1 insertion(+)
[PATCH] selftests: kallsyms: add MODULE_DESCRIPTION
Posted by Arnd Bergmann 3 weeks, 6 days ago
From: Arnd Bergmann <arnd@arndb.de>

The newly added test script creates modules that are lacking
a description line in order to build cleanly:

WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/module/test_kallsyms_a.o
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/module/test_kallsyms_b.o
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/module/test_kallsyms_c.o
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/module/test_kallsyms_d.o

Fixes: 84b4a51fce4c ("selftests: add new kallsyms selftests")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 lib/tests/module/gen_test_kallsyms.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/tests/module/gen_test_kallsyms.sh b/lib/tests/module/gen_test_kallsyms.sh
index e85f10dc11bd..ae5966f1f904 100755
--- a/lib/tests/module/gen_test_kallsyms.sh
+++ b/lib/tests/module/gen_test_kallsyms.sh
@@ -99,6 +99,7 @@ module_exit(auto_test_module_exit);
 
 MODULE_AUTHOR("Luis Chamberlain <mcgrof@kernel.org>");
 MODULE_LICENSE("GPL");
+MODULE_DESCRIPTION("Test module for kallsyms");
 ____END_MODULE
 }
 
-- 
2.39.5
Re: [PATCH] selftests: kallsyms: add MODULE_DESCRIPTION
Posted by Luis Chamberlain 3 weeks, 6 days ago
On Mon, Oct 28, 2024 at 04:29:54PM +0000, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> The newly added test script creates modules that are lacking
> a description line in order to build cleanly:
> 
> WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/module/test_kallsyms_a.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/module/test_kallsyms_b.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/module/test_kallsyms_c.o
> WARNING: modpost: missing MODULE_DESCRIPTION() in lib/tests/module/test_kallsyms_d.o
> 
> Fixes: 84b4a51fce4c ("selftests: add new kallsyms selftests")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Applied and pushed, thanks!

  Luis