summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2023-05-30 12:52:48 +0200
committerShuah Khan <skhan@linuxfoundation.org>2023-05-31 20:42:40 +0200
commit6543960cd3bdb9fabdd0567ab02f4d1168ee96d9 (patch)
treed8dcae51fd156e8133f10113b09bc17debc7d818
parentkunit: Update kunit_print_ok_not_ok function (diff)
downloadlinux-6543960cd3bdb9fabdd0567ab02f4d1168ee96d9.tar.xz
linux-6543960cd3bdb9fabdd0567ab02f4d1168ee96d9.zip
Documentation: Kunit: add MODULE_LICENSE to sample code
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>
-rw-r--r--Documentation/dev-tools/kunit/start.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/dev-tools/kunit/start.rst b/Documentation/dev-tools/kunit/start.rst
index 9619a0440930..a98235326bab 100644
--- a/Documentation/dev-tools/kunit/start.rst
+++ b/Documentation/dev-tools/kunit/start.rst
@@ -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