Documentation: kunit: fix argument of MODULE_IMPORT_NS()
Subsystems (4)
PATCH 1/1 Documentation: kunit: fix argument of MODULE_IMPORT_NS()
The argument to MODULE_IMPORT_NS() should be a string literal. See commit cdd30ebb1b9f ("module: Convert symbol namespace to string literal")
Fixes d208025db6d6 ("Documentation: kunit: improve example on testing static functions")
Signed-off-by Thomas Weißschuh <[email protected]>
--- Documentation/dev-tools/kunit/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/dev-tools/kunit/usage.rst +1 -1
@@ -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
---
base-commit: f09079bd04a924c72d555cd97942d5f8d7eca98c
change-id: 20250611-kunit-example-d195e41c0b34
Best regards,
Signature · 1 line
Thomas Weißschuh <[email protected]>