Documentation: Kunit: add MODULE_LICENSE to sample code
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 30 May 2023 10:52:48 +0000 (19:52 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 31 May 2023 18:42:40 +0000 (12:42 -0600)
The sample code has Kconfig for tristate configuration. In the case, it
could be friendly to developers that the code has MODULE_LICENSE, since
the missing MODULE_LICENSE brings error to modpost when the code is built
as loadable kernel module.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Documentation/dev-tools/kunit/start.rst

index 9619a044093042ce2e0db11ca48a0499bbc89f70..a98235326bab0080df909365a185d4c9570ab8ab 100644 (file)
@@ -250,6 +250,8 @@ Now we are ready to write the test cases.
        };
        kunit_test_suite(misc_example_test_suite);
 
+       MODULE_LICENSE("GPL");
+
 2. Add the following lines to ``drivers/misc/Kconfig``:
 
 .. code-block:: kconfig