xref: /linux/lib/Kconfig (revision fc60e0caa94dd7ca0e97a1d42527f71c9d51cd2d)
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"
271280d4b7SUladzislau Koshchanka	select BITREVERSE
28554aae35SVladimir Oltean	default n
29554aae35SVladimir Oltean	help
30554aae35SVladimir Oltean	  This option provides the packing() helper function, which permits
31554aae35SVladimir Oltean	  converting bitfields between a CPU-usable representation and a
32554aae35SVladimir Oltean	  memory representation that can have any combination of these quirks:
33554aae35SVladimir Oltean	    - Is little endian (bytes are reversed within a 32-bit group)
34554aae35SVladimir Oltean	    - The least-significant 32-bit word comes first (within a 64-bit
35554aae35SVladimir Oltean	      group)
36554aae35SVladimir Oltean	    - The most significant bit of a byte is at its right (bit 0 of a
37554aae35SVladimir Oltean	      register description is numerically 2^7).
38554aae35SVladimir Oltean	  Drivers may use these helpers to match the bit indices as described
39554aae35SVladimir Oltean	  in the data sheets of the peripherals they are in control of.
40554aae35SVladimir Oltean
41554aae35SVladimir Oltean	  When in doubt, say N.
42554aae35SVladimir Oltean
43a5cfc1ecSAkinobu Mitaconfig BITREVERSE
44a5cfc1ecSAkinobu Mita	tristate
45a5cfc1ecSAkinobu Mita
46556d2f05SYalin Wangconfig HAVE_ARCH_BITREVERSE
47841c0090SChristoph Jaeger	bool
48556d2f05SYalin Wang	default n
49556d2f05SYalin Wang	help
509e522c0dSAndrew Morton	  This option enables the use of hardware bit-reversal instructions on
519e522c0dSAndrew Morton	  architectures which support such operations.
52556d2f05SYalin Wang
53e6226997SArnd Bergmannconfig ARCH_HAS_STRNCPY_FROM_USER
542922585bSDavid S. Miller	bool
552922585bSDavid S. Miller
56e6226997SArnd Bergmannconfig ARCH_HAS_STRNLEN_USER
57a08c5356SLinus Torvalds	bool
58a08c5356SLinus Torvalds
59e6226997SArnd Bergmannconfig GENERIC_STRNCPY_FROM_USER
60e6226997SArnd Bergmann	def_bool !ARCH_HAS_STRNCPY_FROM_USER
61e6226997SArnd Bergmann
62e6226997SArnd Bergmannconfig GENERIC_STRNLEN_USER
63e6226997SArnd Bergmann	def_bool !ARCH_HAS_STRNLEN_USER
64e6226997SArnd Bergmann
654cd5773aSAndy Shevchenkoconfig GENERIC_NET_UTILS
664cd5773aSAndy Shevchenko	bool
674cd5773aSAndy Shevchenko
682c64e9cbSAndy Shevchenkosource "lib/math/Kconfig"
692c64e9cbSAndy Shevchenko
70b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP
71b923650bSMichael S. Tsirkin	bool
72b923650bSMichael S. Tsirkin
7366eab4dfSMichael S. Tsirkinconfig GENERIC_PCI_IOMAP
7466eab4dfSMichael S. Tsirkin	bool
7566eab4dfSMichael S. Tsirkin
764673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP
774673ca8eSMichael S. Tsirkin	bool
7866eab4dfSMichael S. Tsirkin	select GENERIC_PCI_IOMAP
794673ca8eSMichael S. Tsirkin
804ccf4beaSWolfram Sangconfig STMP_DEVICE
814ccf4beaSWolfram Sang	bool
824ccf4beaSWolfram Sang
83bc08b449SLinus Torvaldsconfig ARCH_USE_CMPXCHG_LOCKREF
84bc08b449SLinus Torvalds	bool
85bc08b449SLinus Torvalds
8672d93104SLinus Torvaldsconfig ARCH_HAS_FAST_MULTIPLIER
8772d93104SLinus Torvalds	bool
8872d93104SLinus Torvalds
892ce0d7f9SMark Brownconfig ARCH_USE_SYM_ANNOTATIONS
902ce0d7f9SMark Brown	bool
912ce0d7f9SMark Brown
92031e3601SZhichang Yuanconfig INDIRECT_PIO
93031e3601SZhichang Yuan	bool "Access I/O in non-MMIO mode"
94031e3601SZhichang Yuan	depends on ARM64
95fcbfe812SNiklas Schnelle	depends on HAS_IOPORT
96031e3601SZhichang Yuan	help
97031e3601SZhichang Yuan	  On some platforms where no separate I/O space exists, there are I/O
98031e3601SZhichang Yuan	  hosts which can not be accessed in MMIO mode. Using the logical PIO
99031e3601SZhichang Yuan	  mechanism, the host-local I/O resource can be mapped into system
100031e3601SZhichang Yuan	  logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the
101031e3601SZhichang Yuan	  system can access the I/O devices with the mapped-logic PIO through
102031e3601SZhichang Yuan	  I/O accessors.
103031e3601SZhichang Yuan
104031e3601SZhichang Yuan	  This way has relatively little I/O performance cost. Please make
105031e3601SZhichang Yuan	  sure your devices really need this configure item enabled.
106031e3601SZhichang Yuan
107031e3601SZhichang Yuan	  When in doubt, say N.
108031e3601SZhichang Yuan
109ca2e3342SJohannes Bergconfig INDIRECT_IOMEM
110ca2e3342SJohannes Berg	bool
111ca2e3342SJohannes Berg	help
112ca2e3342SJohannes Berg	  This is selected by other options/architectures to provide the
113ca2e3342SJohannes Berg	  emulated iomem accessors.
114ca2e3342SJohannes Berg
115ca2e3342SJohannes Bergconfig INDIRECT_IOMEM_FALLBACK
116ca2e3342SJohannes Berg	bool
117ca2e3342SJohannes Berg	depends on INDIRECT_IOMEM
118ca2e3342SJohannes Berg	help
119ca2e3342SJohannes Berg	  If INDIRECT_IOMEM is selected, this enables falling back to plain
120ca2e3342SJohannes Berg	  mmio accesses when the IO memory address is not a registered
121ca2e3342SJohannes Berg	  emulated region.
122ca2e3342SJohannes Berg
123d593d64fSPrasad Sodagudiconfig TRACE_MMIO_ACCESS
124d593d64fSPrasad Sodagudi	bool "Register read/write tracing"
125d593d64fSPrasad Sodagudi	depends on TRACING && ARCH_HAVE_TRACE_MMIO_ACCESS
126d593d64fSPrasad Sodagudi	help
127d593d64fSPrasad Sodagudi	  Create tracepoints for MMIO read/write operations. These trace events
128d593d64fSPrasad Sodagudi	  can be used for logging all MMIO read/write operations.
129d593d64fSPrasad Sodagudi
130e56e1898SJustin M. Forbessource "lib/crypto/Kconfig"
131e56e1898SJustin M. Forbes
1321da177e4SLinus Torvaldsconfig CRC_CCITT
1331da177e4SLinus Torvalds	tristate "CRC-CCITT functions"
1341da177e4SLinus Torvalds	help
1351da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
1361da177e4SLinus Torvalds	  modules require CRC-CCITT functions, but a module built outside
1371da177e4SLinus Torvalds	  the kernel tree does. Such modules that use library CRC-CCITT
1381da177e4SLinus Torvalds	  functions require M here.
1391da177e4SLinus Torvalds
1407657ec1fSEvgeniy Polyakovconfig CRC16
1417657ec1fSEvgeniy Polyakov	tristate "CRC16 functions"
1427657ec1fSEvgeniy Polyakov	help
1437657ec1fSEvgeniy Polyakov	  This option is provided for the case where no in-kernel-tree
1447657ec1fSEvgeniy Polyakov	  modules require CRC16 functions, but a module built outside
1457657ec1fSEvgeniy Polyakov	  the kernel tree does. Such modules that use library CRC16
1467657ec1fSEvgeniy Polyakov	  functions require M here.
1477657ec1fSEvgeniy Polyakov
148f11f594eSMartin K. Petersenconfig CRC_T10DIF
149f11f594eSMartin K. Petersen	tristate "CRC calculation for the T10 Data Integrity Field"
15068411521SHerbert Xu	select CRYPTO
15168411521SHerbert Xu	select CRYPTO_CRCT10DIF
152f11f594eSMartin K. Petersen	help
153f11f594eSMartin K. Petersen	  This option is only needed if a module that's not in the
154f11f594eSMartin K. Petersen	  kernel tree needs to calculate CRC checks for use with the
155f11f594eSMartin K. Petersen	  SCSI data integrity subsystem.
156f11f594eSMartin K. Petersen
157f3813f4bSKeith Buschconfig CRC64_ROCKSOFT
158f3813f4bSKeith Busch	tristate "CRC calculation for the Rocksoft model CRC64"
159f3813f4bSKeith Busch	select CRC64
160f3813f4bSKeith Busch	select CRYPTO
161f3813f4bSKeith Busch	select CRYPTO_CRC64_ROCKSOFT
162f3813f4bSKeith Busch	help
163f3813f4bSKeith Busch	  This option provides a CRC64 API to a registered crypto driver.
164f3813f4bSKeith Busch	  This is used with the block layer's data integrity subsystem.
165f3813f4bSKeith Busch
1663e7cbae7SIvo van Doornconfig CRC_ITU_T
1673e7cbae7SIvo van Doorn	tristate "CRC ITU-T V.41 functions"
1683e7cbae7SIvo van Doorn	help
1693e7cbae7SIvo van Doorn	  This option is provided for the case where no in-kernel-tree
1703e7cbae7SIvo van Doorn	  modules require CRC ITU-T V.41 functions, but a module built outside
1713e7cbae7SIvo van Doorn	  the kernel tree does. Such modules that use library CRC ITU-T V.41
1723e7cbae7SIvo van Doorn	  functions require M here.
1733e7cbae7SIvo van Doorn
1741da177e4SLinus Torvaldsconfig CRC32
17546c5801eSDarrick J. Wong	tristate "CRC32/CRC32c functions"
1761da177e4SLinus Torvalds	default y
177906d66dfSAkinobu Mita	select BITREVERSE
1781da177e4SLinus Torvalds	help
1791da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
18046c5801eSDarrick J. Wong	  modules require CRC32/CRC32c functions, but a module built outside
18146c5801eSDarrick J. Wong	  the kernel tree does. Such modules that use library CRC32/CRC32c
18246c5801eSDarrick J. Wong	  functions require M here.
1831da177e4SLinus Torvalds
1843863ef31SBob Pearsonconfig CRC32_SELFTEST
1855fb7f874SGeert Uytterhoeven	tristate "CRC32 perform self test on init"
1863863ef31SBob Pearson	depends on CRC32
1873863ef31SBob Pearson	help
1883863ef31SBob Pearson	  This option enables the CRC32 library functions to perform a
1893863ef31SBob Pearson	  self test on initialization. The self test computes crc32_le
1903863ef31SBob Pearson	  and crc32_be over byte strings with random alignment and length
1913863ef31SBob Pearson	  and computes the total elapsed time and number of bytes processed.
1923863ef31SBob Pearson
1935cde7656SDarrick J. Wongchoice
1945cde7656SDarrick J. Wong	prompt "CRC32 implementation"
1955cde7656SDarrick J. Wong	depends on CRC32
1965cde7656SDarrick J. Wong	default CRC32_SLICEBY8
19782edb4baSDarrick J. Wong	help
19882edb4baSDarrick J. Wong	  This option allows a kernel builder to override the default choice
19982edb4baSDarrick J. Wong	  of CRC32 algorithm.  Choose the default ("slice by 8") unless you
20082edb4baSDarrick J. Wong	  know that you need one of the others.
2015cde7656SDarrick J. Wong
2025cde7656SDarrick J. Wongconfig CRC32_SLICEBY8
2035cde7656SDarrick J. Wong	bool "Slice by 8 bytes"
2045cde7656SDarrick J. Wong	help
2055cde7656SDarrick J. Wong	  Calculate checksum 8 bytes at a time with a clever slicing algorithm.
2065cde7656SDarrick J. Wong	  This is the fastest algorithm, but comes with a 8KiB lookup table.
2075cde7656SDarrick J. Wong	  Most modern processors have enough cache to hold this table without
2085cde7656SDarrick J. Wong	  thrashing the cache.
2095cde7656SDarrick J. Wong
2105cde7656SDarrick J. Wong	  This is the default implementation choice.  Choose this one unless
2115cde7656SDarrick J. Wong	  you have a good reason not to.
2125cde7656SDarrick J. Wong
2135cde7656SDarrick J. Wongconfig CRC32_SLICEBY4
2145cde7656SDarrick J. Wong	bool "Slice by 4 bytes"
2155cde7656SDarrick J. Wong	help
2165cde7656SDarrick J. Wong	  Calculate checksum 4 bytes at a time with a clever slicing algorithm.
2175cde7656SDarrick J. Wong	  This is a bit slower than slice by 8, but has a smaller 4KiB lookup
2185cde7656SDarrick J. Wong	  table.
2195cde7656SDarrick J. Wong
2205cde7656SDarrick J. Wong	  Only choose this option if you know what you are doing.
2215cde7656SDarrick J. Wong
2225cde7656SDarrick J. Wongconfig CRC32_SARWATE
2235cde7656SDarrick J. Wong	bool "Sarwate's Algorithm (one byte at a time)"
2245cde7656SDarrick J. Wong	help
2255cde7656SDarrick J. Wong	  Calculate checksum a byte at a time using Sarwate's algorithm.  This
2265cde7656SDarrick J. Wong	  is not particularly fast, but has a small 256 byte lookup table.
2275cde7656SDarrick J. Wong
2285cde7656SDarrick J. Wong	  Only choose this option if you know what you are doing.
2295cde7656SDarrick J. Wong
2305cde7656SDarrick J. Wongconfig CRC32_BIT
2315cde7656SDarrick J. Wong	bool "Classic Algorithm (one bit at a time)"
2325cde7656SDarrick J. Wong	help
2335cde7656SDarrick J. Wong	  Calculate checksum one bit at a time.  This is VERY slow, but has
2345cde7656SDarrick J. Wong	  no lookup table.  This is provided as a debugging option.
2355cde7656SDarrick J. Wong
2365cde7656SDarrick J. Wong	  Only choose this option if you are debugging crc32.
2375cde7656SDarrick J. Wong
2385cde7656SDarrick J. Wongendchoice
2395cde7656SDarrick J. Wong
240feba04fdSColy Liconfig CRC64
241feba04fdSColy Li	tristate "CRC64 functions"
242feba04fdSColy Li	help
243feba04fdSColy Li	  This option is provided for the case where no in-kernel-tree
244feba04fdSColy Li	  modules require CRC64 functions, but a module built outside
245feba04fdSColy Li	  the kernel tree does. Such modules that use library CRC64
246feba04fdSColy Li	  functions require M here.
247feba04fdSColy Li
2480cbaa448SJeremy Kerrconfig CRC4
2490cbaa448SJeremy Kerr	tristate "CRC4 functions"
2500cbaa448SJeremy Kerr	help
2510cbaa448SJeremy Kerr	  This option is provided for the case where no in-kernel-tree
2520cbaa448SJeremy Kerr	  modules require CRC4 functions, but a module built outside
2530cbaa448SJeremy Kerr	  the kernel tree does. Such modules that use library CRC4
2540cbaa448SJeremy Kerr	  functions require M here.
2550cbaa448SJeremy Kerr
256ad241528SJan Nikitenkoconfig CRC7
257ad241528SJan Nikitenko	tristate "CRC7 functions"
258ad241528SJan Nikitenko	help
259ad241528SJan Nikitenko	  This option is provided for the case where no in-kernel-tree
260ad241528SJan Nikitenko	  modules require CRC7 functions, but a module built outside
261ad241528SJan Nikitenko	  the kernel tree does. Such modules that use library CRC7
262ad241528SJan Nikitenko	  functions require M here.
263ad241528SJan Nikitenko
2641da177e4SLinus Torvaldsconfig LIBCRC32C
2651da177e4SLinus Torvalds	tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
26693027354SHerbert Xu	select CRYPTO
26769c35efcSHerbert Xu	select CRYPTO_CRC32C
2681da177e4SLinus Torvalds	help
2691da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
2701da177e4SLinus Torvalds	  modules require CRC32c functions, but a module built outside the
2711da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32c functions
2721da177e4SLinus Torvalds	  require M here.  See Castagnoli93.
2731da177e4SLinus Torvalds	  Module will be libcrc32c.
2741da177e4SLinus Torvalds
2757150962dSArend van Sprielconfig CRC8
2767150962dSArend van Spriel	tristate "CRC8 function"
2777150962dSArend van Spriel	help
2787150962dSArend van Spriel	  This option provides CRC8 function. Drivers may select this
2797150962dSArend van Spriel	  when they need to do cyclic redundancy check according CRC8
2807150962dSArend van Spriel	  algorithm. Module will be called crc8.
2817150962dSArend van Spriel
2825d240522SNick Terrellconfig XXHASH
2835d240522SNick Terrell	tristate
2845d240522SNick Terrell
285e65e1fc2SAl Viroconfig AUDIT_GENERIC
286e65e1fc2SAl Viro	bool
287e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
288e65e1fc2SAl Viro	default y
289e65e1fc2SAl Viro
2904b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC
2914b588411SAKASHI Takahiro	bool
2924b588411SAKASHI Takahiro	default n
2934b588411SAKASHI Takahiro
2944b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC
2954b588411SAKASHI Takahiro	bool
2964b588411SAKASHI Takahiro	depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT
2974b588411SAKASHI Takahiro	default y
2984b588411SAKASHI Takahiro
299a6a9c0f1SDaniel Borkmannconfig RANDOM32_SELFTEST
300a6a9c0f1SDaniel Borkmann	bool "PRNG perform self test on init"
301a6a9c0f1SDaniel Borkmann	help
302a6a9c0f1SDaniel Borkmann	  This option enables the 32 bit PRNG library functions to perform a
303a6a9c0f1SDaniel Borkmann	  self test on initialization.
304a6a9c0f1SDaniel Borkmann
3051da177e4SLinus Torvalds#
3061da177e4SLinus Torvalds# compression support is select'ed if needed
3071da177e4SLinus Torvalds#
3082da572c9SDan Streetmanconfig 842_COMPRESS
3095b571677SArnd Bergmann	select CRC32
3102da572c9SDan Streetman	tristate
3112da572c9SDan Streetman
3122da572c9SDan Streetmanconfig 842_DECOMPRESS
3135b571677SArnd Bergmann	select CRC32
3142da572c9SDan Streetman	tristate
3152da572c9SDan Streetman
3161da177e4SLinus Torvaldsconfig ZLIB_INFLATE
3171da177e4SLinus Torvalds	tristate
3181da177e4SLinus Torvalds
3191da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
3201da177e4SLinus Torvalds	tristate
3211fd4e5c3SAndrew Morton	select BITREVERSE
3221da177e4SLinus Torvalds
323aa5b395bSMikhail Zaslonkoconfig ZLIB_DFLTCC
324aa5b395bSMikhail Zaslonko	def_bool y
325aa5b395bSMikhail Zaslonko	depends on S390
326aa5b395bSMikhail Zaslonko	prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib"
327aa5b395bSMikhail Zaslonko	help
328aa5b395bSMikhail Zaslonko	 Enable s390x hardware support for zlib in the kernel.
329aa5b395bSMikhail Zaslonko
33064c70b1cSRichard Purdieconfig LZO_COMPRESS
33164c70b1cSRichard Purdie	tristate
33264c70b1cSRichard Purdie
33364c70b1cSRichard Purdieconfig LZO_DECOMPRESS
33464c70b1cSRichard Purdie	tristate
33564c70b1cSRichard Purdie
336c72ac7a1SChanho Minconfig LZ4_COMPRESS
337c72ac7a1SChanho Min	tristate
338c72ac7a1SChanho Min
339c72ac7a1SChanho Minconfig LZ4HC_COMPRESS
340c72ac7a1SChanho Min	tristate
341c72ac7a1SChanho Min
342e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS
343e76e1fdfSKyungsik Lee	tristate
344e76e1fdfSKyungsik Lee
345637a642fSAlexey Kardashevskiyconfig ZSTD_COMMON
34673f3d1b4SNick Terrell	select XXHASH
34773f3d1b4SNick Terrell	tristate
34873f3d1b4SNick Terrell
349637a642fSAlexey Kardashevskiyconfig ZSTD_COMPRESS
350637a642fSAlexey Kardashevskiy	select ZSTD_COMMON
351637a642fSAlexey Kardashevskiy	tristate
352637a642fSAlexey Kardashevskiy
35373f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS
354637a642fSAlexey Kardashevskiy	select ZSTD_COMMON
35573f3d1b4SNick Terrell	tristate
35673f3d1b4SNick Terrell
35724fa0402SLasse Collinsource "lib/xz/Kconfig"
35824fa0402SLasse Collin
3591da177e4SLinus Torvalds#
360c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with
361c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
362c8531ab3SH. Peter Anvin#
363c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP
3647856a16eSH. Peter Anvin	select ZLIB_INFLATE
365c8531ab3SH. Peter Anvin	tristate
366c8531ab3SH. Peter Anvin
367c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2
368c8531ab3SH. Peter Anvin	tristate
369c8531ab3SH. Peter Anvin
370c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA
371c8531ab3SH. Peter Anvin	tristate
372c8531ab3SH. Peter Anvin
3733ebe1243SLasse Collinconfig DECOMPRESS_XZ
3743ebe1243SLasse Collin	select XZ_DEC
3753ebe1243SLasse Collin	tristate
3763ebe1243SLasse Collin
377cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO
378cacb246fSAlbin Tonnerre	select LZO_DECOMPRESS
379cacb246fSAlbin Tonnerre	tristate
380cacb246fSAlbin Tonnerre
381e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4
382e76e1fdfSKyungsik Lee	select LZ4_DECOMPRESS
383e76e1fdfSKyungsik Lee	tristate
384e76e1fdfSKyungsik Lee
3854963bb2bSNick Terrellconfig DECOMPRESS_ZSTD
3864963bb2bSNick Terrell	select ZSTD_DECOMPRESS
3874963bb2bSNick Terrell	tristate
3884963bb2bSNick Terrell
389c8531ab3SH. Peter Anvin#
390f14f75b8SJes Sorensen# Generic allocator support is selected if needed
391f14f75b8SJes Sorensen#
392f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
3936341e62bSChristoph Jaeger	bool
394f14f75b8SJes Sorensen
395f14f75b8SJes Sorensen#
3961da177e4SLinus Torvalds# reed solomon support is select'ed if needed
3971da177e4SLinus Torvalds#
3981da177e4SLinus Torvaldsconfig REED_SOLOMON
3991da177e4SLinus Torvalds	tristate
4001da177e4SLinus Torvalds
4011da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
4026341e62bSChristoph Jaeger	bool
4031da177e4SLinus Torvalds
4041da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
4056341e62bSChristoph Jaeger	bool
4061da177e4SLinus Torvalds
4071da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
4086341e62bSChristoph Jaeger	bool
4091da177e4SLinus Torvalds
4101da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
4116341e62bSChristoph Jaeger	bool
4121da177e4SLinus Torvalds
413f7704347SDavid S. Miller#
414437aa565SIvan Djelic# BCH support is selected if needed
415437aa565SIvan Djelic#
416437aa565SIvan Djelicconfig BCH
417437aa565SIvan Djelic	tristate
41802d7f74aSJohn Sanpe	select BITREVERSE
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
4855fe93786SJason Gunthorpeconfig INTERVAL_TREE_SPAN_ITER
4865fe93786SJason Gunthorpe	bool
4875fe93786SJason Gunthorpe	depends on INTERVAL_TREE
4885fe93786SJason Gunthorpe
48902c02bf1SMatthew Wilcoxconfig XARRAY_MULTI
49057578c2eSMatthew Wilcox	bool
49102c02bf1SMatthew Wilcox	help
49202c02bf1SMatthew Wilcox	  Support entries which occupy multiple consecutive indices in the
49302c02bf1SMatthew Wilcox	  XArray.
49457578c2eSMatthew Wilcox
4953cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY
4963cb98950SDavid Howells	bool
4973cb98950SDavid Howells	help
4983cb98950SDavid Howells	  Generic associative array.  Can be searched and iterated over whilst
4993cb98950SDavid Howells	  it is being modified.  It is also reasonably quick to search and
5003cb98950SDavid Howells	  modify.  The algorithms are non-recursive, and the trees are highly
5013cb98950SDavid Howells	  capacious.
5023cb98950SDavid Howells
5033cb98950SDavid Howells	  See:
5043cb98950SDavid Howells
5055fb94e9cSMauro Carvalho Chehab		Documentation/core-api/assoc_array.rst
5063cb98950SDavid Howells
5073cb98950SDavid Howells	  for more information.
5083cb98950SDavid Howells
5098c8d2d96SKent Overstreetconfig CLOSURES
5108c8d2d96SKent Overstreet	bool
5118c8d2d96SKent Overstreet
5125ea81769SAl Viroconfig HAS_IOMEM
5136341e62bSChristoph Jaeger	bool
5145ea81769SAl Viro	depends on !NO_IOMEM
5155ea81769SAl Viro	default y
5165ea81769SAl Viro
517fcbfe812SNiklas Schnelleconfig HAS_IOPORT
518fcbfe812SNiklas Schnelle	bool
519fcbfe812SNiklas Schnelle
520ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP
5216341e62bSChristoph Jaeger	bool
522ce816fa8SUwe Kleine-König	depends on HAS_IOMEM && !NO_IOPORT_MAP
523ee36c2bfSAl Viro	default y
524ee36c2bfSAl Viro
525cf65a0f6SChristoph Hellwigsource "kernel/dma/Kconfig"
526411f0f3eSHeiko Carstens
527e80a0af4SBart Van Asscheconfig SGL_ALLOC
528e80a0af4SBart Van Assche	bool
529e80a0af4SBart Van Assche	default n
530e80a0af4SBart Van Assche
531a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER
532a4ce5a48SChristoph Hellwig	bool
533a4ce5a48SChristoph Hellwig
534928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
535928923c7SGeert Uytterhoeven	bool
536928923c7SGeert Uytterhoeven
537aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
538aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
539aab46da0SRusty Russell	help
540aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
541aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
542aab46da0SRusty Russell	  stack overflow.
543aab46da0SRusty Russell
5446f9c07beSYury Norovconfig FORCE_NR_CPUS
545fe5759d5SYury Norov       bool "Set number of CPUs at compile time"
546fe5759d5SYury Norov       depends on SMP && EXPERT && !COMPILE_TEST
5476f9c07beSYury Norov       help
5486f9c07beSYury Norov         Say Yes if you have NR_CPUS set to an actual number of possible
5496f9c07beSYury Norov         CPUs in your system, not to a default value. This forces the core
5506f9c07beSYury Norov         code to rely on compile-time value and optimize kernel routines
5516f9c07beSYury Norov         better.
5526f9c07beSYury Norov
553c39649c3SBen Hutchingsconfig CPU_RMAP
554c39649c3SBen Hutchings	bool
555c39649c3SBen Hutchings	depends on SMP
556c39649c3SBen Hutchings
55775957ba3STom Herbertconfig DQL
55875957ba3STom Herbert	bool
55975957ba3STom Herbert
560b0125085SGeorge Spelvinconfig GLOB
561b0125085SGeorge Spelvin	bool
562b0125085SGeorge Spelvin#	This actually supports modular compilation, but the module overhead
563b0125085SGeorge Spelvin#	is ridiculous for the amount of code involved.	Until an out-of-tree
564b0125085SGeorge Spelvin#	driver asks for it, we'll just link it directly it into the kernel
565b0125085SGeorge Spelvin#	when required.  Since we're ignoring out-of-tree users,	there's also
566b0125085SGeorge Spelvin#	no need bother prompting for a manual decision:
567b0125085SGeorge Spelvin#	prompt "glob_match() function"
568b0125085SGeorge Spelvin	help
569b0125085SGeorge Spelvin	  This option provides a glob_match function for performing
570b0125085SGeorge Spelvin	  simple text pattern matching.  It originated in the ATA code
571b0125085SGeorge Spelvin	  to blacklist particular drive models, but other device drivers
572b0125085SGeorge Spelvin	  may need similar functionality.
573b0125085SGeorge Spelvin
574b0125085SGeorge Spelvin	  All drivers in the Linux kernel tree that require this function
575b0125085SGeorge Spelvin	  should automatically select this option.  Say N unless you
576b0125085SGeorge Spelvin	  are compiling an out-of tree driver which tells you that it
577b0125085SGeorge Spelvin	  depends on this.
578b0125085SGeorge Spelvin
5795f9be824SGeorge Spelvinconfig GLOB_SELFTEST
580ba95b045SGeert Uytterhoeven	tristate "glob self-test on init"
5815f9be824SGeorge Spelvin	depends on GLOB
5825f9be824SGeorge Spelvin	help
5835f9be824SGeorge Spelvin	  This option enables a simple self-test of the glob_match
5845f9be824SGeorge Spelvin	  function on startup.	It is primarily useful for people
5855f9be824SGeorge Spelvin	  working on the code to ensure they haven't introduced any
5865f9be824SGeorge Spelvin	  regressions.
5875f9be824SGeorge Spelvin
5885f9be824SGeorge Spelvin	  It only adds a little bit of code and slows kernel boot (or
5895f9be824SGeorge Spelvin	  module load) by a small amount, so you're welcome to play with
5905f9be824SGeorge Spelvin	  it, but you probably don't need it.
5915f9be824SGeorge Spelvin
592e9cc8bddSGeert Uytterhoeven#
593e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed
594e9cc8bddSGeert Uytterhoeven#
595e9cc8bddSGeert Uytterhoevenconfig NLATTR
596e9cc8bddSGeert Uytterhoeven	bool
597e9cc8bddSGeert Uytterhoeven
59809d4e0edSPaul Mackerras#
59909d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed
60009d4e0edSPaul Mackerras#
60109d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64
60209d4e0edSPaul Mackerras       bool
60309d4e0edSPaul Mackerras
604b411b363SPhilipp Reisnerconfig LRU_CACHE
605b411b363SPhilipp Reisner	tristate
606b411b363SPhilipp Reisner
607c6df4b17SDavid Millerconfig CLZ_TAB
608c6df4b17SDavid Miller	bool
609c6df4b17SDavid Miller
610511cbce2SChristoph Hellwigconfig IRQ_POLL
611511cbce2SChristoph Hellwig	bool "IRQ polling library"
612511cbce2SChristoph Hellwig	help
613511cbce2SChristoph Hellwig	  Helper library to poll interrupt mitigation using polling.
614511cbce2SChristoph Hellwig
615d9c46b18SDmitry Kasatkinconfig MPILIB
6162e5f094bSDmitry Kasatkin	tristate
617c6df4b17SDavid Miller	select CLZ_TAB
618d9c46b18SDmitry Kasatkin	help
619d9c46b18SDmitry Kasatkin	  Multiprecision maths library from GnuPG.
620d9c46b18SDmitry Kasatkin	  It is used to implement RSA digital signature verification,
621d9c46b18SDmitry Kasatkin	  which is used by IMA/EVM digital signature extension.
622d9c46b18SDmitry Kasatkin
6235e8898e9SDmitry Kasatkinconfig SIGNATURE
6242e5f094bSDmitry Kasatkin	tristate
6250d1f64f6SDmitry Kasatkin	depends on KEYS
6260d1f64f6SDmitry Kasatkin	select CRYPTO
627be440ec7SDmitry Kasatkin	select CRYPTO_SHA1
628051dbb91SDmitry Kasatkin	select MPILIB
629051dbb91SDmitry Kasatkin	help
630051dbb91SDmitry Kasatkin	  Digital signature verification. Currently only RSA is supported.
631051dbb91SDmitry Kasatkin	  Implementation is done using GnuPG MPI library
632051dbb91SDmitry Kasatkin
6334f75da36STal Gilboaconfig DIMLIB
634424adc32SUwe Kleine-König	bool
6354f75da36STal Gilboa	help
6364f75da36STal Gilboa	  Dynamic Interrupt Moderation library.
637991ad2b2SRandy Dunlap	  Implements an algorithm for dynamically changing CQ moderation values
6384f75da36STal Gilboa	  according to run time performance.
6394f75da36STal Gilboa
640ab253839SDavid Daney#
641ab253839SDavid Daney# libfdt files, only selected if needed.
642ab253839SDavid Daney#
643ab253839SDavid Daneyconfig LIBFDT
644ab253839SDavid Daney	bool
645ab253839SDavid Daney
646a77ad6eaSDavid Howellsconfig OID_REGISTRY
647a77ad6eaSDavid Howells	tristate
648a77ad6eaSDavid Howells	help
649a77ad6eaSDavid Howells	  Enable fast lookup object identifier registry.
650a77ad6eaSDavid Howells
6510635eb8aSMatthew Garrettconfig UCS2_STRING
6520635eb8aSMatthew Garrett	tristate
6530635eb8aSMatthew Garrett
65400b26474SVincenzo Frascino#
65500b26474SVincenzo Frascino# generic vdso
65600b26474SVincenzo Frascino#
65700b26474SVincenzo Frascinosource "lib/vdso/Kconfig"
65800b26474SVincenzo Frascino
659ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig"
660ee89bd6bSGeert Uytterhoeven
661f8bcbe62SRobert Jarzmikconfig SG_SPLIT
662f8bcbe62SRobert Jarzmik	def_bool n
663f8bcbe62SRobert Jarzmik	help
6647f7e92f7SGeert Uytterhoeven	 Provides a helper to split scatterlists into chunks, each chunk being
6657f7e92f7SGeert Uytterhoeven	 a scatterlist. This should be selected by a driver or an API which
6667f7e92f7SGeert Uytterhoeven	 whishes to split a scatterlist amongst multiple DMA channels.
667f8bcbe62SRobert Jarzmik
6689b1d6c89SMing Linconfig SG_POOL
6699b1d6c89SMing Lin	def_bool n
6709b1d6c89SMing Lin	help
6719b1d6c89SMing Lin	 Provides a helper to allocate chained scatterlists. This should be
6729b1d6c89SMing Lin	 selected by a driver or an API which whishes to allocate chained
6739b1d6c89SMing Lin	 scatterlist.
6749b1d6c89SMing Lin
675308c09f1SLaura Abbott#
676308c09f1SLaura Abbott# sg chaining option
677308c09f1SLaura Abbott#
678308c09f1SLaura Abbott
6797c703e54SChristoph Hellwigconfig ARCH_NO_SG_CHAIN
680308c09f1SLaura Abbott	def_bool n
681308c09f1SLaura Abbott
68261031952SRoss Zwislerconfig ARCH_HAS_PMEM_API
68361031952SRoss Zwisler	bool
68461031952SRoss Zwisler
68533dd7075SDan Williamsconfig MEMREGION
68633dd7075SDan Williams	bool
68733dd7075SDan Williams
6881156b441SDavidlohr Buesoconfig ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION
6891156b441SDavidlohr Bueso	bool
6901156b441SDavidlohr Bueso
6919ffc1d19SDan Williamsconfig ARCH_HAS_MEMREMAP_COMPAT_ALIGN
6929ffc1d19SDan Williams	bool
6939ffc1d19SDan Williams
694bd79f947SChristoph Hellwig# use memcpy to implement user copies for nommu architectures
695bd79f947SChristoph Hellwigconfig UACCESS_MEMCPY
696bd79f947SChristoph Hellwig	bool
697bd79f947SChristoph Hellwig
6980aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE
6990aed55afSDan Williams	bool
7000aed55afSDan Williams
701ec6347bbSDan Williams# arch has a concept of a recoverable synchronous exception due to a
702ec6347bbSDan Williams# memory-read error like x86 machine-check or ARM data-abort, and
703ec6347bbSDan Williams# implements copy_mc_to_{user,kernel} to abort and report
704ec6347bbSDan Williams# 'bytes-transferred' if that exception fires when accessing the source
705ec6347bbSDan Williams# buffer.
706ec6347bbSDan Williamsconfig ARCH_HAS_COPY_MC
707522239b4SDan Williams	bool
708522239b4SDan Williams
709214d8ca6SThomas Gleixner# Temporary. Goes away when all archs are cleaned up
710214d8ca6SThomas Gleixnerconfig ARCH_STACKWALK
711214d8ca6SThomas Gleixner       bool
712214d8ca6SThomas Gleixner
713cd11016eSAlexander Potapenkoconfig STACKDEPOT
714cd11016eSAlexander Potapenko	bool
715cd11016eSAlexander Potapenko	select STACKTRACE
716*fc60e0caSAndrey Konovalov	help
717*fc60e0caSAndrey Konovalov	  Stack depot: stack trace storage that avoids duplication
718cd11016eSAlexander Potapenko
7192dba5eb1SVlastimil Babkaconfig STACKDEPOT_ALWAYS_INIT
7202dba5eb1SVlastimil Babka	bool
7212dba5eb1SVlastimil Babka	select STACKDEPOT
722*fc60e0caSAndrey Konovalov	help
723*fc60e0caSAndrey Konovalov	  Always initialize stack depot during early boot
724*fc60e0caSAndrey Konovalov
725*fc60e0caSAndrey Konovalovconfig STACKDEPOT_MAX_FRAMES
726*fc60e0caSAndrey Konovalov	int "Maximum number of frames in trace saved in stack depot"
727*fc60e0caSAndrey Konovalov	range 1 256
728*fc60e0caSAndrey Konovalov	default 64
729*fc60e0caSAndrey Konovalov	depends on STACKDEPOT
7302dba5eb1SVlastimil Babka
7314e66934eSEric Dumazetconfig REF_TRACKER
7324e66934eSEric Dumazet	bool
7334e66934eSEric Dumazet	depends on STACKTRACE_SUPPORT
7344e66934eSEric Dumazet	select STACKDEPOT
7354e66934eSEric Dumazet
73688459642SOmar Sandovalconfig SBITMAP
73788459642SOmar Sandoval	bool
73888459642SOmar Sandoval
73944091d29SJiri Pirkoconfig PARMAN
7409d25af69SGeert Uytterhoeven	tristate "parman" if COMPILE_TEST
74144091d29SJiri Pirko
7423dfdecc6SRandy Dunlapconfig OBJAGG
7433dfdecc6SRandy Dunlap	tristate "objagg" if COMPILE_TEST
7443dfdecc6SRandy Dunlap
745de9e82c3SNeilBrownconfig LWQ_TEST
746de9e82c3SNeilBrown	bool "Boot-time test for lwq queuing"
747de9e82c3SNeilBrown	help
748de9e82c3SNeilBrown          Run boot-time test of light-weight queuing.
749de9e82c3SNeilBrown
7502de4ff7bSThomas Grafendmenu
751b35cd988SPalmer Dabbelt
75280b0ca98SChristoph Hellwigconfig GENERIC_IOREMAP
75380b0ca98SChristoph Hellwig	bool
75480b0ca98SChristoph Hellwig
755e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3
756b35cd988SPalmer Dabbelt	bool
757b35cd988SPalmer Dabbelt
758e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3
759b35cd988SPalmer Dabbelt	bool
760b35cd988SPalmer Dabbelt
761e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3
762b35cd988SPalmer Dabbelt	bool
763b35cd988SPalmer Dabbelt
764e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3
765b35cd988SPalmer Dabbelt	bool
766b35cd988SPalmer Dabbelt
767e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2
768b35cd988SPalmer Dabbelt	bool
769b35cd988SPalmer Dabbelt
770e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2
771b35cd988SPalmer Dabbelt	bool
772b8265621SJacob Keller
773527701edSPalmer Dabbeltconfig GENERIC_LIB_DEVMEM_IS_ALLOWED
774527701edSPalmer Dabbelt	bool
775527701edSPalmer Dabbelt
776b8265621SJacob Kellerconfig PLDMFW
777b8265621SJacob Keller	bool
778b8265621SJacob Keller	default n
779b0706762SJames Bottomley
780b0706762SJames Bottomleyconfig ASN1_ENCODER
781b0706762SJames Bottomley       tristate
782cd705ea8SMichael Walle
783cd705ea8SMichael Walleconfig POLYNOMIAL
784cd705ea8SMichael Walle       tristate
785a103f466SDave Jiang
786a103f466SDave Jiangconfig FIRMWARE_TABLE
787a103f466SDave Jiang	bool
788