xref: /linux/lib/Kconfig (revision 97c484ccb804ac07f8be80d66a250a260cc9339e)
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
43e9502ea6SJacob Kellerconfig PACKING_KUNIT_TEST
44e9502ea6SJacob Keller	tristate "KUnit tests for packing library" if !KUNIT_ALL_TESTS
45e9502ea6SJacob Keller	depends on PACKING && KUNIT
46e9502ea6SJacob Keller	default KUNIT_ALL_TESTS
47e9502ea6SJacob Keller	help
48e9502ea6SJacob Keller	  This builds KUnit tests for the packing library.
49e9502ea6SJacob Keller
50e9502ea6SJacob Keller	  For more information on KUnit and unit tests in general,
51e9502ea6SJacob Keller	  please refer to the KUnit documentation in Documentation/dev-tools/kunit/.
52e9502ea6SJacob Keller
53e9502ea6SJacob Keller	  When in doubt, say N.
54e9502ea6SJacob Keller
55a5cfc1ecSAkinobu Mitaconfig BITREVERSE
56a5cfc1ecSAkinobu Mita	tristate
57a5cfc1ecSAkinobu Mita
58556d2f05SYalin Wangconfig HAVE_ARCH_BITREVERSE
59841c0090SChristoph Jaeger	bool
60556d2f05SYalin Wang	default n
61556d2f05SYalin Wang	help
629e522c0dSAndrew Morton	  This option enables the use of hardware bit-reversal instructions on
639e522c0dSAndrew Morton	  architectures which support such operations.
64556d2f05SYalin Wang
65e6226997SArnd Bergmannconfig ARCH_HAS_STRNCPY_FROM_USER
662922585bSDavid S. Miller	bool
672922585bSDavid S. Miller
68e6226997SArnd Bergmannconfig ARCH_HAS_STRNLEN_USER
69a08c5356SLinus Torvalds	bool
70a08c5356SLinus Torvalds
71e6226997SArnd Bergmannconfig GENERIC_STRNCPY_FROM_USER
72e6226997SArnd Bergmann	def_bool !ARCH_HAS_STRNCPY_FROM_USER
73e6226997SArnd Bergmann
74e6226997SArnd Bergmannconfig GENERIC_STRNLEN_USER
75e6226997SArnd Bergmann	def_bool !ARCH_HAS_STRNLEN_USER
76e6226997SArnd Bergmann
774cd5773aSAndy Shevchenkoconfig GENERIC_NET_UTILS
784cd5773aSAndy Shevchenko	bool
794cd5773aSAndy Shevchenko
802c64e9cbSAndy Shevchenkosource "lib/math/Kconfig"
812c64e9cbSAndy Shevchenko
82b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP
83b923650bSMichael S. Tsirkin	bool
84b923650bSMichael S. Tsirkin
854673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP
864673ca8eSMichael S. Tsirkin	bool
8766eab4dfSMichael S. Tsirkin	select GENERIC_PCI_IOMAP
884673ca8eSMichael S. Tsirkin
894ccf4beaSWolfram Sangconfig STMP_DEVICE
904ccf4beaSWolfram Sang	bool
914ccf4beaSWolfram Sang
92bc08b449SLinus Torvaldsconfig ARCH_USE_CMPXCHG_LOCKREF
93bc08b449SLinus Torvalds	bool
94bc08b449SLinus Torvalds
9572d93104SLinus Torvaldsconfig ARCH_HAS_FAST_MULTIPLIER
9672d93104SLinus Torvalds	bool
9772d93104SLinus Torvalds
982ce0d7f9SMark Brownconfig ARCH_USE_SYM_ANNOTATIONS
992ce0d7f9SMark Brown	bool
1002ce0d7f9SMark Brown
101031e3601SZhichang Yuanconfig INDIRECT_PIO
102031e3601SZhichang Yuan	bool "Access I/O in non-MMIO mode"
103031e3601SZhichang Yuan	depends on ARM64
104fcbfe812SNiklas Schnelle	depends on HAS_IOPORT
105031e3601SZhichang Yuan	help
106031e3601SZhichang Yuan	  On some platforms where no separate I/O space exists, there are I/O
107031e3601SZhichang Yuan	  hosts which can not be accessed in MMIO mode. Using the logical PIO
108031e3601SZhichang Yuan	  mechanism, the host-local I/O resource can be mapped into system
109031e3601SZhichang Yuan	  logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the
110031e3601SZhichang Yuan	  system can access the I/O devices with the mapped-logic PIO through
111031e3601SZhichang Yuan	  I/O accessors.
112031e3601SZhichang Yuan
113031e3601SZhichang Yuan	  This way has relatively little I/O performance cost. Please make
114031e3601SZhichang Yuan	  sure your devices really need this configure item enabled.
115031e3601SZhichang Yuan
116031e3601SZhichang Yuan	  When in doubt, say N.
117031e3601SZhichang Yuan
118ca2e3342SJohannes Bergconfig INDIRECT_IOMEM
119ca2e3342SJohannes Berg	bool
120ca2e3342SJohannes Berg	help
121ca2e3342SJohannes Berg	  This is selected by other options/architectures to provide the
122ca2e3342SJohannes Berg	  emulated iomem accessors.
123ca2e3342SJohannes Berg
124ca2e3342SJohannes Bergconfig INDIRECT_IOMEM_FALLBACK
125ca2e3342SJohannes Berg	bool
126ca2e3342SJohannes Berg	depends on INDIRECT_IOMEM
127ca2e3342SJohannes Berg	help
128ca2e3342SJohannes Berg	  If INDIRECT_IOMEM is selected, this enables falling back to plain
129ca2e3342SJohannes Berg	  mmio accesses when the IO memory address is not a registered
130ca2e3342SJohannes Berg	  emulated region.
131ca2e3342SJohannes Berg
132d593d64fSPrasad Sodagudiconfig TRACE_MMIO_ACCESS
133d593d64fSPrasad Sodagudi	bool "Register read/write tracing"
134d593d64fSPrasad Sodagudi	depends on TRACING && ARCH_HAVE_TRACE_MMIO_ACCESS
135d593d64fSPrasad Sodagudi	help
136d593d64fSPrasad Sodagudi	  Create tracepoints for MMIO read/write operations. These trace events
137d593d64fSPrasad Sodagudi	  can be used for logging all MMIO read/write operations.
138d593d64fSPrasad Sodagudi
139e56e1898SJustin M. Forbessource "lib/crypto/Kconfig"
140e56e1898SJustin M. Forbes
1411da177e4SLinus Torvaldsconfig CRC_CCITT
1427939da26SEric Biggers	tristate
143*31ab49a9SEric Biggers	help
144*31ab49a9SEric Biggers	  The CRC-CCITT library functions.  Select this if your module uses any
145*31ab49a9SEric Biggers	  of the functions from <linux/crc-ccitt.h>.
1461da177e4SLinus Torvalds
1477657ec1fSEvgeniy Polyakovconfig CRC16
1482038af8eSEric Biggers	tristate
149*31ab49a9SEric Biggers	help
150*31ab49a9SEric Biggers	  The CRC16 library functions.  Select this if your module uses any of
151*31ab49a9SEric Biggers	  the functions from <linux/crc16.h>.
1527657ec1fSEvgeniy Polyakov
153f11f594eSMartin K. Petersenconfig CRC_T10DIF
154a6d0dbbaSEric Biggers	tristate
155*31ab49a9SEric Biggers	help
156*31ab49a9SEric Biggers	  The CRC-T10DIF library functions.  Select this if your module uses
157*31ab49a9SEric Biggers	  any of the functions from <linux/crc-t10dif.h>.
158f11f594eSMartin K. Petersen
1590961c3bcSEric Biggersconfig ARCH_HAS_CRC_T10DIF
1600961c3bcSEric Biggers	bool
1610961c3bcSEric Biggers
1620961c3bcSEric Biggersconfig CRC_T10DIF_ARCH
1630961c3bcSEric Biggers	tristate
164b0430f39SEric Biggers	default CRC_T10DIF if ARCH_HAS_CRC_T10DIF && CRC_OPTIMIZATIONS
1650961c3bcSEric Biggers
1663e7cbae7SIvo van Doornconfig CRC_ITU_T
167a0d55dd7SEric Biggers	tristate
168*31ab49a9SEric Biggers	help
169*31ab49a9SEric Biggers	  The CRC-ITU-T library functions.  Select this if your module uses
170*31ab49a9SEric Biggers	  any of the functions from <linux/crc-itu-t.h>.
1713e7cbae7SIvo van Doorn
1721da177e4SLinus Torvaldsconfig CRC32
1739ad19171SEric Biggers	tristate
174906d66dfSAkinobu Mita	select BITREVERSE
175*31ab49a9SEric Biggers	help
176*31ab49a9SEric Biggers	  The CRC32 library functions.  Select this if your module uses any of
177*31ab49a9SEric Biggers	  the functions from <linux/crc32.h> or <linux/crc32c.h>.
1781da177e4SLinus Torvalds
179d36cebe0SEric Biggersconfig ARCH_HAS_CRC32
180d36cebe0SEric Biggers	bool
181d36cebe0SEric Biggers
182d36cebe0SEric Biggersconfig CRC32_ARCH
183d36cebe0SEric Biggers	tristate
184b0430f39SEric Biggers	default CRC32 if ARCH_HAS_CRC32 && CRC_OPTIMIZATIONS
185d36cebe0SEric Biggers
186feba04fdSColy Liconfig CRC64
187981b39dcSEric Biggers	tristate
188*31ab49a9SEric Biggers	help
189*31ab49a9SEric Biggers	  The CRC64 library functions.  Select this if your module uses any of
190*31ab49a9SEric Biggers	  the functions from <linux/crc64.h>.
191feba04fdSColy Li
192067bc871SEric Biggersconfig ARCH_HAS_CRC64
193067bc871SEric Biggers	bool
194067bc871SEric Biggers
195067bc871SEric Biggersconfig CRC64_ARCH
196067bc871SEric Biggers	tristate
197067bc871SEric Biggers	default CRC64 if ARCH_HAS_CRC64 && CRC_OPTIMIZATIONS
198067bc871SEric Biggers
1990cbaa448SJeremy Kerrconfig CRC4
2007f36255fSEric Biggers	tristate
201*31ab49a9SEric Biggers	help
202*31ab49a9SEric Biggers	  The CRC4 library functions.  Select this if your module uses any of
203*31ab49a9SEric Biggers	  the functions from <linux/crc4.h>.
2040cbaa448SJeremy Kerr
205ad241528SJan Nikitenkoconfig CRC7
206f5a40fcfSEric Biggers	tristate
207*31ab49a9SEric Biggers	help
208*31ab49a9SEric Biggers	  The CRC7 library functions.  Select this if your module uses any of
209*31ab49a9SEric Biggers	  the functions from <linux/crc7.h>.
210ad241528SJan Nikitenko
2117150962dSArend van Sprielconfig CRC8
212aa09b322SEric Biggers	tristate
213*31ab49a9SEric Biggers	help
214*31ab49a9SEric Biggers	  The CRC8 library functions.  Select this if your module uses any of
215*31ab49a9SEric Biggers	  the functions from <linux/crc8.h>.
2167150962dSArend van Spriel
217b0430f39SEric Biggersconfig CRC_OPTIMIZATIONS
218b0430f39SEric Biggers	bool "Enable optimized CRC implementations" if EXPERT
219b0430f39SEric Biggers	default y
220b0430f39SEric Biggers	help
221b0430f39SEric Biggers	  Disabling this option reduces code size slightly by disabling the
222b0430f39SEric Biggers	  architecture-optimized implementations of any CRC variants that are
223b0430f39SEric Biggers	  enabled.  CRC checksumming performance may get much slower.
224b0430f39SEric Biggers
225b0430f39SEric Biggers	  Keep this enabled unless you're really trying to minimize the size of
226b0430f39SEric Biggers	  the kernel.
227b0430f39SEric Biggers
2285d240522SNick Terrellconfig XXHASH
2295d240522SNick Terrell	tristate
2305d240522SNick Terrell
231e65e1fc2SAl Viroconfig AUDIT_GENERIC
232e65e1fc2SAl Viro	bool
233e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
234e65e1fc2SAl Viro	default y
235e65e1fc2SAl Viro
2364b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC
2374b588411SAKASHI Takahiro	bool
2384b588411SAKASHI Takahiro	default n
2394b588411SAKASHI Takahiro
2404b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC
2414b588411SAKASHI Takahiro	bool
2424b588411SAKASHI Takahiro	depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT
2434b588411SAKASHI Takahiro	default y
2444b588411SAKASHI Takahiro
245a6a9c0f1SDaniel Borkmannconfig RANDOM32_SELFTEST
246a6a9c0f1SDaniel Borkmann	bool "PRNG perform self test on init"
247a6a9c0f1SDaniel Borkmann	help
248a6a9c0f1SDaniel Borkmann	  This option enables the 32 bit PRNG library functions to perform a
249a6a9c0f1SDaniel Borkmann	  self test on initialization.
250a6a9c0f1SDaniel Borkmann
2511da177e4SLinus Torvalds#
2521da177e4SLinus Torvalds# compression support is select'ed if needed
2531da177e4SLinus Torvalds#
2542da572c9SDan Streetmanconfig 842_COMPRESS
2555b571677SArnd Bergmann	select CRC32
2562da572c9SDan Streetman	tristate
2572da572c9SDan Streetman
2582da572c9SDan Streetmanconfig 842_DECOMPRESS
2595b571677SArnd Bergmann	select CRC32
2602da572c9SDan Streetman	tristate
2612da572c9SDan Streetman
2621da177e4SLinus Torvaldsconfig ZLIB_INFLATE
2631da177e4SLinus Torvalds	tristate
2641da177e4SLinus Torvalds
2651da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
2661da177e4SLinus Torvalds	tristate
2671fd4e5c3SAndrew Morton	select BITREVERSE
2681da177e4SLinus Torvalds
269aa5b395bSMikhail Zaslonkoconfig ZLIB_DFLTCC
270aa5b395bSMikhail Zaslonko	def_bool y
271aa5b395bSMikhail Zaslonko	depends on S390
272aa5b395bSMikhail Zaslonko	prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib"
273aa5b395bSMikhail Zaslonko	help
274aa5b395bSMikhail Zaslonko	 Enable s390x hardware support for zlib in the kernel.
275aa5b395bSMikhail Zaslonko
27664c70b1cSRichard Purdieconfig LZO_COMPRESS
27764c70b1cSRichard Purdie	tristate
27864c70b1cSRichard Purdie
27964c70b1cSRichard Purdieconfig LZO_DECOMPRESS
28064c70b1cSRichard Purdie	tristate
28164c70b1cSRichard Purdie
282c72ac7a1SChanho Minconfig LZ4_COMPRESS
283c72ac7a1SChanho Min	tristate
284c72ac7a1SChanho Min
285c72ac7a1SChanho Minconfig LZ4HC_COMPRESS
286c72ac7a1SChanho Min	tristate
287c72ac7a1SChanho Min
288e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS
289e76e1fdfSKyungsik Lee	tristate
290e76e1fdfSKyungsik Lee
291637a642fSAlexey Kardashevskiyconfig ZSTD_COMMON
29273f3d1b4SNick Terrell	select XXHASH
29373f3d1b4SNick Terrell	tristate
29473f3d1b4SNick Terrell
295637a642fSAlexey Kardashevskiyconfig ZSTD_COMPRESS
296637a642fSAlexey Kardashevskiy	select ZSTD_COMMON
297637a642fSAlexey Kardashevskiy	tristate
298637a642fSAlexey Kardashevskiy
29973f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS
300637a642fSAlexey Kardashevskiy	select ZSTD_COMMON
30173f3d1b4SNick Terrell	tristate
30273f3d1b4SNick Terrell
30324fa0402SLasse Collinsource "lib/xz/Kconfig"
30424fa0402SLasse Collin
3051da177e4SLinus Torvalds#
306c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with
307c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
308c8531ab3SH. Peter Anvin#
309c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP
3107856a16eSH. Peter Anvin	select ZLIB_INFLATE
311c8531ab3SH. Peter Anvin	tristate
312c8531ab3SH. Peter Anvin
313c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2
314c8531ab3SH. Peter Anvin	tristate
315c8531ab3SH. Peter Anvin
316c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA
317c8531ab3SH. Peter Anvin	tristate
318c8531ab3SH. Peter Anvin
3193ebe1243SLasse Collinconfig DECOMPRESS_XZ
3203ebe1243SLasse Collin	select XZ_DEC
3213ebe1243SLasse Collin	tristate
3223ebe1243SLasse Collin
323cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO
324cacb246fSAlbin Tonnerre	select LZO_DECOMPRESS
325cacb246fSAlbin Tonnerre	tristate
326cacb246fSAlbin Tonnerre
327e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4
328e76e1fdfSKyungsik Lee	select LZ4_DECOMPRESS
329e76e1fdfSKyungsik Lee	tristate
330e76e1fdfSKyungsik Lee
3314963bb2bSNick Terrellconfig DECOMPRESS_ZSTD
3324963bb2bSNick Terrell	select ZSTD_DECOMPRESS
3334963bb2bSNick Terrell	tristate
3344963bb2bSNick Terrell
335c8531ab3SH. Peter Anvin#
336f14f75b8SJes Sorensen# Generic allocator support is selected if needed
337f14f75b8SJes Sorensen#
338f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
3396341e62bSChristoph Jaeger	bool
340f14f75b8SJes Sorensen
341f14f75b8SJes Sorensen#
3421da177e4SLinus Torvalds# reed solomon support is select'ed if needed
3431da177e4SLinus Torvalds#
3441da177e4SLinus Torvaldsconfig REED_SOLOMON
3451da177e4SLinus Torvalds	tristate
3461da177e4SLinus Torvalds
3471da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
3486341e62bSChristoph Jaeger	bool
3491da177e4SLinus Torvalds
3501da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
3516341e62bSChristoph Jaeger	bool
3521da177e4SLinus Torvalds
3531da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
3546341e62bSChristoph Jaeger	bool
3551da177e4SLinus Torvalds
3561da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
3576341e62bSChristoph Jaeger	bool
3581da177e4SLinus Torvalds
359f7704347SDavid S. Miller#
360437aa565SIvan Djelic# BCH support is selected if needed
361437aa565SIvan Djelic#
362437aa565SIvan Djelicconfig BCH
363437aa565SIvan Djelic	tristate
36402d7f74aSJohn Sanpe	select BITREVERSE
365437aa565SIvan Djelic
366437aa565SIvan Djelicconfig BCH_CONST_PARAMS
3676341e62bSChristoph Jaeger	bool
368437aa565SIvan Djelic	help
369437aa565SIvan Djelic	  Drivers may select this option to force specific constant
370437aa565SIvan Djelic	  values for parameters 'm' (Galois field order) and 't'
371437aa565SIvan Djelic	  (error correction capability). Those specific values must
372437aa565SIvan Djelic	  be set by declaring default values for symbols BCH_CONST_M
373437aa565SIvan Djelic	  and BCH_CONST_T.
374437aa565SIvan Djelic	  Doing so will enable extra compiler optimizations,
375437aa565SIvan Djelic	  improving encoding and decoding performance up to 2x for
376437aa565SIvan Djelic	  usual (m,t) values (typically such that m*t < 200).
377437aa565SIvan Djelic	  When this option is selected, the BCH library supports
378437aa565SIvan Djelic	  only a single (m,t) configuration. This is mainly useful
379437aa565SIvan Djelic	  for NAND flash board drivers requiring known, fixed BCH
380437aa565SIvan Djelic	  parameters.
381437aa565SIvan Djelic
382437aa565SIvan Djelicconfig BCH_CONST_M
383437aa565SIvan Djelic	int
384437aa565SIvan Djelic	range 5 15
385437aa565SIvan Djelic	help
386437aa565SIvan Djelic	  Constant value for Galois field order 'm'. If 'k' is the
387437aa565SIvan Djelic	  number of data bits to protect, 'm' should be chosen such
388437aa565SIvan Djelic	  that (k + m*t) <= 2**m - 1.
389437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
390437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
391437aa565SIvan Djelic
392437aa565SIvan Djelicconfig BCH_CONST_T
393437aa565SIvan Djelic	int
394437aa565SIvan Djelic	help
395437aa565SIvan Djelic	  Constant value for error correction capability in bits 't'.
396437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
397437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
398437aa565SIvan Djelic
399437aa565SIvan Djelic#
400f7704347SDavid S. Miller# Textsearch support is select'ed if needed
401f7704347SDavid S. Miller#
4022de4ff7bSThomas Grafconfig TEXTSEARCH
4036341e62bSChristoph Jaeger	bool
4041da177e4SLinus Torvalds
405df3fb93aSThomas Grafconfig TEXTSEARCH_KMP
406f7704347SDavid S. Miller	tristate
407df3fb93aSThomas Graf
4088082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM
40929cb9f9cSDavid S. Miller	tristate
4108082e4edSPablo Neira Ayuso
4116408f79cSThomas Grafconfig TEXTSEARCH_FSM
412f7704347SDavid S. Miller	tristate
4136408f79cSThomas Graf
4145db53f3eSJoern Engelconfig BTREE
4156341e62bSChristoph Jaeger	bool
4165db53f3eSJoern Engel
417a88cc108SChris Wilsonconfig INTERVAL_TREE
4186341e62bSChristoph Jaeger	bool
419a88cc108SChris Wilson	help
420a88cc108SChris Wilson	  Simple, embeddable, interval-tree. Can find the start of an
421a88cc108SChris Wilson	  overlapping range in log(n) time and then iterate over all
422a88cc108SChris Wilson	  overlapping nodes. The algorithm is implemented as an
423a88cc108SChris Wilson	  augmented rbtree.
424a88cc108SChris Wilson
425a88cc108SChris Wilson	  See:
426a88cc108SChris Wilson
42714bbe3e3SMatthew Wilcox (Oracle)		Documentation/core-api/rbtree.rst
428a88cc108SChris Wilson
429a88cc108SChris Wilson	  for more information.
430a88cc108SChris Wilson
4315fe93786SJason Gunthorpeconfig INTERVAL_TREE_SPAN_ITER
4325fe93786SJason Gunthorpe	bool
4335fe93786SJason Gunthorpe	depends on INTERVAL_TREE
4345fe93786SJason Gunthorpe
43502c02bf1SMatthew Wilcoxconfig XARRAY_MULTI
43657578c2eSMatthew Wilcox	bool
43702c02bf1SMatthew Wilcox	help
43802c02bf1SMatthew Wilcox	  Support entries which occupy multiple consecutive indices in the
43902c02bf1SMatthew Wilcox	  XArray.
44057578c2eSMatthew Wilcox
4413cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY
4423cb98950SDavid Howells	bool
4433cb98950SDavid Howells	help
4443cb98950SDavid Howells	  Generic associative array.  Can be searched and iterated over whilst
4453cb98950SDavid Howells	  it is being modified.  It is also reasonably quick to search and
4463cb98950SDavid Howells	  modify.  The algorithms are non-recursive, and the trees are highly
4473cb98950SDavid Howells	  capacious.
4483cb98950SDavid Howells
4493cb98950SDavid Howells	  See:
4503cb98950SDavid Howells
4515fb94e9cSMauro Carvalho Chehab		Documentation/core-api/assoc_array.rst
4523cb98950SDavid Howells
4533cb98950SDavid Howells	  for more information.
4543cb98950SDavid Howells
4558c8d2d96SKent Overstreetconfig CLOSURES
4568c8d2d96SKent Overstreet	bool
4578c8d2d96SKent Overstreet
4585ea81769SAl Viroconfig HAS_IOMEM
4596341e62bSChristoph Jaeger	bool
4605ea81769SAl Viro	depends on !NO_IOMEM
4615ea81769SAl Viro	default y
4625ea81769SAl Viro
463fcbfe812SNiklas Schnelleconfig HAS_IOPORT
464fcbfe812SNiklas Schnelle	bool
465fcbfe812SNiklas Schnelle
466ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP
4676341e62bSChristoph Jaeger	bool
468ce816fa8SUwe Kleine-König	depends on HAS_IOMEM && !NO_IOPORT_MAP
469ee36c2bfSAl Viro	default y
470ee36c2bfSAl Viro
471cf65a0f6SChristoph Hellwigsource "kernel/dma/Kconfig"
472411f0f3eSHeiko Carstens
473e80a0af4SBart Van Asscheconfig SGL_ALLOC
474e80a0af4SBart Van Assche	bool
475e80a0af4SBart Van Assche	default n
476e80a0af4SBart Van Assche
477a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER
478a4ce5a48SChristoph Hellwig	bool
479a4ce5a48SChristoph Hellwig
480928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
481928923c7SGeert Uytterhoeven	bool
482928923c7SGeert Uytterhoeven
483aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
484aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
485aab46da0SRusty Russell	help
486aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
487aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
488aab46da0SRusty Russell	  stack overflow.
489aab46da0SRusty Russell
4906f9c07beSYury Norovconfig FORCE_NR_CPUS
4915d272dd1SLinus Torvalds	def_bool !SMP
4926f9c07beSYury Norov
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
5740d5044b4SFlorian Fainelli	tristate
575b65e697aSHeng Qi	depends on NET
5764f75da36STal Gilboa	help
5774f75da36STal Gilboa	  Dynamic Interrupt Moderation library.
578991ad2b2SRandy Dunlap	  Implements an algorithm for dynamically changing CQ moderation values
5794f75da36STal Gilboa	  according to run time performance.
5804f75da36STal Gilboa
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
59500b26474SVincenzo Frascino#
59600b26474SVincenzo Frascino# generic vdso
59700b26474SVincenzo Frascino#
59800b26474SVincenzo Frascinosource "lib/vdso/Kconfig"
59900b26474SVincenzo Frascino
600ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig"
601ee89bd6bSGeert Uytterhoeven
602f8bcbe62SRobert Jarzmikconfig SG_SPLIT
603f8bcbe62SRobert Jarzmik	def_bool n
604f8bcbe62SRobert Jarzmik	help
6057f7e92f7SGeert Uytterhoeven	 Provides a helper to split scatterlists into chunks, each chunk being
6067f7e92f7SGeert Uytterhoeven	 a scatterlist. This should be selected by a driver or an API which
6077f7e92f7SGeert Uytterhoeven	 whishes to split a scatterlist amongst multiple DMA channels.
608f8bcbe62SRobert Jarzmik
6099b1d6c89SMing Linconfig SG_POOL
6109b1d6c89SMing Lin	def_bool n
6119b1d6c89SMing Lin	help
6129b1d6c89SMing Lin	 Provides a helper to allocate chained scatterlists. This should be
6139b1d6c89SMing Lin	 selected by a driver or an API which whishes to allocate chained
6149b1d6c89SMing Lin	 scatterlist.
6159b1d6c89SMing Lin
616308c09f1SLaura Abbott#
617308c09f1SLaura Abbott# sg chaining option
618308c09f1SLaura Abbott#
619308c09f1SLaura Abbott
6207c703e54SChristoph Hellwigconfig ARCH_NO_SG_CHAIN
621308c09f1SLaura Abbott	def_bool n
622308c09f1SLaura Abbott
62361031952SRoss Zwislerconfig ARCH_HAS_PMEM_API
62461031952SRoss Zwisler	bool
62561031952SRoss Zwisler
62633dd7075SDan Williamsconfig MEMREGION
62733dd7075SDan Williams	bool
62833dd7075SDan Williams
6291156b441SDavidlohr Buesoconfig ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION
6301156b441SDavidlohr Bueso	bool
6311156b441SDavidlohr Bueso
6329ffc1d19SDan Williamsconfig ARCH_HAS_MEMREMAP_COMPAT_ALIGN
6339ffc1d19SDan Williams	bool
6349ffc1d19SDan Williams
635bd79f947SChristoph Hellwig# use memcpy to implement user copies for nommu architectures
636bd79f947SChristoph Hellwigconfig UACCESS_MEMCPY
637bd79f947SChristoph Hellwig	bool
638bd79f947SChristoph Hellwig
6390aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE
6400aed55afSDan Williams	bool
6410aed55afSDan Williams
642ec6347bbSDan Williams# arch has a concept of a recoverable synchronous exception due to a
643ec6347bbSDan Williams# memory-read error like x86 machine-check or ARM data-abort, and
644ec6347bbSDan Williams# implements copy_mc_to_{user,kernel} to abort and report
645ec6347bbSDan Williams# 'bytes-transferred' if that exception fires when accessing the source
646ec6347bbSDan Williams# buffer.
647ec6347bbSDan Williamsconfig ARCH_HAS_COPY_MC
648522239b4SDan Williams	bool
649522239b4SDan Williams
650214d8ca6SThomas Gleixner# Temporary. Goes away when all archs are cleaned up
651214d8ca6SThomas Gleixnerconfig ARCH_STACKWALK
652214d8ca6SThomas Gleixner       bool
653214d8ca6SThomas Gleixner
654cd11016eSAlexander Potapenkoconfig STACKDEPOT
655cd11016eSAlexander Potapenko	bool
656cd11016eSAlexander Potapenko	select STACKTRACE
657fc60e0caSAndrey Konovalov	help
658fc60e0caSAndrey Konovalov	  Stack depot: stack trace storage that avoids duplication
659cd11016eSAlexander Potapenko
6602dba5eb1SVlastimil Babkaconfig STACKDEPOT_ALWAYS_INIT
6612dba5eb1SVlastimil Babka	bool
6622dba5eb1SVlastimil Babka	select STACKDEPOT
663fc60e0caSAndrey Konovalov	help
664fc60e0caSAndrey Konovalov	  Always initialize stack depot during early boot
665fc60e0caSAndrey Konovalov
666fc60e0caSAndrey Konovalovconfig STACKDEPOT_MAX_FRAMES
667fc60e0caSAndrey Konovalov	int "Maximum number of frames in trace saved in stack depot"
668fc60e0caSAndrey Konovalov	range 1 256
669fc60e0caSAndrey Konovalov	default 64
670fc60e0caSAndrey Konovalov	depends on STACKDEPOT
6712dba5eb1SVlastimil Babka
6724e66934eSEric Dumazetconfig REF_TRACKER
6734e66934eSEric Dumazet	bool
6744e66934eSEric Dumazet	depends on STACKTRACE_SUPPORT
6754e66934eSEric Dumazet	select STACKDEPOT
6764e66934eSEric Dumazet
67788459642SOmar Sandovalconfig SBITMAP
67888459642SOmar Sandoval	bool
67988459642SOmar Sandoval
68044091d29SJiri Pirkoconfig PARMAN
6819d25af69SGeert Uytterhoeven	tristate "parman" if COMPILE_TEST
68244091d29SJiri Pirko
6833dfdecc6SRandy Dunlapconfig OBJAGG
6843dfdecc6SRandy Dunlap	tristate "objagg" if COMPILE_TEST
6853dfdecc6SRandy Dunlap
686de9e82c3SNeilBrownconfig LWQ_TEST
687de9e82c3SNeilBrown	bool "Boot-time test for lwq queuing"
688de9e82c3SNeilBrown	help
689de9e82c3SNeilBrown          Run boot-time test of light-weight queuing.
690de9e82c3SNeilBrown
6912de4ff7bSThomas Grafendmenu
692b35cd988SPalmer Dabbelt
69380b0ca98SChristoph Hellwigconfig GENERIC_IOREMAP
69480b0ca98SChristoph Hellwig	bool
69580b0ca98SChristoph Hellwig
696e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3
697b35cd988SPalmer Dabbelt	bool
698b35cd988SPalmer Dabbelt
699e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3
700b35cd988SPalmer Dabbelt	bool
701b35cd988SPalmer Dabbelt
702e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3
703b35cd988SPalmer Dabbelt	bool
704b35cd988SPalmer Dabbelt
705e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3
706b35cd988SPalmer Dabbelt	bool
707b35cd988SPalmer Dabbelt
708e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2
709b35cd988SPalmer Dabbelt	bool
710b35cd988SPalmer Dabbelt
711e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2
712b35cd988SPalmer Dabbelt	bool
713b8265621SJacob Keller
714527701edSPalmer Dabbeltconfig GENERIC_LIB_DEVMEM_IS_ALLOWED
715527701edSPalmer Dabbelt	bool
716527701edSPalmer Dabbelt
717b8265621SJacob Kellerconfig PLDMFW
718b8265621SJacob Keller	bool
719b8265621SJacob Keller	default n
720b0706762SJames Bottomley
721b0706762SJames Bottomleyconfig ASN1_ENCODER
722b0706762SJames Bottomley       tristate
723cd705ea8SMichael Walle
724cd705ea8SMichael Walleconfig POLYNOMIAL
725cd705ea8SMichael Walle       tristate
726a103f466SDave Jiang
727a103f466SDave Jiangconfig FIRMWARE_TABLE
728a103f466SDave Jiang	bool
729bf9850f6SKuan-Wei Chiu
730bf9850f6SKuan-Wei Chiuconfig UNION_FIND
731bf9850f6SKuan-Wei Chiu	bool
73292a8b224SKuan-Wei Chiu
73392a8b224SKuan-Wei Chiuconfig MIN_HEAP
73492a8b224SKuan-Wei Chiu	bool
735