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

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Brian Norris and committed by
Shuah Khan
76ee96d3 19272b37

+1 -1
+1 -1
Documentation/dev-tools/kunit/usage.rst
··· 699 699 #include <kunit/visibility.h> 700 700 #include <my_file.h> 701 701 ... 702 - MODULE_IMPORT_NS(EXPORTED_FOR_KUNIT_TESTING); 702 + MODULE_IMPORT_NS("EXPORTED_FOR_KUNIT_TESTING"); 703 703 ... 704 704 // Use do_interesting_thing() in tests 705 705