diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-12-30 15:23:59 +0100 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2025-01-09 12:36:55 -0700 |
commit | 3008178ef3714c41dee1d49191cfc66726f680d9 (patch) | |
tree | 87a8deb49e93afb321acbf78b27aed2653be37dc | |
parent | 769b83735d84022142b0d6c120f08c377fed9df5 (diff) | |
download | lwn-3008178ef3714c41dee1d49191cfc66726f680d9.tar.gz lwn-3008178ef3714c41dee1d49191cfc66726f680d9.zip |
doc: module: Fix documented type of namespace
Since commit cdd30ebb1b9f ("module: Convert symbol namespace to string
literal") the namespace has to be a string. Fix accordingly.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/6fe15069c01b31aaa68c6224bec2df9f4a449858.1733305665.git.ukleinek@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20241230142357.3203913-5-u.kleine-koenig@baylibre.com
-rw-r--r-- | Documentation/core-api/symbol-namespaces.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/core-api/symbol-namespaces.rst b/Documentation/core-api/symbol-namespaces.rst index 27a9cccc792c..473d025657fd 100644 --- a/Documentation/core-api/symbol-namespaces.rst +++ b/Documentation/core-api/symbol-namespaces.rst @@ -41,9 +41,9 @@ entries. In addition to the macros EXPORT_SYMBOL() and EXPORT_SYMBOL_GPL(), that allow exporting of kernel symbols to the kernel symbol table, variants of these are available to export symbols into a certain namespace: EXPORT_SYMBOL_NS() and -EXPORT_SYMBOL_NS_GPL(). They take one additional argument: the namespace. -Please note that due to macro expansion that argument needs to be a -preprocessor symbol. E.g. to export the symbol ``usb_stor_suspend`` into the +EXPORT_SYMBOL_NS_GPL(). They take one additional argument: the namespace as a +string constant. Note that this string must not contain whitespaces. +E.g. to export the symbol ``usb_stor_suspend`` into the namespace ``USB_STORAGE``, use:: EXPORT_SYMBOL_NS(usb_stor_suspend, "USB_STORAGE"); |