Skip to content

Commit

Permalink
KUnit: add missing MODULE_DESCRIPTION() macros for lib/*_test.ko
Browse files Browse the repository at this point in the history
make allmodconfig && make W=1 C=1 reports for lib/*_test.ko:
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/atomic64_test.o
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/hashtable_test.o

Add the missing invocations of the MODULE_DESCRIPTION() macro.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Jeff Johnson <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
Jeff Johnson authored and akpm00 committed Jun 25, 2024
1 parent e471831 commit f069e33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/atomic64_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,5 @@ static __exit void test_atomics_exit(void) {}
module_init(test_atomics_init);
module_exit(test_atomics_exit);

MODULE_DESCRIPTION("Testsuite for atomic64_t functions");
MODULE_LICENSE("GPL");
1 change: 1 addition & 0 deletions lib/hashtable_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,4 +314,5 @@ static struct kunit_suite hashtable_test_module = {

kunit_test_suites(&hashtable_test_module);

MODULE_DESCRIPTION("KUnit test for the Kernel Hashtable structures");
MODULE_LICENSE("GPL");

0 comments on commit f069e33

Please sign in to comment.