[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250616211637.111358-1-briannorris@chromium.org>
Date: Mon, 16 Jun 2025 14:16:33 -0700
From: Brian Norris <briannorris@...omium.org>
To: Brendan Higgins <brendan.higgins@...ux.dev>,
David Gow <davidgow@...gle.com>
Cc: linux-doc@...r.kernel.org,
kunit-dev@...glegroups.com,
linux-kernel@...r.kernel.org,
Rae Moar <rmoar@...gle.com>,
linux-kselftest@...r.kernel.org,
Brian Norris <briannorris@...omium.org>
Subject: [PATCH] Documentation: kunit: Correct MODULE_IMPORT_NS() syntax
The argument should be the string "EXPORTED_FOR_KUNIT_TESTING", not a
bare identifier.
Signed-off-by: Brian Norris <briannorris@...omium.org>
---
Documentation/dev-tools/kunit/usage.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/dev-tools/kunit/usage.rst b/Documentation/dev-tools/kunit/usage.rst
index 038f480074fd..066ecda1dd98 100644
--- a/Documentation/dev-tools/kunit/usage.rst
+++ b/Documentation/dev-tools/kunit/usage.rst
@@ -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
--
2.50.0.rc2.692.g299adb8693-goog
Powered by blists - more mailing lists