Skip to content

Commit

Permalink
kunit: add missing MODULE_DESCRIPTION() macros to lib/*.c
Browse files Browse the repository at this point in the history
make allmodconfig && make W=1 C=1 reports for lib/*kunit:
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/bitfield_kunit.o
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/checksum_kunit.o
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/cmdline_kunit.o
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/is_signed_type_kunit.o
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/overflow_kunit.o
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/stackinit_kunit.o

Add the missing invocations of the MODULE_DESCRIPTION() macro.

Link: https://lkml.kernel.org/r/20240601-md-lib-kunit-tests-v1-1-4493fe0032b9@quicinc.com
Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
Jeff Johnson authored and akpm00 committed Jun 25, 2024
1 parent 2e29fcb commit 1c5a13b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/bitfield_kunit.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,5 @@ static struct kunit_suite bitfields_test_suite = {
kunit_test_suites(&bitfields_test_suite);

MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>");
MODULE_DESCRIPTION("Test cases for bitfield helpers");
MODULE_LICENSE("GPL");
1 change: 1 addition & 0 deletions lib/checksum_kunit.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,4 +639,5 @@ static struct kunit_suite checksum_test_suite = {
kunit_test_suites(&checksum_test_suite);

MODULE_AUTHOR("Noah Goldstein <goldstein.w.n@gmail.com>");
MODULE_DESCRIPTION("Test cases csum_* APIs");
MODULE_LICENSE("GPL");
1 change: 1 addition & 0 deletions lib/cmdline_kunit.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,5 @@ static struct kunit_suite cmdline_test_suite = {
};
kunit_test_suite(cmdline_test_suite);

MODULE_DESCRIPTION("Test cases for API provided by cmdline.c");
MODULE_LICENSE("GPL");
1 change: 1 addition & 0 deletions lib/is_signed_type_kunit.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ static struct kunit_suite is_signed_type_test_suite = {

kunit_test_suite(is_signed_type_test_suite);

MODULE_DESCRIPTION("is_signed_type() KUnit test suite");
MODULE_LICENSE("Dual MIT/GPL");
1 change: 1 addition & 0 deletions lib/overflow_kunit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1237,4 +1237,5 @@ static struct kunit_suite overflow_test_suite = {

kunit_test_suite(overflow_test_suite);

MODULE_DESCRIPTION("Test cases for arithmetic overflow checks");
MODULE_LICENSE("Dual MIT/GPL");
1 change: 1 addition & 0 deletions lib/stackinit_kunit.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,4 +471,5 @@ static struct kunit_suite stackinit_test_suite = {

kunit_test_suites(&stackinit_test_suite);

MODULE_DESCRIPTION("Test cases for compiler-based stack variable zeroing");
MODULE_LICENSE("GPL");

0 comments on commit 1c5a13b

Please sign in to comment.