Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Takashi Sakamoto and committed by
Shuah Khan
6543960c b1eaa8b2

+2
+2
Documentation/dev-tools/kunit/start.rst
··· 250 250 }; 251 251 kunit_test_suite(misc_example_test_suite); 252 252 253 + MODULE_LICENSE("GPL"); 254 + 253 255 2. Add the following lines to ``drivers/misc/Kconfig``: 254 256 255 257 .. code-block:: kconfig