xref: /linux/lib/Kconfig (revision 527701eda5f196588df9b36a30651804fea7d1a7)
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	depends on BITREVERSE
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
532922585bSDavid S. Millerconfig GENERIC_STRNCPY_FROM_USER
542922585bSDavid S. Miller	bool
552922585bSDavid S. Miller
56a08c5356SLinus Torvaldsconfig GENERIC_STRNLEN_USER
57a08c5356SLinus Torvalds	bool
58a08c5356SLinus Torvalds
594cd5773aSAndy Shevchenkoconfig GENERIC_NET_UTILS
604cd5773aSAndy Shevchenko	bool
614cd5773aSAndy Shevchenko
6219870defSAlexander van Heukelumconfig GENERIC_FIND_FIRST_BIT
639ba16087SJan Beulich	bool
6419870defSAlexander van Heukelum
652c64e9cbSAndy Shevchenkosource "lib/math/Kconfig"
662c64e9cbSAndy Shevchenko
67b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP
68b923650bSMichael S. Tsirkin	bool
69b923650bSMichael S. Tsirkin
7066eab4dfSMichael S. Tsirkinconfig GENERIC_PCI_IOMAP
7166eab4dfSMichael S. Tsirkin	bool
7266eab4dfSMichael S. Tsirkin
734673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP
744673ca8eSMichael S. Tsirkin	bool
7566eab4dfSMichael S. Tsirkin	select GENERIC_PCI_IOMAP
764673ca8eSMichael S. Tsirkin
774ccf4beaSWolfram Sangconfig STMP_DEVICE
784ccf4beaSWolfram Sang	bool
794ccf4beaSWolfram Sang
80bc08b449SLinus Torvaldsconfig ARCH_USE_CMPXCHG_LOCKREF
81bc08b449SLinus Torvalds	bool
82bc08b449SLinus Torvalds
8372d93104SLinus Torvaldsconfig ARCH_HAS_FAST_MULTIPLIER
8472d93104SLinus Torvalds	bool
8572d93104SLinus Torvalds
862ce0d7f9SMark Brownconfig ARCH_USE_SYM_ANNOTATIONS
872ce0d7f9SMark Brown	bool
882ce0d7f9SMark Brown
89031e3601SZhichang Yuanconfig INDIRECT_PIO
90031e3601SZhichang Yuan	bool "Access I/O in non-MMIO mode"
91031e3601SZhichang Yuan	depends on ARM64
92031e3601SZhichang Yuan	help
93031e3601SZhichang Yuan	  On some platforms where no separate I/O space exists, there are I/O
94031e3601SZhichang Yuan	  hosts which can not be accessed in MMIO mode. Using the logical PIO
95031e3601SZhichang Yuan	  mechanism, the host-local I/O resource can be mapped into system
96031e3601SZhichang Yuan	  logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the
97031e3601SZhichang Yuan	  system can access the I/O devices with the mapped-logic PIO through
98031e3601SZhichang Yuan	  I/O accessors.
99031e3601SZhichang Yuan
100031e3601SZhichang Yuan	  This way has relatively little I/O performance cost. Please make
101031e3601SZhichang Yuan	  sure your devices really need this configure item enabled.
102031e3601SZhichang Yuan
103031e3601SZhichang Yuan	  When in doubt, say N.
104031e3601SZhichang Yuan
1051da177e4SLinus Torvaldsconfig CRC_CCITT
1061da177e4SLinus Torvalds	tristate "CRC-CCITT functions"
1071da177e4SLinus Torvalds	help
1081da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
1091da177e4SLinus Torvalds	  modules require CRC-CCITT functions, but a module built outside
1101da177e4SLinus Torvalds	  the kernel tree does. Such modules that use library CRC-CCITT
1111da177e4SLinus Torvalds	  functions require M here.
1121da177e4SLinus Torvalds
1137657ec1fSEvgeniy Polyakovconfig CRC16
1147657ec1fSEvgeniy Polyakov	tristate "CRC16 functions"
1157657ec1fSEvgeniy Polyakov	help
1167657ec1fSEvgeniy Polyakov	  This option is provided for the case where no in-kernel-tree
1177657ec1fSEvgeniy Polyakov	  modules require CRC16 functions, but a module built outside
1187657ec1fSEvgeniy Polyakov	  the kernel tree does. Such modules that use library CRC16
1197657ec1fSEvgeniy Polyakov	  functions require M here.
1207657ec1fSEvgeniy Polyakov
121f11f594eSMartin K. Petersenconfig CRC_T10DIF
122f11f594eSMartin K. Petersen	tristate "CRC calculation for the T10 Data Integrity Field"
12368411521SHerbert Xu	select CRYPTO
12468411521SHerbert Xu	select CRYPTO_CRCT10DIF
125f11f594eSMartin K. Petersen	help
126f11f594eSMartin K. Petersen	  This option is only needed if a module that's not in the
127f11f594eSMartin K. Petersen	  kernel tree needs to calculate CRC checks for use with the
128f11f594eSMartin K. Petersen	  SCSI data integrity subsystem.
129f11f594eSMartin K. Petersen
1303e7cbae7SIvo van Doornconfig CRC_ITU_T
1313e7cbae7SIvo van Doorn	tristate "CRC ITU-T V.41 functions"
1323e7cbae7SIvo van Doorn	help
1333e7cbae7SIvo van Doorn	  This option is provided for the case where no in-kernel-tree
1343e7cbae7SIvo van Doorn	  modules require CRC ITU-T V.41 functions, but a module built outside
1353e7cbae7SIvo van Doorn	  the kernel tree does. Such modules that use library CRC ITU-T V.41
1363e7cbae7SIvo van Doorn	  functions require M here.
1373e7cbae7SIvo van Doorn
1381da177e4SLinus Torvaldsconfig CRC32
13946c5801eSDarrick J. Wong	tristate "CRC32/CRC32c functions"
1401da177e4SLinus Torvalds	default y
141906d66dfSAkinobu Mita	select BITREVERSE
1421da177e4SLinus Torvalds	help
1431da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
14446c5801eSDarrick J. Wong	  modules require CRC32/CRC32c functions, but a module built outside
14546c5801eSDarrick J. Wong	  the kernel tree does. Such modules that use library CRC32/CRC32c
14646c5801eSDarrick J. Wong	  functions require M here.
1471da177e4SLinus Torvalds
1483863ef31SBob Pearsonconfig CRC32_SELFTEST
1495fb7f874SGeert Uytterhoeven	tristate "CRC32 perform self test on init"
1503863ef31SBob Pearson	depends on CRC32
1513863ef31SBob Pearson	help
1523863ef31SBob Pearson	  This option enables the CRC32 library functions to perform a
1533863ef31SBob Pearson	  self test on initialization. The self test computes crc32_le
1543863ef31SBob Pearson	  and crc32_be over byte strings with random alignment and length
1553863ef31SBob Pearson	  and computes the total elapsed time and number of bytes processed.
1563863ef31SBob Pearson
1575cde7656SDarrick J. Wongchoice
1585cde7656SDarrick J. Wong	prompt "CRC32 implementation"
1595cde7656SDarrick J. Wong	depends on CRC32
1605cde7656SDarrick J. Wong	default CRC32_SLICEBY8
16182edb4baSDarrick J. Wong	help
16282edb4baSDarrick J. Wong	  This option allows a kernel builder to override the default choice
16382edb4baSDarrick J. Wong	  of CRC32 algorithm.  Choose the default ("slice by 8") unless you
16482edb4baSDarrick J. Wong	  know that you need one of the others.
1655cde7656SDarrick J. Wong
1665cde7656SDarrick J. Wongconfig CRC32_SLICEBY8
1675cde7656SDarrick J. Wong	bool "Slice by 8 bytes"
1685cde7656SDarrick J. Wong	help
1695cde7656SDarrick J. Wong	  Calculate checksum 8 bytes at a time with a clever slicing algorithm.
1705cde7656SDarrick J. Wong	  This is the fastest algorithm, but comes with a 8KiB lookup table.
1715cde7656SDarrick J. Wong	  Most modern processors have enough cache to hold this table without
1725cde7656SDarrick J. Wong	  thrashing the cache.
1735cde7656SDarrick J. Wong
1745cde7656SDarrick J. Wong	  This is the default implementation choice.  Choose this one unless
1755cde7656SDarrick J. Wong	  you have a good reason not to.
1765cde7656SDarrick J. Wong
1775cde7656SDarrick J. Wongconfig CRC32_SLICEBY4
1785cde7656SDarrick J. Wong	bool "Slice by 4 bytes"
1795cde7656SDarrick J. Wong	help
1805cde7656SDarrick J. Wong	  Calculate checksum 4 bytes at a time with a clever slicing algorithm.
1815cde7656SDarrick J. Wong	  This is a bit slower than slice by 8, but has a smaller 4KiB lookup
1825cde7656SDarrick J. Wong	  table.
1835cde7656SDarrick J. Wong
1845cde7656SDarrick J. Wong	  Only choose this option if you know what you are doing.
1855cde7656SDarrick J. Wong
1865cde7656SDarrick J. Wongconfig CRC32_SARWATE
1875cde7656SDarrick J. Wong	bool "Sarwate's Algorithm (one byte at a time)"
1885cde7656SDarrick J. Wong	help
1895cde7656SDarrick J. Wong	  Calculate checksum a byte at a time using Sarwate's algorithm.  This
1905cde7656SDarrick J. Wong	  is not particularly fast, but has a small 256 byte lookup table.
1915cde7656SDarrick J. Wong
1925cde7656SDarrick J. Wong	  Only choose this option if you know what you are doing.
1935cde7656SDarrick J. Wong
1945cde7656SDarrick J. Wongconfig CRC32_BIT
1955cde7656SDarrick J. Wong	bool "Classic Algorithm (one bit at a time)"
1965cde7656SDarrick J. Wong	help
1975cde7656SDarrick J. Wong	  Calculate checksum one bit at a time.  This is VERY slow, but has
1985cde7656SDarrick J. Wong	  no lookup table.  This is provided as a debugging option.
1995cde7656SDarrick J. Wong
2005cde7656SDarrick J. Wong	  Only choose this option if you are debugging crc32.
2015cde7656SDarrick J. Wong
2025cde7656SDarrick J. Wongendchoice
2035cde7656SDarrick J. Wong
204feba04fdSColy Liconfig CRC64
205feba04fdSColy Li	tristate "CRC64 functions"
206feba04fdSColy Li	help
207feba04fdSColy Li	  This option is provided for the case where no in-kernel-tree
208feba04fdSColy Li	  modules require CRC64 functions, but a module built outside
209feba04fdSColy Li	  the kernel tree does. Such modules that use library CRC64
210feba04fdSColy Li	  functions require M here.
211feba04fdSColy Li
2120cbaa448SJeremy Kerrconfig CRC4
2130cbaa448SJeremy Kerr	tristate "CRC4 functions"
2140cbaa448SJeremy Kerr	help
2150cbaa448SJeremy Kerr	  This option is provided for the case where no in-kernel-tree
2160cbaa448SJeremy Kerr	  modules require CRC4 functions, but a module built outside
2170cbaa448SJeremy Kerr	  the kernel tree does. Such modules that use library CRC4
2180cbaa448SJeremy Kerr	  functions require M here.
2190cbaa448SJeremy Kerr
220ad241528SJan Nikitenkoconfig CRC7
221ad241528SJan Nikitenko	tristate "CRC7 functions"
222ad241528SJan Nikitenko	help
223ad241528SJan Nikitenko	  This option is provided for the case where no in-kernel-tree
224ad241528SJan Nikitenko	  modules require CRC7 functions, but a module built outside
225ad241528SJan Nikitenko	  the kernel tree does. Such modules that use library CRC7
226ad241528SJan Nikitenko	  functions require M here.
227ad241528SJan Nikitenko
2281da177e4SLinus Torvaldsconfig LIBCRC32C
2291da177e4SLinus Torvalds	tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
23093027354SHerbert Xu	select CRYPTO
23169c35efcSHerbert Xu	select CRYPTO_CRC32C
2321da177e4SLinus Torvalds	help
2331da177e4SLinus Torvalds	  This option is provided for the case where no in-kernel-tree
2341da177e4SLinus Torvalds	  modules require CRC32c functions, but a module built outside the
2351da177e4SLinus Torvalds	  kernel tree does. Such modules that use library CRC32c functions
2361da177e4SLinus Torvalds	  require M here.  See Castagnoli93.
2371da177e4SLinus Torvalds	  Module will be libcrc32c.
2381da177e4SLinus Torvalds
2397150962dSArend van Sprielconfig CRC8
2407150962dSArend van Spriel	tristate "CRC8 function"
2417150962dSArend van Spriel	help
2427150962dSArend van Spriel	  This option provides CRC8 function. Drivers may select this
2437150962dSArend van Spriel	  when they need to do cyclic redundancy check according CRC8
2447150962dSArend van Spriel	  algorithm. Module will be called crc8.
2457150962dSArend van Spriel
2465d240522SNick Terrellconfig XXHASH
2475d240522SNick Terrell	tristate
2485d240522SNick Terrell
249e65e1fc2SAl Viroconfig AUDIT_GENERIC
250e65e1fc2SAl Viro	bool
251e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
252e65e1fc2SAl Viro	default y
253e65e1fc2SAl Viro
2544b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC
2554b588411SAKASHI Takahiro	bool
2564b588411SAKASHI Takahiro	default n
2574b588411SAKASHI Takahiro
2584b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC
2594b588411SAKASHI Takahiro	bool
2604b588411SAKASHI Takahiro	depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT
2614b588411SAKASHI Takahiro	default y
2624b588411SAKASHI Takahiro
263a6a9c0f1SDaniel Borkmannconfig RANDOM32_SELFTEST
264a6a9c0f1SDaniel Borkmann	bool "PRNG perform self test on init"
265a6a9c0f1SDaniel Borkmann	help
266a6a9c0f1SDaniel Borkmann	  This option enables the 32 bit PRNG library functions to perform a
267a6a9c0f1SDaniel Borkmann	  self test on initialization.
268a6a9c0f1SDaniel Borkmann
2691da177e4SLinus Torvalds#
2701da177e4SLinus Torvalds# compression support is select'ed if needed
2711da177e4SLinus Torvalds#
2722da572c9SDan Streetmanconfig 842_COMPRESS
2735b571677SArnd Bergmann	select CRC32
2742da572c9SDan Streetman	tristate
2752da572c9SDan Streetman
2762da572c9SDan Streetmanconfig 842_DECOMPRESS
2775b571677SArnd Bergmann	select CRC32
2782da572c9SDan Streetman	tristate
2792da572c9SDan Streetman
2801da177e4SLinus Torvaldsconfig ZLIB_INFLATE
2811da177e4SLinus Torvalds	tristate
2821da177e4SLinus Torvalds
2831da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
2841da177e4SLinus Torvalds	tristate
2851fd4e5c3SAndrew Morton	select BITREVERSE
2861da177e4SLinus Torvalds
287aa5b395bSMikhail Zaslonkoconfig ZLIB_DFLTCC
288aa5b395bSMikhail Zaslonko	def_bool y
289aa5b395bSMikhail Zaslonko	depends on S390
290aa5b395bSMikhail Zaslonko	prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib"
291aa5b395bSMikhail Zaslonko	help
292aa5b395bSMikhail Zaslonko	 Enable s390x hardware support for zlib in the kernel.
293aa5b395bSMikhail Zaslonko
29464c70b1cSRichard Purdieconfig LZO_COMPRESS
29564c70b1cSRichard Purdie	tristate
29664c70b1cSRichard Purdie
29764c70b1cSRichard Purdieconfig LZO_DECOMPRESS
29864c70b1cSRichard Purdie	tristate
29964c70b1cSRichard Purdie
300c72ac7a1SChanho Minconfig LZ4_COMPRESS
301c72ac7a1SChanho Min	tristate
302c72ac7a1SChanho Min
303c72ac7a1SChanho Minconfig LZ4HC_COMPRESS
304c72ac7a1SChanho Min	tristate
305c72ac7a1SChanho Min
306e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS
307e76e1fdfSKyungsik Lee	tristate
308e76e1fdfSKyungsik Lee
30973f3d1b4SNick Terrellconfig ZSTD_COMPRESS
31073f3d1b4SNick Terrell	select XXHASH
31173f3d1b4SNick Terrell	tristate
31273f3d1b4SNick Terrell
31373f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS
31473f3d1b4SNick Terrell	select XXHASH
31573f3d1b4SNick Terrell	tristate
31673f3d1b4SNick Terrell
31724fa0402SLasse Collinsource "lib/xz/Kconfig"
31824fa0402SLasse Collin
3191da177e4SLinus Torvalds#
320c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with
321c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
322c8531ab3SH. Peter Anvin#
323c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP
3247856a16eSH. Peter Anvin	select ZLIB_INFLATE
325c8531ab3SH. Peter Anvin	tristate
326c8531ab3SH. Peter Anvin
327c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2
328c8531ab3SH. Peter Anvin	tristate
329c8531ab3SH. Peter Anvin
330c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA
331c8531ab3SH. Peter Anvin	tristate
332c8531ab3SH. Peter Anvin
3333ebe1243SLasse Collinconfig DECOMPRESS_XZ
3343ebe1243SLasse Collin	select XZ_DEC
3353ebe1243SLasse Collin	tristate
3363ebe1243SLasse Collin
337cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO
338cacb246fSAlbin Tonnerre	select LZO_DECOMPRESS
339cacb246fSAlbin Tonnerre	tristate
340cacb246fSAlbin Tonnerre
341e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4
342e76e1fdfSKyungsik Lee	select LZ4_DECOMPRESS
343e76e1fdfSKyungsik Lee	tristate
344e76e1fdfSKyungsik Lee
3454963bb2bSNick Terrellconfig DECOMPRESS_ZSTD
3464963bb2bSNick Terrell	select ZSTD_DECOMPRESS
3474963bb2bSNick Terrell	tristate
3484963bb2bSNick Terrell
349c8531ab3SH. Peter Anvin#
350f14f75b8SJes Sorensen# Generic allocator support is selected if needed
351f14f75b8SJes Sorensen#
352f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
3536341e62bSChristoph Jaeger	bool
354f14f75b8SJes Sorensen
355f14f75b8SJes Sorensen#
3561da177e4SLinus Torvalds# reed solomon support is select'ed if needed
3571da177e4SLinus Torvalds#
3581da177e4SLinus Torvaldsconfig REED_SOLOMON
3591da177e4SLinus Torvalds	tristate
3601da177e4SLinus Torvalds
3611da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
3626341e62bSChristoph Jaeger	bool
3631da177e4SLinus Torvalds
3641da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
3656341e62bSChristoph Jaeger	bool
3661da177e4SLinus Torvalds
3671da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
3686341e62bSChristoph Jaeger	bool
3691da177e4SLinus Torvalds
3701da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
3716341e62bSChristoph Jaeger	bool
3721da177e4SLinus Torvalds
373f7704347SDavid S. Miller#
374437aa565SIvan Djelic# BCH support is selected if needed
375437aa565SIvan Djelic#
376437aa565SIvan Djelicconfig BCH
377437aa565SIvan Djelic	tristate
378437aa565SIvan Djelic
379437aa565SIvan Djelicconfig BCH_CONST_PARAMS
3806341e62bSChristoph Jaeger	bool
381437aa565SIvan Djelic	help
382437aa565SIvan Djelic	  Drivers may select this option to force specific constant
383437aa565SIvan Djelic	  values for parameters 'm' (Galois field order) and 't'
384437aa565SIvan Djelic	  (error correction capability). Those specific values must
385437aa565SIvan Djelic	  be set by declaring default values for symbols BCH_CONST_M
386437aa565SIvan Djelic	  and BCH_CONST_T.
387437aa565SIvan Djelic	  Doing so will enable extra compiler optimizations,
388437aa565SIvan Djelic	  improving encoding and decoding performance up to 2x for
389437aa565SIvan Djelic	  usual (m,t) values (typically such that m*t < 200).
390437aa565SIvan Djelic	  When this option is selected, the BCH library supports
391437aa565SIvan Djelic	  only a single (m,t) configuration. This is mainly useful
392437aa565SIvan Djelic	  for NAND flash board drivers requiring known, fixed BCH
393437aa565SIvan Djelic	  parameters.
394437aa565SIvan Djelic
395437aa565SIvan Djelicconfig BCH_CONST_M
396437aa565SIvan Djelic	int
397437aa565SIvan Djelic	range 5 15
398437aa565SIvan Djelic	help
399437aa565SIvan Djelic	  Constant value for Galois field order 'm'. If 'k' is the
400437aa565SIvan Djelic	  number of data bits to protect, 'm' should be chosen such
401437aa565SIvan Djelic	  that (k + m*t) <= 2**m - 1.
402437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
403437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
404437aa565SIvan Djelic
405437aa565SIvan Djelicconfig BCH_CONST_T
406437aa565SIvan Djelic	int
407437aa565SIvan Djelic	help
408437aa565SIvan Djelic	  Constant value for error correction capability in bits 't'.
409437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
410437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
411437aa565SIvan Djelic
412437aa565SIvan Djelic#
413f7704347SDavid S. Miller# Textsearch support is select'ed if needed
414f7704347SDavid S. Miller#
4152de4ff7bSThomas Grafconfig TEXTSEARCH
4166341e62bSChristoph Jaeger	bool
4171da177e4SLinus Torvalds
418df3fb93aSThomas Grafconfig TEXTSEARCH_KMP
419f7704347SDavid S. Miller	tristate
420df3fb93aSThomas Graf
4218082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM
42229cb9f9cSDavid S. Miller	tristate
4238082e4edSPablo Neira Ayuso
4246408f79cSThomas Grafconfig TEXTSEARCH_FSM
425f7704347SDavid S. Miller	tristate
4266408f79cSThomas Graf
4275db53f3eSJoern Engelconfig BTREE
4286341e62bSChristoph Jaeger	bool
4295db53f3eSJoern Engel
430a88cc108SChris Wilsonconfig INTERVAL_TREE
4316341e62bSChristoph Jaeger	bool
432a88cc108SChris Wilson	help
433a88cc108SChris Wilson	  Simple, embeddable, interval-tree. Can find the start of an
434a88cc108SChris Wilson	  overlapping range in log(n) time and then iterate over all
435a88cc108SChris Wilson	  overlapping nodes. The algorithm is implemented as an
436a88cc108SChris Wilson	  augmented rbtree.
437a88cc108SChris Wilson
438a88cc108SChris Wilson	  See:
439a88cc108SChris Wilson
44014bbe3e3SMatthew Wilcox (Oracle)		Documentation/core-api/rbtree.rst
441a88cc108SChris Wilson
442a88cc108SChris Wilson	  for more information.
443a88cc108SChris Wilson
44402c02bf1SMatthew Wilcoxconfig XARRAY_MULTI
44557578c2eSMatthew Wilcox	bool
44602c02bf1SMatthew Wilcox	help
44702c02bf1SMatthew Wilcox	  Support entries which occupy multiple consecutive indices in the
44802c02bf1SMatthew Wilcox	  XArray.
44957578c2eSMatthew Wilcox
4503cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY
4513cb98950SDavid Howells	bool
4523cb98950SDavid Howells	help
4533cb98950SDavid Howells	  Generic associative array.  Can be searched and iterated over whilst
4543cb98950SDavid Howells	  it is being modified.  It is also reasonably quick to search and
4553cb98950SDavid Howells	  modify.  The algorithms are non-recursive, and the trees are highly
4563cb98950SDavid Howells	  capacious.
4573cb98950SDavid Howells
4583cb98950SDavid Howells	  See:
4593cb98950SDavid Howells
4605fb94e9cSMauro Carvalho Chehab		Documentation/core-api/assoc_array.rst
4613cb98950SDavid Howells
4623cb98950SDavid Howells	  for more information.
4633cb98950SDavid Howells
4645ea81769SAl Viroconfig HAS_IOMEM
4656341e62bSChristoph Jaeger	bool
4665ea81769SAl Viro	depends on !NO_IOMEM
4675ea81769SAl Viro	default y
4685ea81769SAl Viro
469ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP
4706341e62bSChristoph Jaeger	bool
471ce816fa8SUwe Kleine-König	depends on HAS_IOMEM && !NO_IOPORT_MAP
472ee36c2bfSAl Viro	default y
473ee36c2bfSAl Viro
474cf65a0f6SChristoph Hellwigsource "kernel/dma/Kconfig"
475411f0f3eSHeiko Carstens
476e80a0af4SBart Van Asscheconfig SGL_ALLOC
477e80a0af4SBart Van Assche	bool
478e80a0af4SBart Van Assche	default n
479e80a0af4SBart Van Assche
480a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER
481a4ce5a48SChristoph Hellwig	bool
482a4ce5a48SChristoph Hellwig
483928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
484928923c7SGeert Uytterhoeven	bool
485928923c7SGeert Uytterhoeven
486aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
487aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
488aab46da0SRusty Russell	help
489aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
490aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
491aab46da0SRusty Russell	  stack overflow.
492aab46da0SRusty Russell
493c39649c3SBen Hutchingsconfig CPU_RMAP
494c39649c3SBen Hutchings	bool
495c39649c3SBen Hutchings	depends on SMP
496c39649c3SBen Hutchings
49775957ba3STom Herbertconfig DQL
49875957ba3STom Herbert	bool
49975957ba3STom Herbert
500b0125085SGeorge Spelvinconfig GLOB
501b0125085SGeorge Spelvin	bool
502b0125085SGeorge Spelvin#	This actually supports modular compilation, but the module overhead
503b0125085SGeorge Spelvin#	is ridiculous for the amount of code involved.	Until an out-of-tree
504b0125085SGeorge Spelvin#	driver asks for it, we'll just link it directly it into the kernel
505b0125085SGeorge Spelvin#	when required.  Since we're ignoring out-of-tree users,	there's also
506b0125085SGeorge Spelvin#	no need bother prompting for a manual decision:
507b0125085SGeorge Spelvin#	prompt "glob_match() function"
508b0125085SGeorge Spelvin	help
509b0125085SGeorge Spelvin	  This option provides a glob_match function for performing
510b0125085SGeorge Spelvin	  simple text pattern matching.  It originated in the ATA code
511b0125085SGeorge Spelvin	  to blacklist particular drive models, but other device drivers
512b0125085SGeorge Spelvin	  may need similar functionality.
513b0125085SGeorge Spelvin
514b0125085SGeorge Spelvin	  All drivers in the Linux kernel tree that require this function
515b0125085SGeorge Spelvin	  should automatically select this option.  Say N unless you
516b0125085SGeorge Spelvin	  are compiling an out-of tree driver which tells you that it
517b0125085SGeorge Spelvin	  depends on this.
518b0125085SGeorge Spelvin
5195f9be824SGeorge Spelvinconfig GLOB_SELFTEST
520ba95b045SGeert Uytterhoeven	tristate "glob self-test on init"
5215f9be824SGeorge Spelvin	depends on GLOB
5225f9be824SGeorge Spelvin	help
5235f9be824SGeorge Spelvin	  This option enables a simple self-test of the glob_match
5245f9be824SGeorge Spelvin	  function on startup.	It is primarily useful for people
5255f9be824SGeorge Spelvin	  working on the code to ensure they haven't introduced any
5265f9be824SGeorge Spelvin	  regressions.
5275f9be824SGeorge Spelvin
5285f9be824SGeorge Spelvin	  It only adds a little bit of code and slows kernel boot (or
5295f9be824SGeorge Spelvin	  module load) by a small amount, so you're welcome to play with
5305f9be824SGeorge Spelvin	  it, but you probably don't need it.
5315f9be824SGeorge Spelvin
532e9cc8bddSGeert Uytterhoeven#
533e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed
534e9cc8bddSGeert Uytterhoeven#
535e9cc8bddSGeert Uytterhoevenconfig NLATTR
536e9cc8bddSGeert Uytterhoeven	bool
537e9cc8bddSGeert Uytterhoeven
53809d4e0edSPaul Mackerras#
53909d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed
54009d4e0edSPaul Mackerras#
54109d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64
54209d4e0edSPaul Mackerras       bool
54309d4e0edSPaul Mackerras
544b411b363SPhilipp Reisnerconfig LRU_CACHE
545b411b363SPhilipp Reisner	tristate
546b411b363SPhilipp Reisner
547c6df4b17SDavid Millerconfig CLZ_TAB
548c6df4b17SDavid Miller	bool
549c6df4b17SDavid Miller
550511cbce2SChristoph Hellwigconfig IRQ_POLL
551511cbce2SChristoph Hellwig	bool "IRQ polling library"
552511cbce2SChristoph Hellwig	help
553511cbce2SChristoph Hellwig	  Helper library to poll interrupt mitigation using polling.
554511cbce2SChristoph Hellwig
555d9c46b18SDmitry Kasatkinconfig MPILIB
5562e5f094bSDmitry Kasatkin	tristate
557c6df4b17SDavid Miller	select CLZ_TAB
558d9c46b18SDmitry Kasatkin	help
559d9c46b18SDmitry Kasatkin	  Multiprecision maths library from GnuPG.
560d9c46b18SDmitry Kasatkin	  It is used to implement RSA digital signature verification,
561d9c46b18SDmitry Kasatkin	  which is used by IMA/EVM digital signature extension.
562d9c46b18SDmitry Kasatkin
5635e8898e9SDmitry Kasatkinconfig SIGNATURE
5642e5f094bSDmitry Kasatkin	tristate
5650d1f64f6SDmitry Kasatkin	depends on KEYS
5660d1f64f6SDmitry Kasatkin	select CRYPTO
567be440ec7SDmitry Kasatkin	select CRYPTO_SHA1
568051dbb91SDmitry Kasatkin	select MPILIB
569051dbb91SDmitry Kasatkin	help
570051dbb91SDmitry Kasatkin	  Digital signature verification. Currently only RSA is supported.
571051dbb91SDmitry Kasatkin	  Implementation is done using GnuPG MPI library
572051dbb91SDmitry Kasatkin
5734f75da36STal Gilboaconfig DIMLIB
574424adc32SUwe Kleine-König	bool
5754f75da36STal Gilboa	help
5764f75da36STal Gilboa	  Dynamic Interrupt Moderation library.
577991ad2b2SRandy Dunlap	  Implements an algorithm for dynamically changing CQ moderation values
5784f75da36STal Gilboa	  according to run time performance.
5794f75da36STal Gilboa
580ab253839SDavid Daney#
581ab253839SDavid Daney# libfdt files, only selected if needed.
582ab253839SDavid Daney#
583ab253839SDavid Daneyconfig LIBFDT
584ab253839SDavid Daney	bool
585ab253839SDavid Daney
586a77ad6eaSDavid Howellsconfig OID_REGISTRY
587a77ad6eaSDavid Howells	tristate
588a77ad6eaSDavid Howells	help
589a77ad6eaSDavid Howells	  Enable fast lookup object identifier registry.
590a77ad6eaSDavid Howells
5910635eb8aSMatthew Garrettconfig UCS2_STRING
5920635eb8aSMatthew Garrett	tristate
5930635eb8aSMatthew Garrett
59400b26474SVincenzo Frascino#
59500b26474SVincenzo Frascino# generic vdso
59600b26474SVincenzo Frascino#
59700b26474SVincenzo Frascinosource "lib/vdso/Kconfig"
59800b26474SVincenzo Frascino
599ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig"
600ee89bd6bSGeert Uytterhoeven
601f8bcbe62SRobert Jarzmikconfig SG_SPLIT
602f8bcbe62SRobert Jarzmik	def_bool n
603f8bcbe62SRobert Jarzmik	help
6047f7e92f7SGeert Uytterhoeven	 Provides a helper to split scatterlists into chunks, each chunk being
6057f7e92f7SGeert Uytterhoeven	 a scatterlist. This should be selected by a driver or an API which
6067f7e92f7SGeert Uytterhoeven	 whishes to split a scatterlist amongst multiple DMA channels.
607f8bcbe62SRobert Jarzmik
6089b1d6c89SMing Linconfig SG_POOL
6099b1d6c89SMing Lin	def_bool n
6109b1d6c89SMing Lin	help
6119b1d6c89SMing Lin	 Provides a helper to allocate chained scatterlists. This should be
6129b1d6c89SMing Lin	 selected by a driver or an API which whishes to allocate chained
6139b1d6c89SMing Lin	 scatterlist.
6149b1d6c89SMing Lin
615308c09f1SLaura Abbott#
616308c09f1SLaura Abbott# sg chaining option
617308c09f1SLaura Abbott#
618308c09f1SLaura Abbott
6197c703e54SChristoph Hellwigconfig ARCH_NO_SG_CHAIN
620308c09f1SLaura Abbott	def_bool n
621308c09f1SLaura Abbott
62261031952SRoss Zwislerconfig ARCH_HAS_PMEM_API
62361031952SRoss Zwisler	bool
62461031952SRoss Zwisler
62533dd7075SDan Williamsconfig MEMREGION
62633dd7075SDan Williams	bool
62733dd7075SDan Williams
6289ffc1d19SDan Williamsconfig ARCH_HAS_MEMREMAP_COMPAT_ALIGN
6299ffc1d19SDan Williams	bool
6309ffc1d19SDan Williams
631bd79f947SChristoph Hellwig# use memcpy to implement user copies for nommu architectures
632bd79f947SChristoph Hellwigconfig UACCESS_MEMCPY
633bd79f947SChristoph Hellwig	bool
634bd79f947SChristoph Hellwig
6350aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE
6360aed55afSDan Williams	bool
6370aed55afSDan Williams
638522239b4SDan Williamsconfig ARCH_HAS_UACCESS_MCSAFE
639522239b4SDan Williams	bool
640522239b4SDan Williams
641214d8ca6SThomas Gleixner# Temporary. Goes away when all archs are cleaned up
642214d8ca6SThomas Gleixnerconfig ARCH_STACKWALK
643214d8ca6SThomas Gleixner       bool
644214d8ca6SThomas Gleixner
645cd11016eSAlexander Potapenkoconfig STACKDEPOT
646cd11016eSAlexander Potapenko	bool
647cd11016eSAlexander Potapenko	select STACKTRACE
648cd11016eSAlexander Potapenko
64988459642SOmar Sandovalconfig SBITMAP
65088459642SOmar Sandoval	bool
65188459642SOmar Sandoval
65244091d29SJiri Pirkoconfig PARMAN
6539d25af69SGeert Uytterhoeven	tristate "parman" if COMPILE_TEST
65444091d29SJiri Pirko
6553dfdecc6SRandy Dunlapconfig OBJAGG
6563dfdecc6SRandy Dunlap	tristate "objagg" if COMPILE_TEST
6573dfdecc6SRandy Dunlap
65803270c13SMatthew Wilcoxconfig STRING_SELFTEST
659d6b28e09SGeert Uytterhoeven	tristate "Test string functions"
66003270c13SMatthew Wilcox
6612de4ff7bSThomas Grafendmenu
662b35cd988SPalmer Dabbelt
66380b0ca98SChristoph Hellwigconfig GENERIC_IOREMAP
66480b0ca98SChristoph Hellwig	bool
66580b0ca98SChristoph Hellwig
666e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3
667b35cd988SPalmer Dabbelt	bool
668b35cd988SPalmer Dabbelt
669e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3
670b35cd988SPalmer Dabbelt	bool
671b35cd988SPalmer Dabbelt
672e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3
673b35cd988SPalmer Dabbelt	bool
674b35cd988SPalmer Dabbelt
675e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3
676b35cd988SPalmer Dabbelt	bool
677b35cd988SPalmer Dabbelt
678e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2
679b35cd988SPalmer Dabbelt	bool
680b35cd988SPalmer Dabbelt
681e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2
682b35cd988SPalmer Dabbelt	bool
683b8265621SJacob Keller
684*527701edSPalmer Dabbeltconfig GENERIC_LIB_DEVMEM_IS_ALLOWED
685*527701edSPalmer Dabbelt	bool
686*527701edSPalmer Dabbelt
687b8265621SJacob Kellerconfig PLDMFW
688b8265621SJacob Keller	bool
689b8265621SJacob Keller	default n
690