[PATCH] list: test: add the missing MODULE_DESCRIPTION() macro

1 view
Skip to first unread message

Jeff Johnson

unread,
May 31, 2024, 7:58:48 PMMay 31
to David Gow, Andrew Morton, linux-...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, kernel-...@vger.kernel.org, Jeff Johnson
make allmodconfig && make W=1 C=1 reports:
WARNING: modpost: missing MODULE_DESCRIPTION() in lib/list-test.o

Add the missing invocation of the MODULE_DESCRIPTION() macro.

Signed-off-by: Jeff Johnson <quic_j...@quicinc.com>
---
lib/list-test.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/lib/list-test.c b/lib/list-test.c
index 0cc27de9cec8..e87b9941206a 100644
--- a/lib/list-test.c
+++ b/lib/list-test.c
@@ -1499,4 +1499,5 @@ static struct kunit_suite klist_test_module = {

kunit_test_suites(&list_test_module, &hlist_test_module, &klist_test_module);

+MODULE_DESCRIPTION("KUnit test for the Kernel Linked-list structures");
MODULE_LICENSE("GPL v2");

---
base-commit: b050496579632f86ee1ef7e7501906db579f3457
change-id: 20240531-md-lib-list-test-679830e738cc

David Gow

unread,
Jun 7, 2024, 3:04:57 AMJun 7
to Jeff Johnson, Andrew Morton, linux-...@vger.kernel.org, linux-k...@vger.kernel.org, kuni...@googlegroups.com, kernel-...@vger.kernel.org
On Sat, 1 Jun 2024 at 07:58, Jeff Johnson <quic_j...@quicinc.com> wrote:
>
> make allmodconfig && make W=1 C=1 reports:
> WARNING: modpost: missing MODULE_DESCRIPTION() in lib/list-test.o
>
> Add the missing invocation of the MODULE_DESCRIPTION() macro.
>
> Signed-off-by: Jeff Johnson <quic_j...@quicinc.com>
> ---

Nice catch, thanks.

Reviewed-by: David Gow <davi...@google.com>

Cheers,
-- David
Reply all
Reply to author
Forward
0 new messages