Skip to content

Commit 3008178

Browse files
ukleinekJonathan Corbet
authored andcommitted
doc: module: Fix documented type of namespace
Since commit cdd30eb ("module: Convert symbol namespace to string literal") the namespace has to be a string. Fix accordingly. Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/6fe15069c01b31aaa68c6224bec2df9f4a449858.1733305665.git.ukleinek@kernel.org Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 769b837 commit 3008178

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/core-api/symbol-namespaces.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ entries.
4141
In addition to the macros EXPORT_SYMBOL() and EXPORT_SYMBOL_GPL(), that allow
4242
exporting of kernel symbols to the kernel symbol table, variants of these are
4343
available to export symbols into a certain namespace: EXPORT_SYMBOL_NS() and
44-
EXPORT_SYMBOL_NS_GPL(). They take one additional argument: the namespace.
45-
Please note that due to macro expansion that argument needs to be a
46-
preprocessor symbol. E.g. to export the symbol ``usb_stor_suspend`` into the
44+
EXPORT_SYMBOL_NS_GPL(). They take one additional argument: the namespace as a
45+
string constant. Note that this string must not contain whitespaces.
46+
E.g. to export the symbol ``usb_stor_suspend`` into the
4747
namespace ``USB_STORAGE``, use::
4848

4949
EXPORT_SYMBOL_NS(usb_stor_suspend, "USB_STORAGE");

0 commit comments

Comments
 (0)