xref: /linux/lib/Kconfig (revision 637a642f5ca5e850186bb64ac75ebb0f124b458d)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Library configuration
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
64370aa4aSLai Jiangshanconfig BINARY_PRINTF
74370aa4aSLai Jiangshan	def_bool n
84370aa4aSLai Jiangshan
91da177e4SLinus Torvaldsmenu "Library routines"
101da177e4SLinus Torvalds
11f5e70d0fSDavid Woodhouseconfig RAID6_PQ
12f5e70d0fSDavid Woodhouse	tristate
13f5e70d0fSDavid Woodhouse
14be85f93aSDaniel Verkampconfig RAID6_PQ_BENCHMARK
15be85f93aSDaniel Verkamp	bool "Automatically choose fastest RAID6 PQ functions"
16be85f93aSDaniel Verkamp	depends on RAID6_PQ
17be85f93aSDaniel Verkamp	default y
18be85f93aSDaniel Verkamp	help
19be85f93aSDaniel Verkamp	  Benchmark all available RAID6 PQ functions on init and choose the
20be85f93aSDaniel Verkamp	  fastest one.
21be85f93aSDaniel Verkamp
22d2218d4eSMatti Vaittinenconfig LINEAR_RANGES
23d2218d4eSMatti Vaittinen	tristate
24d2218d4eSMatti Vaittinen
25554aae35SVladimir Olteanconfig PACKING
26554aae35SVladimir Oltean	bool "Generic bitfield packing and unpacking"
27554aae35SVladimir Oltean	default n
28554aae35SVladimir Oltean	help
29554aae35SVladimir Oltean	  This option provides the packing() helper function, which permits
30554aae35SVladimir Oltean	  converting bitfields between a CPU-usable representation and a
31554aae35SVladimir Oltean	  memory representation that can have any combination of these quirks:
32554aae35SVladimir Oltean	    - Is little endian (bytes are reversed within a 32-bit group)
33554aae35SVladimir Oltean	    - The least-significant 32-bit word comes first (within a 64-bit
34554aae35SVladimir Oltean	      group)
35554aae35SVladimir Oltean	    - The most significant bit of a byte is at its right (bit 0 of a
36554aae35SVladimir Oltean	      register description is numerically 2^7).
37554aae35SVladimir Oltean	  Drivers may use these helpers to match the bit indices as described
38554aae35SVladimir Oltean	  in the data sheets of the peripherals they are in control of.
39554aae35SVladimir Oltean
40554aae35SVladimir Oltean	  When in doubt, say N.
41554aae35SVladimir Oltean
42a5cfc1ecSAkinobu Mitaconfig BITREVERSE
43a5cfc1ecSAkinobu Mita	tristate
44a5cfc1ecSAkinobu Mita
45556d2f05SYalin Wangconfig HAVE_ARCH_BITREVERSE
46841c0090SChristoph Jaeger	bool
47556d2f05SYalin Wang	default n
48556d2f05SYalin Wang	help
499e522c0dSAndrew Morton	  This option enables the use of hardware bit-reversal instructions on
509e522c0dSAndrew Morton	  architectures which support such operations.
51556d2f05SYalin Wang
52e6226997SArnd Bergmannconfig ARCH_HAS_STRNCPY_FROM_USER
532922585bSDavid S. Miller	bool
542922585bSDavid S. Miller
55e6226997SArnd Bergmannconfig ARCH_HAS_STRNLEN_USER
56a08c5356SLinus Torvalds	bool
57a08c5356SLinus Torvalds
58e6226997SArnd Bergmannconfig GENERIC_STRNCPY_FROM_USER
59e6226997SArnd Bergmann	def_bool !ARCH_HAS_STRNCPY_FROM_USER
60e6226997SArnd Bergmann
61e6226997SArnd Bergmannconfig GENERIC_STRNLEN_USER
62e6226997SArnd Bergmann	def_bool !ARCH_HAS_STRNLEN_USER
63e6226997SArnd Bergmann
644cd5773aSAndy Shevchenkoconfig GENERIC_NET_UTILS
654cd5773aSAndy Shevchenko	bool
664cd5773aSAndy Shevchenko
672c64e9cbSAndy Shevchenkosource "lib/math/Kconfig"
682c64e9cbSAndy Shevchenko
69b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP
70b923650bSMichael S. Tsirkin	bool
71b923650bSMichael S. Tsirkin
7266eab4dfSMichael S. Tsirkinconfig GENERIC_PCI_IOMAP
7366eab4dfSMichael S. Tsirkin	bool
7466eab4dfSMichael S. Tsirkin
754673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP
764673ca8eSMichael S. Tsirkin	bool
7766eab4dfSMichael S. Tsirkin	select GENERIC_PCI_IOMAP
784673ca8eSMichael S. Tsirkin
794ccf4beaSWolfram Sangconfig STMP_DEVICE
804ccf4beaSWolfram Sang	bool
814ccf4beaSWolfram Sang
82bc08b449SLinus Torvaldsconfig ARCH_USE_CMPXCHG_LOCKREF
83bc08b449SLinus Torvalds	bool
84bc08b449SLinus Torvalds
8572d93104SLinus Torvaldsconfig ARCH_HAS_FAST_MULTIPLIER
8672d93104SLinus Torvalds	bool
8772d93104SLinus Torvalds
882ce0d7f9SMark Brownconfig ARCH_USE_SYM_ANNOTATIONS
892ce0d7f9SMark Brown	bool
902ce0d7f9SMark Brown
91031e3601SZhichang Yuanconfig INDIRECT_PIO
92031e3601SZhichang Yuan	bool "Access I/O in non-MMIO mode"
93031e3601SZhichang Yuan	depends on ARM64
94031e3601SZhichang Yuan	help
95031e3601SZhichang Yuan	  On some platforms where no separate I/O space exists, there are I/O
96031e3601SZhichang Yuan	  hosts which can not be accessed in MMIO mode. Using the logical PIO
97031e3601SZhichang Yuan	  mechanism, the host-local I/O resource can be mapped into system
98031e3601SZhichang Yuan	  logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the
99031e3601SZhichang Yuan	  system can access the I/O devices with the mapped-logic PIO through
100031e3601SZhichang Yuan	  I/O accessors.
101031e3601SZhichang Yuan
102031e3601SZhichang Yuan	  This way has relatively little I/O performance cost. Please make
103031e3601SZhichang Yuan	  sure your devices really need this configure item enabled.
104031e3601SZhichang Yuan
105031e3601SZhichang Yuan	  When in doubt, say N.
106031e3601SZhichang Yuan
107ca2e3342SJohannes Bergconfig INDIRECT_IOMEM
108ca2e3342SJohannes Berg	bool
109ca2e3342SJohannes Berg	help
110ca2e3342SJohannes Berg	  This is selected by other options/architectures to provide the
111ca2e3342SJohannes Berg	  emulated iomem accessors.
112ca2e3342SJohannes Berg
113ca2e3342SJohannes Bergconfig INDIRECT_IOMEM_FALLBACK
114ca2e3342SJohannes Berg	bool
115ca2e3342SJohannes Berg	depends on INDIRECT_IOMEM
116ca2e3342SJohannes Berg	help
117ca2e3342SJohannes Berg	  If INDIRECT_IOMEM is selected, this enables falling back to plain
118ca2e3342SJohannes Berg	  mmio accesses when the IO memory address is not a registered
119ca2e3342SJohannes Berg	  emulated region.
120ca2e3342SJohannes Berg
121d593d64fSPrasad Sodagudiconfig TRACE_MMIO_ACCESS
122d593d64fSPrasad Sodagudi	bool "Register read/write tracing"
123d593d64fSPrasad Sodagudi	depends on TRACING && ARCH_HAVE_TRACE_MMIO_ACCESS
124d593d64fSPrasad Sodagudi	help
125d593d64fSPrasad Sodagudi	  Create tracepoints for MMIO read/write operations. These trace events
126d593d64fSPrasad Sodagudi	  can be used for logging all MMIO read/write operations.
127d593d64fSPrasad Sodagudi
128e56e1898SJustin M. Forbessource "lib/crypto/Kconfig"
129e56e1898SJustin M. Forbes
130abfed87eSJason A. Donenfeldconfig LIB_MEMNEQ
131abfed87eSJason A. Donenfeld	bool
132abfed87eSJason A. Donenfeld
1331da177e4SLinus Torvaldsconfig CRC_CCITT
1341da177e4SLinus Torvalds	tristate "CRC-CCITT functions"
1351da177e4SLinus Torvalds	help
1361da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
1371da177e4SLinus Torvalds	  modules require CRC-CCITT functions, but a module built outside
1381da177e4SLinus Torvalds	  the kernel tree does. Such modules that use library CRC-CCITT
1391da177e4SLinus Torvalds	  functions require M here.
1401da177e4SLinus Torvalds
1417657ec1fSEvgeniy Polyakovconfig CRC16
1427657ec1fSEvgeniy Polyakov	tristate "CRC16 functions"
1437657ec1fSEvgeniy Polyakov	help
1447657ec1fSEvgeniy Polyakov	  This option is provided for the case where no in-kernel-tree
1457657ec1fSEvgeniy Polyakov	  modules require CRC16 functions, but a module built outside
1467657ec1fSEvgeniy Polyakov	  the kernel tree does. Such modules that use library CRC16
1477657ec1fSEvgeniy Polyakov	  functions require M here.
1487657ec1fSEvgeniy Polyakov
149f11f594eSMartin K. Petersenconfig CRC_T10DIF
150f11f594eSMartin K. Petersen	tristate "CRC calculation for the T10 Data Integrity Field"
15168411521SHerbert Xu	select CRYPTO
15268411521SHerbert Xu	select CRYPTO_CRCT10DIF
153f11f594eSMartin K. Petersen	help
154f11f594eSMartin K. Petersen	  This option is only needed if a module that's not in the
155f11f594eSMartin K. Petersen	  kernel tree needs to calculate CRC checks for use with the
156f11f594eSMartin K. Petersen	  SCSI data integrity subsystem.
157f11f594eSMartin K. Petersen
158f3813f4bSKeith Buschconfig CRC64_ROCKSOFT
159f3813f4bSKeith Busch	tristate "CRC calculation for the Rocksoft model CRC64"
160f3813f4bSKeith Busch	select CRC64
161f3813f4bSKeith Busch	select CRYPTO
162f3813f4bSKeith Busch	select CRYPTO_CRC64_ROCKSOFT
163f3813f4bSKeith Busch	help
164f3813f4bSKeith Busch	  This option provides a CRC64 API to a registered crypto driver.
165f3813f4bSKeith Busch	  This is used with the block layer's data integrity subsystem.
166f3813f4bSKeith Busch
1673e7cbae7SIvo van Doornconfig CRC_ITU_T
1683e7cbae7SIvo van Doorn	tristate "CRC ITU-T V.41 functions"
1693e7cbae7SIvo van Doorn	help
1703e7cbae7SIvo van Doorn	  This option is provided for the case where no in-kernel-tree
1713e7cbae7SIvo van Doorn	  modules require CRC ITU-T V.41 functions, but a module built outside
1723e7cbae7SIvo van Doorn	  the kernel tree does. Such modules that use library CRC ITU-T V.41
1733e7cbae7SIvo van Doorn	  functions require M here.
1743e7cbae7SIvo van Doorn
1751da177e4SLinus Torvaldsconfig CRC32
17646c5801eSDarrick J. Wong	tristate "CRC32/CRC32c functions"
1771da177e4SLinus Torvalds	default y
178906d66dfSAkinobu Mita	select BITREVERSE
1791da177e4SLinus Torvalds	help
1801da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
18146c5801eSDarrick J. Wong	  modules require CRC32/CRC32c functions, but a module built outside
18246c5801eSDarrick J. Wong	  the kernel tree does. Such modules that use library CRC32/CRC32c
18346c5801eSDarrick J. Wong	  functions require M here.
1841da177e4SLinus Torvalds
1853863ef31SBob Pearsonconfig CRC32_SELFTEST
1865fb7f874SGeert Uytterhoeven	tristate "CRC32 perform self test on init"
1873863ef31SBob Pearson	depends on CRC32
1883863ef31SBob Pearson	help
1893863ef31SBob Pearson	  This option enables the CRC32 library functions to perform a
1903863ef31SBob Pearson	  self test on initialization. The self test computes crc32_le
1913863ef31SBob Pearson	  and crc32_be over byte strings with random alignment and length
1923863ef31SBob Pearson	  and computes the total elapsed time and number of bytes processed.
1933863ef31SBob Pearson
1945cde7656SDarrick J. Wongchoice
1955cde7656SDarrick J. Wong	prompt "CRC32 implementation"
1965cde7656SDarrick J. Wong	depends on CRC32
1975cde7656SDarrick J. Wong	default CRC32_SLICEBY8
19882edb4baSDarrick J. Wong	help
19982edb4baSDarrick J. Wong	  This option allows a kernel builder to override the default choice
20082edb4baSDarrick J. Wong	  of CRC32 algorithm.  Choose the default ("slice by 8") unless you
20182edb4baSDarrick J. Wong	  know that you need one of the others.
2025cde7656SDarrick J. Wong
2035cde7656SDarrick J. Wongconfig CRC32_SLICEBY8
2045cde7656SDarrick J. Wong	bool "Slice by 8 bytes"
2055cde7656SDarrick J. Wong	help
2065cde7656SDarrick J. Wong	  Calculate checksum 8 bytes at a time with a clever slicing algorithm.
2075cde7656SDarrick J. Wong	  This is the fastest algorithm, but comes with a 8KiB lookup table.
2085cde7656SDarrick J. Wong	  Most modern processors have enough cache to hold this table without
2095cde7656SDarrick J. Wong	  thrashing the cache.
2105cde7656SDarrick J. Wong
2115cde7656SDarrick J. Wong	  This is the default implementation choice.  Choose this one unless
2125cde7656SDarrick J. Wong	  you have a good reason not to.
2135cde7656SDarrick J. Wong
2145cde7656SDarrick J. Wongconfig CRC32_SLICEBY4
2155cde7656SDarrick J. Wong	bool "Slice by 4 bytes"
2165cde7656SDarrick J. Wong	help
2175cde7656SDarrick J. Wong	  Calculate checksum 4 bytes at a time with a clever slicing algorithm.
2185cde7656SDarrick J. Wong	  This is a bit slower than slice by 8, but has a smaller 4KiB lookup
2195cde7656SDarrick J. Wong	  table.
2205cde7656SDarrick J. Wong
2215cde7656SDarrick J. Wong	  Only choose this option if you know what you are doing.
2225cde7656SDarrick J. Wong
2235cde7656SDarrick J. Wongconfig CRC32_SARWATE
2245cde7656SDarrick J. Wong	bool "Sarwate's Algorithm (one byte at a time)"
2255cde7656SDarrick J. Wong	help
2265cde7656SDarrick J. Wong	  Calculate checksum a byte at a time using Sarwate's algorithm.  This
2275cde7656SDarrick J. Wong	  is not particularly fast, but has a small 256 byte lookup table.
2285cde7656SDarrick J. Wong
2295cde7656SDarrick J. Wong	  Only choose this option if you know what you are doing.
2305cde7656SDarrick J. Wong
2315cde7656SDarrick J. Wongconfig CRC32_BIT
2325cde7656SDarrick J. Wong	bool "Classic Algorithm (one bit at a time)"
2335cde7656SDarrick J. Wong	help
2345cde7656SDarrick J. Wong	  Calculate checksum one bit at a time.  This is VERY slow, but has
2355cde7656SDarrick J. Wong	  no lookup table.  This is provided as a debugging option.
2365cde7656SDarrick J. Wong
2375cde7656SDarrick J. Wong	  Only choose this option if you are debugging crc32.
2385cde7656SDarrick J. Wong
2395cde7656SDarrick J. Wongendchoice
2405cde7656SDarrick J. Wong
241feba04fdSColy Liconfig CRC64
242feba04fdSColy Li	tristate "CRC64 functions"
243feba04fdSColy Li	help
244feba04fdSColy Li	  This option is provided for the case where no in-kernel-tree
245feba04fdSColy Li	  modules require CRC64 functions, but a module built outside
246feba04fdSColy Li	  the kernel tree does. Such modules that use library CRC64
247feba04fdSColy Li	  functions require M here.
248feba04fdSColy Li
2490cbaa448SJeremy Kerrconfig CRC4
2500cbaa448SJeremy Kerr	tristate "CRC4 functions"
2510cbaa448SJeremy Kerr	help
2520cbaa448SJeremy Kerr	  This option is provided for the case where no in-kernel-tree
2530cbaa448SJeremy Kerr	  modules require CRC4 functions, but a module built outside
2540cbaa448SJeremy Kerr	  the kernel tree does. Such modules that use library CRC4
2550cbaa448SJeremy Kerr	  functions require M here.
2560cbaa448SJeremy Kerr
257ad241528SJan Nikitenkoconfig CRC7
258ad241528SJan Nikitenko	tristate "CRC7 functions"
259ad241528SJan Nikitenko	help
260ad241528SJan Nikitenko	  This option is provided for the case where no in-kernel-tree
261ad241528SJan Nikitenko	  modules require CRC7 functions, but a module built outside
262ad241528SJan Nikitenko	  the kernel tree does. Such modules that use library CRC7
263ad241528SJan Nikitenko	  functions require M here.
264ad241528SJan Nikitenko
2651da177e4SLinus Torvaldsconfig LIBCRC32C
2661da177e4SLinus Torvalds	tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
26793027354SHerbert Xu	select CRYPTO
26869c35efcSHerbert Xu	select CRYPTO_CRC32C
2691da177e4SLinus Torvalds	help
2701da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
2711da177e4SLinus Torvalds	  modules require CRC32c functions, but a module built outside the
2721da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32c functions
2731da177e4SLinus Torvalds	  require M here.  See Castagnoli93.
2741da177e4SLinus Torvalds	  Module will be libcrc32c.
2751da177e4SLinus Torvalds
2767150962dSArend van Sprielconfig CRC8
2777150962dSArend van Spriel	tristate "CRC8 function"
2787150962dSArend van Spriel	help
2797150962dSArend van Spriel	  This option provides CRC8 function. Drivers may select this
2807150962dSArend van Spriel	  when they need to do cyclic redundancy check according CRC8
2817150962dSArend van Spriel	  algorithm. Module will be called crc8.
2827150962dSArend van Spriel
2835d240522SNick Terrellconfig XXHASH
2845d240522SNick Terrell	tristate
2855d240522SNick Terrell
286e65e1fc2SAl Viroconfig AUDIT_GENERIC
287e65e1fc2SAl Viro	bool
288e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
289e65e1fc2SAl Viro	default y
290e65e1fc2SAl Viro
2914b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC
2924b588411SAKASHI Takahiro	bool
2934b588411SAKASHI Takahiro	default n
2944b588411SAKASHI Takahiro
2954b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC
2964b588411SAKASHI Takahiro	bool
2974b588411SAKASHI Takahiro	depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT
2984b588411SAKASHI Takahiro	default y
2994b588411SAKASHI Takahiro
300a6a9c0f1SDaniel Borkmannconfig RANDOM32_SELFTEST
301a6a9c0f1SDaniel Borkmann	bool "PRNG perform self test on init"
302a6a9c0f1SDaniel Borkmann	help
303a6a9c0f1SDaniel Borkmann	  This option enables the 32 bit PRNG library functions to perform a
304a6a9c0f1SDaniel Borkmann	  self test on initialization.
305a6a9c0f1SDaniel Borkmann
3061da177e4SLinus Torvalds#
3071da177e4SLinus Torvalds# compression support is select'ed if needed
3081da177e4SLinus Torvalds#
3092da572c9SDan Streetmanconfig 842_COMPRESS
3105b571677SArnd Bergmann	select CRC32
3112da572c9SDan Streetman	tristate
3122da572c9SDan Streetman
3132da572c9SDan Streetmanconfig 842_DECOMPRESS
3145b571677SArnd Bergmann	select CRC32
3152da572c9SDan Streetman	tristate
3162da572c9SDan Streetman
3171da177e4SLinus Torvaldsconfig ZLIB_INFLATE
3181da177e4SLinus Torvalds	tristate
3191da177e4SLinus Torvalds
3201da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
3211da177e4SLinus Torvalds	tristate
3221fd4e5c3SAndrew Morton	select BITREVERSE
3231da177e4SLinus Torvalds
324aa5b395bSMikhail Zaslonkoconfig ZLIB_DFLTCC
325aa5b395bSMikhail Zaslonko	def_bool y
326aa5b395bSMikhail Zaslonko	depends on S390
327aa5b395bSMikhail Zaslonko	prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib"
328aa5b395bSMikhail Zaslonko	help
329aa5b395bSMikhail Zaslonko	 Enable s390x hardware support for zlib in the kernel.
330aa5b395bSMikhail Zaslonko
33164c70b1cSRichard Purdieconfig LZO_COMPRESS
33264c70b1cSRichard Purdie	tristate
33364c70b1cSRichard Purdie
33464c70b1cSRichard Purdieconfig LZO_DECOMPRESS
33564c70b1cSRichard Purdie	tristate
33664c70b1cSRichard Purdie
337c72ac7a1SChanho Minconfig LZ4_COMPRESS
338c72ac7a1SChanho Min	tristate
339c72ac7a1SChanho Min
340c72ac7a1SChanho Minconfig LZ4HC_COMPRESS
341c72ac7a1SChanho Min	tristate
342c72ac7a1SChanho Min
343e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS
344e76e1fdfSKyungsik Lee	tristate
345e76e1fdfSKyungsik Lee
346*637a642fSAlexey Kardashevskiyconfig ZSTD_COMMON
34773f3d1b4SNick Terrell	select XXHASH
34873f3d1b4SNick Terrell	tristate
34973f3d1b4SNick Terrell
350*637a642fSAlexey Kardashevskiyconfig ZSTD_COMPRESS
351*637a642fSAlexey Kardashevskiy	select ZSTD_COMMON
352*637a642fSAlexey Kardashevskiy	tristate
353*637a642fSAlexey Kardashevskiy
35473f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS
355*637a642fSAlexey Kardashevskiy	select ZSTD_COMMON
35673f3d1b4SNick Terrell	tristate
35773f3d1b4SNick Terrell
35824fa0402SLasse Collinsource "lib/xz/Kconfig"
35924fa0402SLasse Collin
3601da177e4SLinus Torvalds#
361c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with
362c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
363c8531ab3SH. Peter Anvin#
364c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP
3657856a16eSH. Peter Anvin	select ZLIB_INFLATE
366c8531ab3SH. Peter Anvin	tristate
367c8531ab3SH. Peter Anvin
368c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2
369c8531ab3SH. Peter Anvin	tristate
370c8531ab3SH. Peter Anvin
371c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA
372c8531ab3SH. Peter Anvin	tristate
373c8531ab3SH. Peter Anvin
3743ebe1243SLasse Collinconfig DECOMPRESS_XZ
3753ebe1243SLasse Collin	select XZ_DEC
3763ebe1243SLasse Collin	tristate
3773ebe1243SLasse Collin
378cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO
379cacb246fSAlbin Tonnerre	select LZO_DECOMPRESS
380cacb246fSAlbin Tonnerre	tristate
381cacb246fSAlbin Tonnerre
382e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4
383e76e1fdfSKyungsik Lee	select LZ4_DECOMPRESS
384e76e1fdfSKyungsik Lee	tristate
385e76e1fdfSKyungsik Lee
3864963bb2bSNick Terrellconfig DECOMPRESS_ZSTD
3874963bb2bSNick Terrell	select ZSTD_DECOMPRESS
3884963bb2bSNick Terrell	tristate
3894963bb2bSNick Terrell
390c8531ab3SH. Peter Anvin#
391f14f75b8SJes Sorensen# Generic allocator support is selected if needed
392f14f75b8SJes Sorensen#
393f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
3946341e62bSChristoph Jaeger	bool
395f14f75b8SJes Sorensen
396f14f75b8SJes Sorensen#
3971da177e4SLinus Torvalds# reed solomon support is select'ed if needed
3981da177e4SLinus Torvalds#
3991da177e4SLinus Torvaldsconfig REED_SOLOMON
4001da177e4SLinus Torvalds	tristate
4011da177e4SLinus Torvalds
4021da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
4036341e62bSChristoph Jaeger	bool
4041da177e4SLinus Torvalds
4051da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
4066341e62bSChristoph Jaeger	bool
4071da177e4SLinus Torvalds
4081da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
4096341e62bSChristoph Jaeger	bool
4101da177e4SLinus Torvalds
4111da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
4126341e62bSChristoph Jaeger	bool
4131da177e4SLinus Torvalds
414f7704347SDavid S. Miller#
415437aa565SIvan Djelic# BCH support is selected if needed
416437aa565SIvan Djelic#
417437aa565SIvan Djelicconfig BCH
418437aa565SIvan Djelic	tristate
419437aa565SIvan Djelic
420437aa565SIvan Djelicconfig BCH_CONST_PARAMS
4216341e62bSChristoph Jaeger	bool
422437aa565SIvan Djelic	help
423437aa565SIvan Djelic	  Drivers may select this option to force specific constant
424437aa565SIvan Djelic	  values for parameters 'm' (Galois field order) and 't'
425437aa565SIvan Djelic	  (error correction capability). Those specific values must
426437aa565SIvan Djelic	  be set by declaring default values for symbols BCH_CONST_M
427437aa565SIvan Djelic	  and BCH_CONST_T.
428437aa565SIvan Djelic	  Doing so will enable extra compiler optimizations,
429437aa565SIvan Djelic	  improving encoding and decoding performance up to 2x for
430437aa565SIvan Djelic	  usual (m,t) values (typically such that m*t < 200).
431437aa565SIvan Djelic	  When this option is selected, the BCH library supports
432437aa565SIvan Djelic	  only a single (m,t) configuration. This is mainly useful
433437aa565SIvan Djelic	  for NAND flash board drivers requiring known, fixed BCH
434437aa565SIvan Djelic	  parameters.
435437aa565SIvan Djelic
436437aa565SIvan Djelicconfig BCH_CONST_M
437437aa565SIvan Djelic	int
438437aa565SIvan Djelic	range 5 15
439437aa565SIvan Djelic	help
440437aa565SIvan Djelic	  Constant value for Galois field order 'm'. If 'k' is the
441437aa565SIvan Djelic	  number of data bits to protect, 'm' should be chosen such
442437aa565SIvan Djelic	  that (k + m*t) <= 2**m - 1.
443437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
444437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
445437aa565SIvan Djelic
446437aa565SIvan Djelicconfig BCH_CONST_T
447437aa565SIvan Djelic	int
448437aa565SIvan Djelic	help
449437aa565SIvan Djelic	  Constant value for error correction capability in bits 't'.
450437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
451437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
452437aa565SIvan Djelic
453437aa565SIvan Djelic#
454f7704347SDavid S. Miller# Textsearch support is select'ed if needed
455f7704347SDavid S. Miller#
4562de4ff7bSThomas Grafconfig TEXTSEARCH
4576341e62bSChristoph Jaeger	bool
4581da177e4SLinus Torvalds
459df3fb93aSThomas Grafconfig TEXTSEARCH_KMP
460f7704347SDavid S. Miller	tristate
461df3fb93aSThomas Graf
4628082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM
46329cb9f9cSDavid S. Miller	tristate
4648082e4edSPablo Neira Ayuso
4656408f79cSThomas Grafconfig TEXTSEARCH_FSM
466f7704347SDavid S. Miller	tristate
4676408f79cSThomas Graf
4685db53f3eSJoern Engelconfig BTREE
4696341e62bSChristoph Jaeger	bool
4705db53f3eSJoern Engel
471a88cc108SChris Wilsonconfig INTERVAL_TREE
4726341e62bSChristoph Jaeger	bool
473a88cc108SChris Wilson	help
474a88cc108SChris Wilson	  Simple, embeddable, interval-tree. Can find the start of an
475a88cc108SChris Wilson	  overlapping range in log(n) time and then iterate over all
476a88cc108SChris Wilson	  overlapping nodes. The algorithm is implemented as an
477a88cc108SChris Wilson	  augmented rbtree.
478a88cc108SChris Wilson
479a88cc108SChris Wilson	  See:
480a88cc108SChris Wilson
48114bbe3e3SMatthew Wilcox (Oracle)		Documentation/core-api/rbtree.rst
482a88cc108SChris Wilson
483a88cc108SChris Wilson	  for more information.
484a88cc108SChris Wilson
48502c02bf1SMatthew Wilcoxconfig XARRAY_MULTI
48657578c2eSMatthew Wilcox	bool
48702c02bf1SMatthew Wilcox	help
48802c02bf1SMatthew Wilcox	  Support entries which occupy multiple consecutive indices in the
48902c02bf1SMatthew Wilcox	  XArray.
49057578c2eSMatthew Wilcox
4913cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY
4923cb98950SDavid Howells	bool
4933cb98950SDavid Howells	help
4943cb98950SDavid Howells	  Generic associative array.  Can be searched and iterated over whilst
4953cb98950SDavid Howells	  it is being modified.  It is also reasonably quick to search and
4963cb98950SDavid Howells	  modify.  The algorithms are non-recursive, and the trees are highly
4973cb98950SDavid Howells	  capacious.
4983cb98950SDavid Howells
4993cb98950SDavid Howells	  See:
5003cb98950SDavid Howells
5015fb94e9cSMauro Carvalho Chehab		Documentation/core-api/assoc_array.rst
5023cb98950SDavid Howells
5033cb98950SDavid Howells	  for more information.
5043cb98950SDavid Howells
5055ea81769SAl Viroconfig HAS_IOMEM
5066341e62bSChristoph Jaeger	bool
5075ea81769SAl Viro	depends on !NO_IOMEM
5085ea81769SAl Viro	default y
5095ea81769SAl Viro
510ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP
5116341e62bSChristoph Jaeger	bool
512ce816fa8SUwe Kleine-König	depends on HAS_IOMEM && !NO_IOPORT_MAP
513ee36c2bfSAl Viro	default y
514ee36c2bfSAl Viro
515cf65a0f6SChristoph Hellwigsource "kernel/dma/Kconfig"
516411f0f3eSHeiko Carstens
517e80a0af4SBart Van Asscheconfig SGL_ALLOC
518e80a0af4SBart Van Assche	bool
519e80a0af4SBart Van Assche	default n
520e80a0af4SBart Van Assche
521a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER
522a4ce5a48SChristoph Hellwig	bool
523a4ce5a48SChristoph Hellwig
524928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
525928923c7SGeert Uytterhoeven	bool
526928923c7SGeert Uytterhoeven
527aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
528aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
529aab46da0SRusty Russell	help
530aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
531aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
532aab46da0SRusty Russell	  stack overflow.
533aab46da0SRusty Russell
534c39649c3SBen Hutchingsconfig CPU_RMAP
535c39649c3SBen Hutchings	bool
536c39649c3SBen Hutchings	depends on SMP
537c39649c3SBen Hutchings
53875957ba3STom Herbertconfig DQL
53975957ba3STom Herbert	bool
54075957ba3STom Herbert
541b0125085SGeorge Spelvinconfig GLOB
542b0125085SGeorge Spelvin	bool
543b0125085SGeorge Spelvin#	This actually supports modular compilation, but the module overhead
544b0125085SGeorge Spelvin#	is ridiculous for the amount of code involved.	Until an out-of-tree
545b0125085SGeorge Spelvin#	driver asks for it, we'll just link it directly it into the kernel
546b0125085SGeorge Spelvin#	when required.  Since we're ignoring out-of-tree users,	there's also
547b0125085SGeorge Spelvin#	no need bother prompting for a manual decision:
548b0125085SGeorge Spelvin#	prompt "glob_match() function"
549b0125085SGeorge Spelvin	help
550b0125085SGeorge Spelvin	  This option provides a glob_match function for performing
551b0125085SGeorge Spelvin	  simple text pattern matching.  It originated in the ATA code
552b0125085SGeorge Spelvin	  to blacklist particular drive models, but other device drivers
553b0125085SGeorge Spelvin	  may need similar functionality.
554b0125085SGeorge Spelvin
555b0125085SGeorge Spelvin	  All drivers in the Linux kernel tree that require this function
556b0125085SGeorge Spelvin	  should automatically select this option.  Say N unless you
557b0125085SGeorge Spelvin	  are compiling an out-of tree driver which tells you that it
558b0125085SGeorge Spelvin	  depends on this.
559b0125085SGeorge Spelvin
5605f9be824SGeorge Spelvinconfig GLOB_SELFTEST
561ba95b045SGeert Uytterhoeven	tristate "glob self-test on init"
5625f9be824SGeorge Spelvin	depends on GLOB
5635f9be824SGeorge Spelvin	help
5645f9be824SGeorge Spelvin	  This option enables a simple self-test of the glob_match
5655f9be824SGeorge Spelvin	  function on startup.	It is primarily useful for people
5665f9be824SGeorge Spelvin	  working on the code to ensure they haven't introduced any
5675f9be824SGeorge Spelvin	  regressions.
5685f9be824SGeorge Spelvin
5695f9be824SGeorge Spelvin	  It only adds a little bit of code and slows kernel boot (or
5705f9be824SGeorge Spelvin	  module load) by a small amount, so you're welcome to play with
5715f9be824SGeorge Spelvin	  it, but you probably don't need it.
5725f9be824SGeorge Spelvin
573e9cc8bddSGeert Uytterhoeven#
574e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed
575e9cc8bddSGeert Uytterhoeven#
576e9cc8bddSGeert Uytterhoevenconfig NLATTR
577e9cc8bddSGeert Uytterhoeven	bool
578e9cc8bddSGeert Uytterhoeven
57909d4e0edSPaul Mackerras#
58009d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed
58109d4e0edSPaul Mackerras#
58209d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64
58309d4e0edSPaul Mackerras       bool
58409d4e0edSPaul Mackerras
585b411b363SPhilipp Reisnerconfig LRU_CACHE
586b411b363SPhilipp Reisner	tristate
587b411b363SPhilipp Reisner
588c6df4b17SDavid Millerconfig CLZ_TAB
589c6df4b17SDavid Miller	bool
590c6df4b17SDavid Miller
591511cbce2SChristoph Hellwigconfig IRQ_POLL
592511cbce2SChristoph Hellwig	bool "IRQ polling library"
593511cbce2SChristoph Hellwig	help
594511cbce2SChristoph Hellwig	  Helper library to poll interrupt mitigation using polling.
595511cbce2SChristoph Hellwig
596d9c46b18SDmitry Kasatkinconfig MPILIB
5972e5f094bSDmitry Kasatkin	tristate
598c6df4b17SDavid Miller	select CLZ_TAB
599d9c46b18SDmitry Kasatkin	help
600d9c46b18SDmitry Kasatkin	  Multiprecision maths library from GnuPG.
601d9c46b18SDmitry Kasatkin	  It is used to implement RSA digital signature verification,
602d9c46b18SDmitry Kasatkin	  which is used by IMA/EVM digital signature extension.
603d9c46b18SDmitry Kasatkin
6045e8898e9SDmitry Kasatkinconfig SIGNATURE
6052e5f094bSDmitry Kasatkin	tristate
6060d1f64f6SDmitry Kasatkin	depends on KEYS
6070d1f64f6SDmitry Kasatkin	select CRYPTO
608be440ec7SDmitry Kasatkin	select CRYPTO_SHA1
609051dbb91SDmitry Kasatkin	select MPILIB
610051dbb91SDmitry Kasatkin	help
611051dbb91SDmitry Kasatkin	  Digital signature verification. Currently only RSA is supported.
612051dbb91SDmitry Kasatkin	  Implementation is done using GnuPG MPI library
613051dbb91SDmitry Kasatkin
6144f75da36STal Gilboaconfig DIMLIB
615424adc32SUwe Kleine-König	bool
6164f75da36STal Gilboa	help
6174f75da36STal Gilboa	  Dynamic Interrupt Moderation library.
618991ad2b2SRandy Dunlap	  Implements an algorithm for dynamically changing CQ moderation values
6194f75da36STal Gilboa	  according to run time performance.
6204f75da36STal Gilboa
621ab253839SDavid Daney#
622ab253839SDavid Daney# libfdt files, only selected if needed.
623ab253839SDavid Daney#
624ab253839SDavid Daneyconfig LIBFDT
625ab253839SDavid Daney	bool
626ab253839SDavid Daney
627a77ad6eaSDavid Howellsconfig OID_REGISTRY
628a77ad6eaSDavid Howells	tristate
629a77ad6eaSDavid Howells	help
630a77ad6eaSDavid Howells	  Enable fast lookup object identifier registry.
631a77ad6eaSDavid Howells
6320635eb8aSMatthew Garrettconfig UCS2_STRING
6330635eb8aSMatthew Garrett	tristate
6340635eb8aSMatthew Garrett
63500b26474SVincenzo Frascino#
63600b26474SVincenzo Frascino# generic vdso
63700b26474SVincenzo Frascino#
63800b26474SVincenzo Frascinosource "lib/vdso/Kconfig"
63900b26474SVincenzo Frascino
640ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig"
641ee89bd6bSGeert Uytterhoeven
642f8bcbe62SRobert Jarzmikconfig SG_SPLIT
643f8bcbe62SRobert Jarzmik	def_bool n
644f8bcbe62SRobert Jarzmik	help
6457f7e92f7SGeert Uytterhoeven	 Provides a helper to split scatterlists into chunks, each chunk being
6467f7e92f7SGeert Uytterhoeven	 a scatterlist. This should be selected by a driver or an API which
6477f7e92f7SGeert Uytterhoeven	 whishes to split a scatterlist amongst multiple DMA channels.
648f8bcbe62SRobert Jarzmik
6499b1d6c89SMing Linconfig SG_POOL
6509b1d6c89SMing Lin	def_bool n
6519b1d6c89SMing Lin	help
6529b1d6c89SMing Lin	 Provides a helper to allocate chained scatterlists. This should be
6539b1d6c89SMing Lin	 selected by a driver or an API which whishes to allocate chained
6549b1d6c89SMing Lin	 scatterlist.
6559b1d6c89SMing Lin
656308c09f1SLaura Abbott#
657308c09f1SLaura Abbott# sg chaining option
658308c09f1SLaura Abbott#
659308c09f1SLaura Abbott
6607c703e54SChristoph Hellwigconfig ARCH_NO_SG_CHAIN
661308c09f1SLaura Abbott	def_bool n
662308c09f1SLaura Abbott
66361031952SRoss Zwislerconfig ARCH_HAS_PMEM_API
66461031952SRoss Zwisler	bool
66561031952SRoss Zwisler
66633dd7075SDan Williamsconfig MEMREGION
66733dd7075SDan Williams	bool
66833dd7075SDan Williams
6699ffc1d19SDan Williamsconfig ARCH_HAS_MEMREMAP_COMPAT_ALIGN
6709ffc1d19SDan Williams	bool
6719ffc1d19SDan Williams
672bd79f947SChristoph Hellwig# use memcpy to implement user copies for nommu architectures
673bd79f947SChristoph Hellwigconfig UACCESS_MEMCPY
674bd79f947SChristoph Hellwig	bool
675bd79f947SChristoph Hellwig
6760aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE
6770aed55afSDan Williams	bool
6780aed55afSDan Williams
679ec6347bbSDan Williams# arch has a concept of a recoverable synchronous exception due to a
680ec6347bbSDan Williams# memory-read error like x86 machine-check or ARM data-abort, and
681ec6347bbSDan Williams# implements copy_mc_to_{user,kernel} to abort and report
682ec6347bbSDan Williams# 'bytes-transferred' if that exception fires when accessing the source
683ec6347bbSDan Williams# buffer.
684ec6347bbSDan Williamsconfig ARCH_HAS_COPY_MC
685522239b4SDan Williams	bool
686522239b4SDan Williams
687214d8ca6SThomas Gleixner# Temporary. Goes away when all archs are cleaned up
688214d8ca6SThomas Gleixnerconfig ARCH_STACKWALK
689214d8ca6SThomas Gleixner       bool
690214d8ca6SThomas Gleixner
691cd11016eSAlexander Potapenkoconfig STACKDEPOT
692cd11016eSAlexander Potapenko	bool
693cd11016eSAlexander Potapenko	select STACKTRACE
694cd11016eSAlexander Potapenko
6952dba5eb1SVlastimil Babkaconfig STACKDEPOT_ALWAYS_INIT
6962dba5eb1SVlastimil Babka	bool
6972dba5eb1SVlastimil Babka	select STACKDEPOT
6982dba5eb1SVlastimil Babka
6994e66934eSEric Dumazetconfig REF_TRACKER
7004e66934eSEric Dumazet	bool
7014e66934eSEric Dumazet	depends on STACKTRACE_SUPPORT
7024e66934eSEric Dumazet	select STACKDEPOT
7034e66934eSEric Dumazet
70488459642SOmar Sandovalconfig SBITMAP
70588459642SOmar Sandoval	bool
70688459642SOmar Sandoval
70744091d29SJiri Pirkoconfig PARMAN
7089d25af69SGeert Uytterhoeven	tristate "parman" if COMPILE_TEST
70944091d29SJiri Pirko
7103dfdecc6SRandy Dunlapconfig OBJAGG
7113dfdecc6SRandy Dunlap	tristate "objagg" if COMPILE_TEST
7123dfdecc6SRandy Dunlap
7132de4ff7bSThomas Grafendmenu
714b35cd988SPalmer Dabbelt
71580b0ca98SChristoph Hellwigconfig GENERIC_IOREMAP
71680b0ca98SChristoph Hellwig	bool
71780b0ca98SChristoph Hellwig
718e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3
719b35cd988SPalmer Dabbelt	bool
720b35cd988SPalmer Dabbelt
721e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3
722b35cd988SPalmer Dabbelt	bool
723b35cd988SPalmer Dabbelt
724e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3
725b35cd988SPalmer Dabbelt	bool
726b35cd988SPalmer Dabbelt
727e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3
728b35cd988SPalmer Dabbelt	bool
729b35cd988SPalmer Dabbelt
730e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2
731b35cd988SPalmer Dabbelt	bool
732b35cd988SPalmer Dabbelt
733e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2
734b35cd988SPalmer Dabbelt	bool
735b8265621SJacob Keller
736527701edSPalmer Dabbeltconfig GENERIC_LIB_DEVMEM_IS_ALLOWED
737527701edSPalmer Dabbelt	bool
738527701edSPalmer Dabbelt
739b8265621SJacob Kellerconfig PLDMFW
740b8265621SJacob Keller	bool
741b8265621SJacob Keller	default n
742b0706762SJames Bottomley
743b0706762SJames Bottomleyconfig ASN1_ENCODER
744b0706762SJames Bottomley       tristate
745cd705ea8SMichael Walle
746cd705ea8SMichael Walleconfig POLYNOMIAL
747cd705ea8SMichael Walle       tristate
748