Skip to content

Commit 76ee96d

Browse files
computersforpeaceshuahkh
authored andcommitted
Documentation: kunit: Correct MODULE_IMPORT_NS() syntax
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>
1 parent 19272b3 commit 76ee96d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/dev-tools/kunit/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ the template below.
699699
#include <kunit/visibility.h>
700700
#include <my_file.h>
701701
...
702-
MODULE_IMPORT_NS(EXPORTED_FOR_KUNIT_TESTING);
702+
MODULE_IMPORT_NS("EXPORTED_FOR_KUNIT_TESTING");
703703
...
704704
// Use do_interesting_thing() in tests
705705

0 commit comments

Comments
 (0)