summaryrefslogtreecommitdiffstats
path: root/init/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'init/Kconfig')
-rw-r--r--init/Kconfig33
1 files changed, 30 insertions, 3 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 058ba4e74250..57123594a7ca 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -2047,7 +2047,6 @@ config MODULE_SRCVERSION_ALL
2047 2047
2048config MODULE_SIG 2048config MODULE_SIG
2049 bool "Module signature verification" 2049 bool "Module signature verification"
2050 depends on MODULES
2051 select SYSTEM_DATA_VERIFICATION 2050 select SYSTEM_DATA_VERIFICATION
2052 help 2051 help
2053 Check modules for valid signatures upon load: the signature 2052 Check modules for valid signatures upon load: the signature
@@ -2124,7 +2123,6 @@ config MODULE_SIG_HASH
2124 2123
2125config MODULE_COMPRESS 2124config MODULE_COMPRESS
2126 bool "Compress modules on installation" 2125 bool "Compress modules on installation"
2127 depends on MODULES
2128 help 2126 help
2129 2127
2130 Compresses kernel modules when 'make modules_install' is run; gzip or 2128 Compresses kernel modules when 'make modules_install' is run; gzip or
@@ -2160,9 +2158,38 @@ config MODULE_COMPRESS_XZ
2160 2158
2161endchoice 2159endchoice
2162 2160
2161config MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS
2162 bool "Allow loading of modules with missing namespace imports"
2163 help
2164 Symbols exported with EXPORT_SYMBOL_NS*() are considered exported in
2165 a namespace. A module that makes use of a symbol exported with such a
2166 namespace is required to import the namespace via MODULE_IMPORT_NS().
2167 There is no technical reason to enforce correct namespace imports,
2168 but it creates consistency between symbols defining namespaces and
2169 users importing namespaces they make use of. This option relaxes this
2170 requirement and lifts the enforcement when loading a module.
2171
2172 If unsure, say N.
2173
2174config UNUSED_SYMBOLS
2175 bool "Enable unused/obsolete exported symbols"
2176 default y if X86
2177 help
2178 Unused but exported symbols make the kernel needlessly bigger. For
2179 that reason most of these unused exports will soon be removed. This
2180 option is provided temporarily to provide a transition period in case
2181 some external kernel module needs one of these symbols anyway. If you
2182 encounter such a case in your module, consider if you are actually
2183 using the right API. (rationale: since nobody in the kernel is using
2184 this in a module, there is a pretty good chance it's actually the
2185 wrong interface to use). If you really need the symbol, please send a
2186 mail to the linux kernel mailing list mentioning the symbol and why
2187 you really need it, and what the merge plan to the mainline kernel for
2188 your module is.
2189
2163config TRIM_UNUSED_KSYMS 2190config TRIM_UNUSED_KSYMS
2164 bool "Trim unused exported kernel symbols" 2191 bool "Trim unused exported kernel symbols"
2165 depends on MODULES && !UNUSED_SYMBOLS 2192 depends on !UNUSED_SYMBOLS
2166 help 2193 help
2167 The kernel and some modules make many symbols available for 2194 The kernel and some modules make many symbols available for
2168 other modules to use via EXPORT_SYMBOL() and variants. Depending 2195 other modules to use via EXPORT_SYMBOL() and variants. Depending