xref: /linux/lib/Kconfig (revision 5fb94e9ca333f0fe1d96de06704a79942b3832c3)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Library configuration
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
54370aa4aSLai Jiangshanconfig BINARY_PRINTF
64370aa4aSLai Jiangshan	def_bool n
74370aa4aSLai Jiangshan
81da177e4SLinus Torvaldsmenu "Library routines"
91da177e4SLinus Torvalds
10f5e70d0fSDavid Woodhouseconfig RAID6_PQ
11f5e70d0fSDavid Woodhouse	tristate
12f5e70d0fSDavid Woodhouse
13a5cfc1ecSAkinobu Mitaconfig BITREVERSE
14a5cfc1ecSAkinobu Mita	tristate
15a5cfc1ecSAkinobu Mita
16556d2f05SYalin Wangconfig HAVE_ARCH_BITREVERSE
17841c0090SChristoph Jaeger	bool
18556d2f05SYalin Wang	default n
19556d2f05SYalin Wang	depends on BITREVERSE
20556d2f05SYalin Wang	help
219e522c0dSAndrew Morton	  This option enables the use of hardware bit-reversal instructions on
229e522c0dSAndrew Morton	  architectures which support such operations.
23556d2f05SYalin Wang
248759ef32SOskar Schirmerconfig RATIONAL
256341e62bSChristoph Jaeger	bool
268759ef32SOskar Schirmer
272922585bSDavid S. Millerconfig GENERIC_STRNCPY_FROM_USER
282922585bSDavid S. Miller	bool
292922585bSDavid S. Miller
30a08c5356SLinus Torvaldsconfig GENERIC_STRNLEN_USER
31a08c5356SLinus Torvalds	bool
32a08c5356SLinus Torvalds
334cd5773aSAndy Shevchenkoconfig GENERIC_NET_UTILS
344cd5773aSAndy Shevchenko	bool
354cd5773aSAndy Shevchenko
3619870defSAlexander van Heukelumconfig GENERIC_FIND_FIRST_BIT
379ba16087SJan Beulich	bool
3819870defSAlexander van Heukelum
39b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP
40b923650bSMichael S. Tsirkin	bool
41b923650bSMichael S. Tsirkin
4266eab4dfSMichael S. Tsirkinconfig GENERIC_PCI_IOMAP
4366eab4dfSMichael S. Tsirkin	bool
4466eab4dfSMichael S. Tsirkin
454673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP
464673ca8eSMichael S. Tsirkin	bool
4766eab4dfSMichael S. Tsirkin	select GENERIC_PCI_IOMAP
484673ca8eSMichael S. Tsirkin
494ccf4beaSWolfram Sangconfig STMP_DEVICE
504ccf4beaSWolfram Sang	bool
514ccf4beaSWolfram Sang
52bc08b449SLinus Torvaldsconfig ARCH_USE_CMPXCHG_LOCKREF
53bc08b449SLinus Torvalds	bool
54bc08b449SLinus Torvalds
5572d93104SLinus Torvaldsconfig ARCH_HAS_FAST_MULTIPLIER
5672d93104SLinus Torvalds	bool
5772d93104SLinus Torvalds
58031e3601SZhichang Yuanconfig INDIRECT_PIO
59031e3601SZhichang Yuan	bool "Access I/O in non-MMIO mode"
60031e3601SZhichang Yuan	depends on ARM64
61031e3601SZhichang Yuan	help
62031e3601SZhichang Yuan	  On some platforms where no separate I/O space exists, there are I/O
63031e3601SZhichang Yuan	  hosts which can not be accessed in MMIO mode. Using the logical PIO
64031e3601SZhichang Yuan	  mechanism, the host-local I/O resource can be mapped into system
65031e3601SZhichang Yuan	  logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the
66031e3601SZhichang Yuan	  system can access the I/O devices with the mapped-logic PIO through
67031e3601SZhichang Yuan	  I/O accessors.
68031e3601SZhichang Yuan
69031e3601SZhichang Yuan	  This way has relatively little I/O performance cost. Please make
70031e3601SZhichang Yuan	  sure your devices really need this configure item enabled.
71031e3601SZhichang Yuan
72031e3601SZhichang Yuan	  When in doubt, say N.
73031e3601SZhichang Yuan
741da177e4SLinus Torvaldsconfig CRC_CCITT
751da177e4SLinus Torvalds	tristate "CRC-CCITT functions"
761da177e4SLinus Torvalds	help
771da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
781da177e4SLinus Torvalds	  modules require CRC-CCITT functions, but a module built outside
791da177e4SLinus Torvalds	  the kernel tree does. Such modules that use library CRC-CCITT
801da177e4SLinus Torvalds	  functions require M here.
811da177e4SLinus Torvalds
827657ec1fSEvgeniy Polyakovconfig CRC16
837657ec1fSEvgeniy Polyakov	tristate "CRC16 functions"
847657ec1fSEvgeniy Polyakov	help
857657ec1fSEvgeniy Polyakov	  This option is provided for the case where no in-kernel-tree
867657ec1fSEvgeniy Polyakov	  modules require CRC16 functions, but a module built outside
877657ec1fSEvgeniy Polyakov	  the kernel tree does. Such modules that use library CRC16
887657ec1fSEvgeniy Polyakov	  functions require M here.
897657ec1fSEvgeniy Polyakov
90f11f594eSMartin K. Petersenconfig CRC_T10DIF
91f11f594eSMartin K. Petersen	tristate "CRC calculation for the T10 Data Integrity Field"
9268411521SHerbert Xu	select CRYPTO
9368411521SHerbert Xu	select CRYPTO_CRCT10DIF
94f11f594eSMartin K. Petersen	help
95f11f594eSMartin K. Petersen	  This option is only needed if a module that's not in the
96f11f594eSMartin K. Petersen	  kernel tree needs to calculate CRC checks for use with the
97f11f594eSMartin K. Petersen	  SCSI data integrity subsystem.
98f11f594eSMartin K. Petersen
993e7cbae7SIvo van Doornconfig CRC_ITU_T
1003e7cbae7SIvo van Doorn	tristate "CRC ITU-T V.41 functions"
1013e7cbae7SIvo van Doorn	help
1023e7cbae7SIvo van Doorn	  This option is provided for the case where no in-kernel-tree
1033e7cbae7SIvo van Doorn	  modules require CRC ITU-T V.41 functions, but a module built outside
1043e7cbae7SIvo van Doorn	  the kernel tree does. Such modules that use library CRC ITU-T V.41
1053e7cbae7SIvo van Doorn	  functions require M here.
1063e7cbae7SIvo van Doorn
1071da177e4SLinus Torvaldsconfig CRC32
10846c5801eSDarrick J. Wong	tristate "CRC32/CRC32c functions"
1091da177e4SLinus Torvalds	default y
110906d66dfSAkinobu Mita	select BITREVERSE
1111da177e4SLinus Torvalds	help
1121da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
11346c5801eSDarrick J. Wong	  modules require CRC32/CRC32c functions, but a module built outside
11446c5801eSDarrick J. Wong	  the kernel tree does. Such modules that use library CRC32/CRC32c
11546c5801eSDarrick J. Wong	  functions require M here.
1161da177e4SLinus Torvalds
1173863ef31SBob Pearsonconfig CRC32_SELFTEST
1185fb7f874SGeert Uytterhoeven	tristate "CRC32 perform self test on init"
1193863ef31SBob Pearson	depends on CRC32
1203863ef31SBob Pearson	help
1213863ef31SBob Pearson	  This option enables the CRC32 library functions to perform a
1223863ef31SBob Pearson	  self test on initialization. The self test computes crc32_le
1233863ef31SBob Pearson	  and crc32_be over byte strings with random alignment and length
1243863ef31SBob Pearson	  and computes the total elapsed time and number of bytes processed.
1253863ef31SBob Pearson
1265cde7656SDarrick J. Wongchoice
1275cde7656SDarrick J. Wong	prompt "CRC32 implementation"
1285cde7656SDarrick J. Wong	depends on CRC32
1295cde7656SDarrick J. Wong	default CRC32_SLICEBY8
13082edb4baSDarrick J. Wong	help
13182edb4baSDarrick J. Wong	  This option allows a kernel builder to override the default choice
13282edb4baSDarrick J. Wong	  of CRC32 algorithm.  Choose the default ("slice by 8") unless you
13382edb4baSDarrick J. Wong	  know that you need one of the others.
1345cde7656SDarrick J. Wong
1355cde7656SDarrick J. Wongconfig CRC32_SLICEBY8
1365cde7656SDarrick J. Wong	bool "Slice by 8 bytes"
1375cde7656SDarrick J. Wong	help
1385cde7656SDarrick J. Wong	  Calculate checksum 8 bytes at a time with a clever slicing algorithm.
1395cde7656SDarrick J. Wong	  This is the fastest algorithm, but comes with a 8KiB lookup table.
1405cde7656SDarrick J. Wong	  Most modern processors have enough cache to hold this table without
1415cde7656SDarrick J. Wong	  thrashing the cache.
1425cde7656SDarrick J. Wong
1435cde7656SDarrick J. Wong	  This is the default implementation choice.  Choose this one unless
1445cde7656SDarrick J. Wong	  you have a good reason not to.
1455cde7656SDarrick J. Wong
1465cde7656SDarrick J. Wongconfig CRC32_SLICEBY4
1475cde7656SDarrick J. Wong	bool "Slice by 4 bytes"
1485cde7656SDarrick J. Wong	help
1495cde7656SDarrick J. Wong	  Calculate checksum 4 bytes at a time with a clever slicing algorithm.
1505cde7656SDarrick J. Wong	  This is a bit slower than slice by 8, but has a smaller 4KiB lookup
1515cde7656SDarrick J. Wong	  table.
1525cde7656SDarrick J. Wong
1535cde7656SDarrick J. Wong	  Only choose this option if you know what you are doing.
1545cde7656SDarrick J. Wong
1555cde7656SDarrick J. Wongconfig CRC32_SARWATE
1565cde7656SDarrick J. Wong	bool "Sarwate's Algorithm (one byte at a time)"
1575cde7656SDarrick J. Wong	help
1585cde7656SDarrick J. Wong	  Calculate checksum a byte at a time using Sarwate's algorithm.  This
1595cde7656SDarrick J. Wong	  is not particularly fast, but has a small 256 byte lookup table.
1605cde7656SDarrick J. Wong
1615cde7656SDarrick J. Wong	  Only choose this option if you know what you are doing.
1625cde7656SDarrick J. Wong
1635cde7656SDarrick J. Wongconfig CRC32_BIT
1645cde7656SDarrick J. Wong	bool "Classic Algorithm (one bit at a time)"
1655cde7656SDarrick J. Wong	help
1665cde7656SDarrick J. Wong	  Calculate checksum one bit at a time.  This is VERY slow, but has
1675cde7656SDarrick J. Wong	  no lookup table.  This is provided as a debugging option.
1685cde7656SDarrick J. Wong
1695cde7656SDarrick J. Wong	  Only choose this option if you are debugging crc32.
1705cde7656SDarrick J. Wong
1715cde7656SDarrick J. Wongendchoice
1725cde7656SDarrick J. Wong
1730cbaa448SJeremy Kerrconfig CRC4
1740cbaa448SJeremy Kerr	tristate "CRC4 functions"
1750cbaa448SJeremy Kerr	help
1760cbaa448SJeremy Kerr	  This option is provided for the case where no in-kernel-tree
1770cbaa448SJeremy Kerr	  modules require CRC4 functions, but a module built outside
1780cbaa448SJeremy Kerr	  the kernel tree does. Such modules that use library CRC4
1790cbaa448SJeremy Kerr	  functions require M here.
1800cbaa448SJeremy Kerr
181ad241528SJan Nikitenkoconfig CRC7
182ad241528SJan Nikitenko	tristate "CRC7 functions"
183ad241528SJan Nikitenko	help
184ad241528SJan Nikitenko	  This option is provided for the case where no in-kernel-tree
185ad241528SJan Nikitenko	  modules require CRC7 functions, but a module built outside
186ad241528SJan Nikitenko	  the kernel tree does. Such modules that use library CRC7
187ad241528SJan Nikitenko	  functions require M here.
188ad241528SJan Nikitenko
1891da177e4SLinus Torvaldsconfig LIBCRC32C
1901da177e4SLinus Torvalds	tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
19193027354SHerbert Xu	select CRYPTO
19269c35efcSHerbert Xu	select CRYPTO_CRC32C
1931da177e4SLinus Torvalds	help
1941da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
1951da177e4SLinus Torvalds	  modules require CRC32c functions, but a module built outside the
1961da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32c functions
1971da177e4SLinus Torvalds	  require M here.  See Castagnoli93.
1981da177e4SLinus Torvalds	  Module will be libcrc32c.
1991da177e4SLinus Torvalds
2007150962dSArend van Sprielconfig CRC8
2017150962dSArend van Spriel	tristate "CRC8 function"
2027150962dSArend van Spriel	help
2037150962dSArend van Spriel	  This option provides CRC8 function. Drivers may select this
2047150962dSArend van Spriel	  when they need to do cyclic redundancy check according CRC8
2057150962dSArend van Spriel	  algorithm. Module will be called crc8.
2067150962dSArend van Spriel
2075d240522SNick Terrellconfig XXHASH
2085d240522SNick Terrell	tristate
2095d240522SNick Terrell
210e65e1fc2SAl Viroconfig AUDIT_GENERIC
211e65e1fc2SAl Viro	bool
212e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
213e65e1fc2SAl Viro	default y
214e65e1fc2SAl Viro
2154b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC
2164b588411SAKASHI Takahiro	bool
2174b588411SAKASHI Takahiro	default n
2184b588411SAKASHI Takahiro
2194b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC
2204b588411SAKASHI Takahiro	bool
2214b588411SAKASHI Takahiro	depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT
2224b588411SAKASHI Takahiro	default y
2234b588411SAKASHI Takahiro
224a6a9c0f1SDaniel Borkmannconfig RANDOM32_SELFTEST
225a6a9c0f1SDaniel Borkmann	bool "PRNG perform self test on init"
226a6a9c0f1SDaniel Borkmann	default n
227a6a9c0f1SDaniel Borkmann	help
228a6a9c0f1SDaniel Borkmann	  This option enables the 32 bit PRNG library functions to perform a
229a6a9c0f1SDaniel Borkmann	  self test on initialization.
230a6a9c0f1SDaniel Borkmann
2311da177e4SLinus Torvalds#
2321da177e4SLinus Torvalds# compression support is select'ed if needed
2331da177e4SLinus Torvalds#
2342da572c9SDan Streetmanconfig 842_COMPRESS
2355b571677SArnd Bergmann	select CRC32
2362da572c9SDan Streetman	tristate
2372da572c9SDan Streetman
2382da572c9SDan Streetmanconfig 842_DECOMPRESS
2395b571677SArnd Bergmann	select CRC32
2402da572c9SDan Streetman	tristate
2412da572c9SDan Streetman
2421da177e4SLinus Torvaldsconfig ZLIB_INFLATE
2431da177e4SLinus Torvalds	tristate
2441da177e4SLinus Torvalds
2451da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
2461da177e4SLinus Torvalds	tristate
2471fd4e5c3SAndrew Morton	select BITREVERSE
2481da177e4SLinus Torvalds
24964c70b1cSRichard Purdieconfig LZO_COMPRESS
25064c70b1cSRichard Purdie	tristate
25164c70b1cSRichard Purdie
25264c70b1cSRichard Purdieconfig LZO_DECOMPRESS
25364c70b1cSRichard Purdie	tristate
25464c70b1cSRichard Purdie
255c72ac7a1SChanho Minconfig LZ4_COMPRESS
256c72ac7a1SChanho Min	tristate
257c72ac7a1SChanho Min
258c72ac7a1SChanho Minconfig LZ4HC_COMPRESS
259c72ac7a1SChanho Min	tristate
260c72ac7a1SChanho Min
261e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS
262e76e1fdfSKyungsik Lee	tristate
263e76e1fdfSKyungsik Lee
26473f3d1b4SNick Terrellconfig ZSTD_COMPRESS
26573f3d1b4SNick Terrell	select XXHASH
26673f3d1b4SNick Terrell	tristate
26773f3d1b4SNick Terrell
26873f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS
26973f3d1b4SNick Terrell	select XXHASH
27073f3d1b4SNick Terrell	tristate
27173f3d1b4SNick Terrell
27224fa0402SLasse Collinsource "lib/xz/Kconfig"
27324fa0402SLasse Collin
2741da177e4SLinus Torvalds#
275c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with
276c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
277c8531ab3SH. Peter Anvin#
278c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP
2797856a16eSH. Peter Anvin	select ZLIB_INFLATE
280c8531ab3SH. Peter Anvin	tristate
281c8531ab3SH. Peter Anvin
282c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2
283c8531ab3SH. Peter Anvin	tristate
284c8531ab3SH. Peter Anvin
285c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA
286c8531ab3SH. Peter Anvin	tristate
287c8531ab3SH. Peter Anvin
2883ebe1243SLasse Collinconfig DECOMPRESS_XZ
2893ebe1243SLasse Collin	select XZ_DEC
2903ebe1243SLasse Collin	tristate
2913ebe1243SLasse Collin
292cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO
293cacb246fSAlbin Tonnerre	select LZO_DECOMPRESS
294cacb246fSAlbin Tonnerre	tristate
295cacb246fSAlbin Tonnerre
296e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4
297e76e1fdfSKyungsik Lee	select LZ4_DECOMPRESS
298e76e1fdfSKyungsik Lee	tristate
299e76e1fdfSKyungsik Lee
300c8531ab3SH. Peter Anvin#
301f14f75b8SJes Sorensen# Generic allocator support is selected if needed
302f14f75b8SJes Sorensen#
303f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
3046341e62bSChristoph Jaeger	bool
305f14f75b8SJes Sorensen
306f14f75b8SJes Sorensen#
3071da177e4SLinus Torvalds# reed solomon support is select'ed if needed
3081da177e4SLinus Torvalds#
3091da177e4SLinus Torvaldsconfig REED_SOLOMON
3101da177e4SLinus Torvalds	tristate
3111da177e4SLinus Torvalds
3121da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
3136341e62bSChristoph Jaeger	bool
3141da177e4SLinus Torvalds
3151da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
3166341e62bSChristoph Jaeger	bool
3171da177e4SLinus Torvalds
3181da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
3196341e62bSChristoph Jaeger	bool
3201da177e4SLinus Torvalds
3211da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
3226341e62bSChristoph Jaeger	bool
3231da177e4SLinus Torvalds
324f7704347SDavid S. Miller#
325437aa565SIvan Djelic# BCH support is selected if needed
326437aa565SIvan Djelic#
327437aa565SIvan Djelicconfig BCH
328437aa565SIvan Djelic	tristate
329437aa565SIvan Djelic
330437aa565SIvan Djelicconfig BCH_CONST_PARAMS
3316341e62bSChristoph Jaeger	bool
332437aa565SIvan Djelic	help
333437aa565SIvan Djelic	  Drivers may select this option to force specific constant
334437aa565SIvan Djelic	  values for parameters 'm' (Galois field order) and 't'
335437aa565SIvan Djelic	  (error correction capability). Those specific values must
336437aa565SIvan Djelic	  be set by declaring default values for symbols BCH_CONST_M
337437aa565SIvan Djelic	  and BCH_CONST_T.
338437aa565SIvan Djelic	  Doing so will enable extra compiler optimizations,
339437aa565SIvan Djelic	  improving encoding and decoding performance up to 2x for
340437aa565SIvan Djelic	  usual (m,t) values (typically such that m*t < 200).
341437aa565SIvan Djelic	  When this option is selected, the BCH library supports
342437aa565SIvan Djelic	  only a single (m,t) configuration. This is mainly useful
343437aa565SIvan Djelic	  for NAND flash board drivers requiring known, fixed BCH
344437aa565SIvan Djelic	  parameters.
345437aa565SIvan Djelic
346437aa565SIvan Djelicconfig BCH_CONST_M
347437aa565SIvan Djelic	int
348437aa565SIvan Djelic	range 5 15
349437aa565SIvan Djelic	help
350437aa565SIvan Djelic	  Constant value for Galois field order 'm'. If 'k' is the
351437aa565SIvan Djelic	  number of data bits to protect, 'm' should be chosen such
352437aa565SIvan Djelic	  that (k + m*t) <= 2**m - 1.
353437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
354437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
355437aa565SIvan Djelic
356437aa565SIvan Djelicconfig BCH_CONST_T
357437aa565SIvan Djelic	int
358437aa565SIvan Djelic	help
359437aa565SIvan Djelic	  Constant value for error correction capability in bits 't'.
360437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
361437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
362437aa565SIvan Djelic
363437aa565SIvan Djelic#
364f7704347SDavid S. Miller# Textsearch support is select'ed if needed
365f7704347SDavid S. Miller#
3662de4ff7bSThomas Grafconfig TEXTSEARCH
3676341e62bSChristoph Jaeger	bool
3681da177e4SLinus Torvalds
369df3fb93aSThomas Grafconfig TEXTSEARCH_KMP
370f7704347SDavid S. Miller	tristate
371df3fb93aSThomas Graf
3728082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM
37329cb9f9cSDavid S. Miller	tristate
3748082e4edSPablo Neira Ayuso
3756408f79cSThomas Grafconfig TEXTSEARCH_FSM
376f7704347SDavid S. Miller	tristate
3776408f79cSThomas Graf
3785db53f3eSJoern Engelconfig BTREE
3796341e62bSChristoph Jaeger	bool
3805db53f3eSJoern Engel
381a88cc108SChris Wilsonconfig INTERVAL_TREE
3826341e62bSChristoph Jaeger	bool
383a88cc108SChris Wilson	help
384a88cc108SChris Wilson	  Simple, embeddable, interval-tree. Can find the start of an
385a88cc108SChris Wilson	  overlapping range in log(n) time and then iterate over all
386a88cc108SChris Wilson	  overlapping nodes. The algorithm is implemented as an
387a88cc108SChris Wilson	  augmented rbtree.
388a88cc108SChris Wilson
389a88cc108SChris Wilson	  See:
390a88cc108SChris Wilson
391a88cc108SChris Wilson		Documentation/rbtree.txt
392a88cc108SChris Wilson
393a88cc108SChris Wilson	  for more information.
394a88cc108SChris Wilson
39557578c2eSMatthew Wilcoxconfig RADIX_TREE_MULTIORDER
39657578c2eSMatthew Wilcox	bool
39757578c2eSMatthew Wilcox
3983cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY
3993cb98950SDavid Howells	bool
4003cb98950SDavid Howells	help
4013cb98950SDavid Howells	  Generic associative array.  Can be searched and iterated over whilst
4023cb98950SDavid Howells	  it is being modified.  It is also reasonably quick to search and
4033cb98950SDavid Howells	  modify.  The algorithms are non-recursive, and the trees are highly
4043cb98950SDavid Howells	  capacious.
4053cb98950SDavid Howells
4063cb98950SDavid Howells	  See:
4073cb98950SDavid Howells
408*5fb94e9cSMauro Carvalho Chehab		Documentation/core-api/assoc_array.rst
4093cb98950SDavid Howells
4103cb98950SDavid Howells	  for more information.
4113cb98950SDavid Howells
4125ea81769SAl Viroconfig HAS_IOMEM
4136341e62bSChristoph Jaeger	bool
4145ea81769SAl Viro	depends on !NO_IOMEM
415087fafd1SRichard Weinberger	select GENERIC_IO
4165ea81769SAl Viro	default y
4175ea81769SAl Viro
418ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP
4196341e62bSChristoph Jaeger	bool
420ce816fa8SUwe Kleine-König	depends on HAS_IOMEM && !NO_IOPORT_MAP
421ee36c2bfSAl Viro	default y
422ee36c2bfSAl Viro
423411f0f3eSHeiko Carstensconfig HAS_DMA
4246341e62bSChristoph Jaeger	bool
425411f0f3eSHeiko Carstens	depends on !NO_DMA
426411f0f3eSHeiko Carstens	default y
427411f0f3eSHeiko Carstens
428e80a0af4SBart Van Asscheconfig SGL_ALLOC
429e80a0af4SBart Van Assche	bool
430e80a0af4SBart Van Assche	default n
431e80a0af4SBart Van Assche
43286596f0aSChristoph Hellwigconfig NEED_SG_DMA_LENGTH
43386596f0aSChristoph Hellwig	bool
43486596f0aSChristoph Hellwig
435f616ab59SChristoph Hellwigconfig NEED_DMA_MAP_STATE
436f616ab59SChristoph Hellwig	bool
437f616ab59SChristoph Hellwig
4384965a687SChristoph Hellwigconfig ARCH_DMA_ADDR_T_64BIT
4394965a687SChristoph Hellwig	def_bool 64BIT || PHYS_ADDR_T_64BIT
4404965a687SChristoph Hellwig
441a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER
442a4ce5a48SChristoph Hellwig	bool
443a4ce5a48SChristoph Hellwig
444782e6769SChristoph Hellwigconfig ARCH_HAS_SYNC_DMA_FOR_DEVICE
445782e6769SChristoph Hellwig	bool
446782e6769SChristoph Hellwig
447782e6769SChristoph Hellwigconfig ARCH_HAS_SYNC_DMA_FOR_CPU
448782e6769SChristoph Hellwig	bool
449782e6769SChristoph Hellwig	select NEED_DMA_MAP_STATE
450782e6769SChristoph Hellwig
451002e6745SChristoph Hellwigconfig DMA_DIRECT_OPS
4527844572cSBart Van Assche	bool
45335ddb69cSChristoph Hellwig	depends on HAS_DMA
4547844572cSBart Van Assche
455782e6769SChristoph Hellwigconfig DMA_NONCOHERENT_OPS
456782e6769SChristoph Hellwig	bool
457782e6769SChristoph Hellwig	depends on HAS_DMA
458782e6769SChristoph Hellwig	select DMA_DIRECT_OPS
459782e6769SChristoph Hellwig
460782e6769SChristoph Hellwigconfig DMA_NONCOHERENT_MMAP
461782e6769SChristoph Hellwig	bool
462782e6769SChristoph Hellwig	depends on DMA_NONCOHERENT_OPS
463782e6769SChristoph Hellwig
464782e6769SChristoph Hellwigconfig DMA_NONCOHERENT_CACHE_SYNC
465782e6769SChristoph Hellwig	bool
466782e6769SChristoph Hellwig	depends on DMA_NONCOHERENT_OPS
467782e6769SChristoph Hellwig
468551199acSBart Van Asscheconfig DMA_VIRT_OPS
469551199acSBart Van Assche	bool
47035ddb69cSChristoph Hellwig	depends on HAS_DMA
471551199acSBart Van Assche
47209230cbcSChristoph Hellwigconfig SWIOTLB
47309230cbcSChristoph Hellwig	bool
47409230cbcSChristoph Hellwig	select DMA_DIRECT_OPS
47509230cbcSChristoph Hellwig	select NEED_DMA_MAP_STATE
47609230cbcSChristoph Hellwig
477928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
478928923c7SGeert Uytterhoeven	bool
479928923c7SGeert Uytterhoeven
480aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
481aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
482aab46da0SRusty Russell	help
483aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
484aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
485aab46da0SRusty Russell	  stack overflow.
486aab46da0SRusty Russell
487c39649c3SBen Hutchingsconfig CPU_RMAP
488c39649c3SBen Hutchings	bool
489c39649c3SBen Hutchings	depends on SMP
490c39649c3SBen Hutchings
49175957ba3STom Herbertconfig DQL
49275957ba3STom Herbert	bool
49375957ba3STom Herbert
494b0125085SGeorge Spelvinconfig GLOB
495b0125085SGeorge Spelvin	bool
496b0125085SGeorge Spelvin#	This actually supports modular compilation, but the module overhead
497b0125085SGeorge Spelvin#	is ridiculous for the amount of code involved.	Until an out-of-tree
498b0125085SGeorge Spelvin#	driver asks for it, we'll just link it directly it into the kernel
499b0125085SGeorge Spelvin#	when required.  Since we're ignoring out-of-tree users,	there's also
500b0125085SGeorge Spelvin#	no need bother prompting for a manual decision:
501b0125085SGeorge Spelvin#	prompt "glob_match() function"
502b0125085SGeorge Spelvin	help
503b0125085SGeorge Spelvin	  This option provides a glob_match function for performing
504b0125085SGeorge Spelvin	  simple text pattern matching.  It originated in the ATA code
505b0125085SGeorge Spelvin	  to blacklist particular drive models, but other device drivers
506b0125085SGeorge Spelvin	  may need similar functionality.
507b0125085SGeorge Spelvin
508b0125085SGeorge Spelvin	  All drivers in the Linux kernel tree that require this function
509b0125085SGeorge Spelvin	  should automatically select this option.  Say N unless you
510b0125085SGeorge Spelvin	  are compiling an out-of tree driver which tells you that it
511b0125085SGeorge Spelvin	  depends on this.
512b0125085SGeorge Spelvin
5135f9be824SGeorge Spelvinconfig GLOB_SELFTEST
514ba95b045SGeert Uytterhoeven	tristate "glob self-test on init"
5155f9be824SGeorge Spelvin	depends on GLOB
5165f9be824SGeorge Spelvin	help
5175f9be824SGeorge Spelvin	  This option enables a simple self-test of the glob_match
5185f9be824SGeorge Spelvin	  function on startup.	It is primarily useful for people
5195f9be824SGeorge Spelvin	  working on the code to ensure they haven't introduced any
5205f9be824SGeorge Spelvin	  regressions.
5215f9be824SGeorge Spelvin
5225f9be824SGeorge Spelvin	  It only adds a little bit of code and slows kernel boot (or
5235f9be824SGeorge Spelvin	  module load) by a small amount, so you're welcome to play with
5245f9be824SGeorge Spelvin	  it, but you probably don't need it.
5255f9be824SGeorge Spelvin
526e9cc8bddSGeert Uytterhoeven#
527e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed
528e9cc8bddSGeert Uytterhoeven#
529e9cc8bddSGeert Uytterhoevenconfig NLATTR
530e9cc8bddSGeert Uytterhoeven	bool
531e9cc8bddSGeert Uytterhoeven
53209d4e0edSPaul Mackerras#
53309d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed
53409d4e0edSPaul Mackerras#
53509d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64
53609d4e0edSPaul Mackerras       bool
53709d4e0edSPaul Mackerras
538b411b363SPhilipp Reisnerconfig LRU_CACHE
539b411b363SPhilipp Reisner	tristate
540b411b363SPhilipp Reisner
541c6df4b17SDavid Millerconfig CLZ_TAB
542c6df4b17SDavid Miller	bool
543c6df4b17SDavid Miller
54410f8113eSArend van Sprielconfig CORDIC
545d89ce936SMichael Witten	tristate "CORDIC algorithm"
54610f8113eSArend van Spriel	help
547435a95c5SMichael Witten	  This option provides an implementation of the CORDIC algorithm;
548435a95c5SMichael Witten	  calculations are in fixed point. Module will be called cordic.
54910f8113eSArend van Spriel
5509c1c21a0SAneesh Vconfig DDR
5519c1c21a0SAneesh V	bool "JEDEC DDR data"
5529c1c21a0SAneesh V	help
5539c1c21a0SAneesh V	  Data from JEDEC specs for DDR SDRAM memories,
5549c1c21a0SAneesh V	  particularly the AC timing parameters and addressing
5559c1c21a0SAneesh V	  information. This data is useful for drivers handling
5569c1c21a0SAneesh V	  DDR SDRAM controllers.
5579c1c21a0SAneesh V
558511cbce2SChristoph Hellwigconfig IRQ_POLL
559511cbce2SChristoph Hellwig	bool "IRQ polling library"
560511cbce2SChristoph Hellwig	help
561511cbce2SChristoph Hellwig	  Helper library to poll interrupt mitigation using polling.
562511cbce2SChristoph Hellwig
563d9c46b18SDmitry Kasatkinconfig MPILIB
5642e5f094bSDmitry Kasatkin	tristate
565c6df4b17SDavid Miller	select CLZ_TAB
566d9c46b18SDmitry Kasatkin	help
567d9c46b18SDmitry Kasatkin	  Multiprecision maths library from GnuPG.
568d9c46b18SDmitry Kasatkin	  It is used to implement RSA digital signature verification,
569d9c46b18SDmitry Kasatkin	  which is used by IMA/EVM digital signature extension.
570d9c46b18SDmitry Kasatkin
5715e8898e9SDmitry Kasatkinconfig SIGNATURE
5722e5f094bSDmitry Kasatkin	tristate
5730d1f64f6SDmitry Kasatkin	depends on KEYS
5740d1f64f6SDmitry Kasatkin	select CRYPTO
575be440ec7SDmitry Kasatkin	select CRYPTO_SHA1
576051dbb91SDmitry Kasatkin	select MPILIB
577051dbb91SDmitry Kasatkin	help
578051dbb91SDmitry Kasatkin	  Digital signature verification. Currently only RSA is supported.
579051dbb91SDmitry Kasatkin	  Implementation is done using GnuPG MPI library
580051dbb91SDmitry Kasatkin
581ab253839SDavid Daney#
582ab253839SDavid Daney# libfdt files, only selected if needed.
583ab253839SDavid Daney#
584ab253839SDavid Daneyconfig LIBFDT
585ab253839SDavid Daney	bool
586ab253839SDavid Daney
587a77ad6eaSDavid Howellsconfig OID_REGISTRY
588a77ad6eaSDavid Howells	tristate
589a77ad6eaSDavid Howells	help
590a77ad6eaSDavid Howells	  Enable fast lookup object identifier registry.
591a77ad6eaSDavid Howells
5920635eb8aSMatthew Garrettconfig UCS2_STRING
5930635eb8aSMatthew Garrett        tristate
5940635eb8aSMatthew Garrett
595ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig"
596ee89bd6bSGeert Uytterhoeven
597f8bcbe62SRobert Jarzmikconfig SG_SPLIT
598f8bcbe62SRobert Jarzmik	def_bool n
599f8bcbe62SRobert Jarzmik	help
6007f7e92f7SGeert Uytterhoeven	 Provides a helper to split scatterlists into chunks, each chunk being
6017f7e92f7SGeert Uytterhoeven	 a scatterlist. This should be selected by a driver or an API which
6027f7e92f7SGeert Uytterhoeven	 whishes to split a scatterlist amongst multiple DMA channels.
603f8bcbe62SRobert Jarzmik
6049b1d6c89SMing Linconfig SG_POOL
6059b1d6c89SMing Lin	def_bool n
6069b1d6c89SMing Lin	help
6079b1d6c89SMing Lin	 Provides a helper to allocate chained scatterlists. This should be
6089b1d6c89SMing Lin	 selected by a driver or an API which whishes to allocate chained
6099b1d6c89SMing Lin	 scatterlist.
6109b1d6c89SMing Lin
611308c09f1SLaura Abbott#
612308c09f1SLaura Abbott# sg chaining option
613308c09f1SLaura Abbott#
614308c09f1SLaura Abbott
615308c09f1SLaura Abbottconfig ARCH_HAS_SG_CHAIN
616308c09f1SLaura Abbott	def_bool n
617308c09f1SLaura Abbott
61861031952SRoss Zwislerconfig ARCH_HAS_PMEM_API
61961031952SRoss Zwisler	bool
62061031952SRoss Zwisler
6210aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE
6220aed55afSDan Williams	bool
6230aed55afSDan Williams
624522239b4SDan Williamsconfig ARCH_HAS_UACCESS_MCSAFE
625522239b4SDan Williams	bool
626522239b4SDan Williams
627cd11016eSAlexander Potapenkoconfig STACKDEPOT
628cd11016eSAlexander Potapenko	bool
629cd11016eSAlexander Potapenko	select STACKTRACE
630cd11016eSAlexander Potapenko
63188459642SOmar Sandovalconfig SBITMAP
63288459642SOmar Sandoval	bool
63388459642SOmar Sandoval
63444091d29SJiri Pirkoconfig PARMAN
6359d25af69SGeert Uytterhoeven	tristate "parman" if COMPILE_TEST
63644091d29SJiri Pirko
637cf4a7207SChris Wilsonconfig PRIME_NUMBERS
63864a57719SDave Airlie	tristate
639cf4a7207SChris Wilson
64003270c13SMatthew Wilcoxconfig STRING_SELFTEST
641d6b28e09SGeert Uytterhoeven	tristate "Test string functions"
64203270c13SMatthew Wilcox
6432de4ff7bSThomas Grafendmenu
644b35cd988SPalmer Dabbelt
645e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3
646b35cd988SPalmer Dabbelt	bool
647b35cd988SPalmer Dabbelt
648e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3
649b35cd988SPalmer Dabbelt	bool
650b35cd988SPalmer Dabbelt
651e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3
652b35cd988SPalmer Dabbelt	bool
653b35cd988SPalmer Dabbelt
654e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3
655b35cd988SPalmer Dabbelt	bool
656b35cd988SPalmer Dabbelt
657e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2
658b35cd988SPalmer Dabbelt	bool
659b35cd988SPalmer Dabbelt
660e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2
661b35cd988SPalmer Dabbelt	bool
662