]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Documentation: kunit: Correct MODULE_IMPORT_NS() syntax
authorBrian Norris <briannorris@chromium.org>
Mon, 16 Jun 2025 21:16:33 +0000 (14:16 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 17 Jun 2025 14:42:48 +0000 (08:42 -0600)
The argument should be the string "EXPORTED_FOR_KUNIT_TESTING", not a
bare identifier.

Link: https://lore.kernel.org/r/20250616211637.111358-1-briannorris@chromium.org
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Documentation/dev-tools/kunit/usage.rst

index 038f480074fd7aaa1f8e1b344bc74bf3426cc173..066ecda1dd98e73a01d50545e79c38a99a3e05a2 100644 (file)
@@ -699,7 +699,7 @@ the template below.
        #include <kunit/visibility.h>
        #include <my_file.h>
        ...
-       MODULE_IMPORT_NS(EXPORTED_FOR_KUNIT_TESTING);
+       MODULE_IMPORT_NS("EXPORTED_FOR_KUNIT_TESTING");
        ...
        // Use do_interesting_thing() in tests