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.

doc: module: revert misconversions for MODULE_IMPORT_NS()

This reverts the misconversions introduced by commit cdd30ebb1b9f
("module: Convert symbol namespace to string literal").

The affected descriptions refer to MODULE_IMPORT_NS() tags in general,
rather than suggesting the use of the empty string ("") as the
namespace.

Fixes: cdd30ebb1b9f ("module: Convert symbol namespace to string literal")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Masahiro Yamada and committed by
Linus Torvalds
3727b1a7 62aa6f2e

+6 -6
+2 -2
Documentation/core-api/symbol-namespaces.rst
··· 106 106 [...] 107 107 108 108 109 - It is advisable to add the MODULE_IMPORT_NS("") statement close to other module 109 + It is advisable to add the MODULE_IMPORT_NS() statement close to other module 110 110 metadata definitions like MODULE_AUTHOR() or MODULE_LICENSE(). Refer to section 111 111 5. for a way to create missing import statements automatically. 112 112 ··· 128 128 Missing namespaces imports can easily be detected at build time. In fact, 129 129 modpost will emit a warning if a module uses a symbol from a namespace 130 130 without importing it. 131 - MODULE_IMPORT_NS("") statements will usually be added at a definite location 131 + MODULE_IMPORT_NS() statements will usually be added at a definite location 132 132 (along with other module meta data). To make the life of module authors (and 133 133 subsystem maintainers) easier, a script and make target is available to fixup 134 134 missing imports. Fixing missing imports can be done with::
+2 -2
Documentation/translations/it_IT/core-api/symbol-namespaces.rst
··· 107 107 [...] 108 108 109 109 110 - Si consiglia di posizionare la dichiarazione MODULE_IMPORT_NS("") vicino 110 + Si consiglia di posizionare la dichiarazione MODULE_IMPORT_NS() vicino 111 111 ai metadati del modulo come MODULE_AUTHOR() o MODULE_LICENSE(). Fate 112 112 riferimento alla sezione 5. per creare automaticamente le importazioni 113 113 mancanti. ··· 131 131 La mancanza di un'importazione può essere individuata facilmente al momento 132 132 della compilazione. Infatti, modpost emetterà un avviso se il modulo usa 133 133 un simbolo da uno spazio dei nomi che non è stato importato. 134 - La dichiarazione MODULE_IMPORT_NS("") viene solitamente aggiunta in un posto 134 + La dichiarazione MODULE_IMPORT_NS() viene solitamente aggiunta in un posto 135 135 ben definito (assieme agli altri metadati del modulo). Per facilitare 136 136 la vita di chi scrive moduli (e i manutentori di sottosistemi), esistono uno 137 137 script e un target make per correggere le importazioni mancanti. Questo può
+2 -2
Documentation/translations/zh_CN/core-api/symbol-namespaces.rst
··· 99 99 [...] 100 100 101 101 102 - 建议将 MODULE_IMPORT_NS("") 语句添加到靠近其他模块元数据定义的地方, 102 + 建议将 MODULE_IMPORT_NS() 语句添加到靠近其他模块元数据定义的地方, 103 103 如 MODULE_AUTHOR() 或 MODULE_LICENSE() 。关于自动创建缺失的导入 104 104 语句的方法,请参考第5节。 105 105 ··· 118 118 119 119 缺少命名空间的导入可以在构建时很容易被检测到。事实上,如果一个模块 120 120 使用了一个命名空间的符号而没有导入它,modpost会发出警告。 121 - MODULE_IMPORT_NS("")语句通常会被添加到一个明确的位置(和其他模块元 121 + MODULE_IMPORT_NS()语句通常会被添加到一个明确的位置(和其他模块元 122 122 数据一起)。为了使模块作者(和子系统维护者)的生活更加轻松,我们提 123 123 供了一个脚本和make目标来修复丢失的导入。修复丢失的导入可以用:: 124 124