module: add config option MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS
[sfrench/cifs-2.6.git] / init / Kconfig
index bd7d650d4a996c7c10d2349a340f52c1f99c1e49..cc28561288a7d7756bb5c408b88ab71be51519aa 100644 (file)
@@ -2119,6 +2119,19 @@ config MODULE_COMPRESS_XZ
 
 endchoice
 
+config MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS
+       bool "Allow loading of modules with missing namespace imports"
+       help
+         Symbols exported with EXPORT_SYMBOL_NS*() are considered exported in
+         a namespace. A module that makes use of a symbol exported with such a
+         namespace is required to import the namespace via MODULE_IMPORT_NS().
+         There is no technical reason to enforce correct namespace imports,
+         but it creates consistency between symbols defining namespaces and
+         users importing namespaces they make use of. This option relaxes this
+         requirement and lifts the enforcement when loading a module.
+
+         If unsure, say N.
+
 config TRIM_UNUSED_KSYMS
        bool "Trim unused exported kernel symbols"
        depends on MODULES && !UNUSED_SYMBOLS