xref: /linux/lib/Kconfig (revision a6d0dbba950880e269d433222ca6d516ebe8a6ae)
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
1431da177e4SLinus Torvalds
1447657ec1fSEvgeniy Polyakovconfig CRC16
1452038af8eSEric Biggers	tristate
1467657ec1fSEvgeniy Polyakov
147f11f594eSMartin K. Petersenconfig CRC_T10DIF
148*a6d0dbbaSEric Biggers	tristate
149f11f594eSMartin K. Petersen
1500961c3bcSEric Biggersconfig ARCH_HAS_CRC_T10DIF
1510961c3bcSEric Biggers	bool
1520961c3bcSEric Biggers
1530961c3bcSEric Biggersconfig CRC_T10DIF_ARCH
1540961c3bcSEric Biggers	tristate
155b0430f39SEric Biggers	default CRC_T10DIF if ARCH_HAS_CRC_T10DIF && CRC_OPTIMIZATIONS
1560961c3bcSEric Biggers
1573e7cbae7SIvo van Doornconfig CRC_ITU_T
1583e7cbae7SIvo van Doorn	tristate "CRC ITU-T V.41 functions"
1593e7cbae7SIvo van Doorn	help
1603e7cbae7SIvo van Doorn	  This option is provided for the case where no in-kernel-tree
1613e7cbae7SIvo van Doorn	  modules require CRC ITU-T V.41 functions, but a module built outside
1623e7cbae7SIvo van Doorn	  the kernel tree does. Such modules that use library CRC ITU-T V.41
1633e7cbae7SIvo van Doorn	  functions require M here.
1643e7cbae7SIvo van Doorn
1651da177e4SLinus Torvaldsconfig CRC32
1669ad19171SEric Biggers	tristate
167906d66dfSAkinobu Mita	select BITREVERSE
1681da177e4SLinus Torvalds
169d36cebe0SEric Biggersconfig ARCH_HAS_CRC32
170d36cebe0SEric Biggers	bool
171d36cebe0SEric Biggers
172d36cebe0SEric Biggersconfig CRC32_ARCH
173d36cebe0SEric Biggers	tristate
174b0430f39SEric Biggers	default CRC32 if ARCH_HAS_CRC32 && CRC_OPTIMIZATIONS
175d36cebe0SEric Biggers
176feba04fdSColy Liconfig CRC64
177981b39dcSEric Biggers	tristate
178feba04fdSColy Li
179067bc871SEric Biggersconfig ARCH_HAS_CRC64
180067bc871SEric Biggers	bool
181067bc871SEric Biggers
182067bc871SEric Biggersconfig CRC64_ARCH
183067bc871SEric Biggers	tristate
184067bc871SEric Biggers	default CRC64 if ARCH_HAS_CRC64 && CRC_OPTIMIZATIONS
185067bc871SEric Biggers
1860cbaa448SJeremy Kerrconfig CRC4
1877f36255fSEric Biggers	tristate
1880cbaa448SJeremy Kerr
189ad241528SJan Nikitenkoconfig CRC7
190f5a40fcfSEric Biggers	tristate
191ad241528SJan Nikitenko
1921da177e4SLinus Torvaldsconfig LIBCRC32C
193dce214dbSEric Biggers	tristate
19438a9a512SEric Biggers	select CRC32
1951da177e4SLinus Torvalds	help
19638a9a512SEric Biggers	  This option just selects CRC32 and is provided for compatibility
19738a9a512SEric Biggers	  purposes until the users are updated to select CRC32 directly.
1981da177e4SLinus Torvalds
1997150962dSArend van Sprielconfig CRC8
200aa09b322SEric Biggers	tristate
2017150962dSArend van Spriel
202b0430f39SEric Biggersconfig CRC_OPTIMIZATIONS
203b0430f39SEric Biggers	bool "Enable optimized CRC implementations" if EXPERT
204b0430f39SEric Biggers	default y
205b0430f39SEric Biggers	help
206b0430f39SEric Biggers	  Disabling this option reduces code size slightly by disabling the
207b0430f39SEric Biggers	  architecture-optimized implementations of any CRC variants that are
208b0430f39SEric Biggers	  enabled.  CRC checksumming performance may get much slower.
209b0430f39SEric Biggers
210b0430f39SEric Biggers	  Keep this enabled unless you're really trying to minimize the size of
211b0430f39SEric Biggers	  the kernel.
212b0430f39SEric Biggers
2135d240522SNick Terrellconfig XXHASH
2145d240522SNick Terrell	tristate
2155d240522SNick Terrell
216e65e1fc2SAl Viroconfig AUDIT_GENERIC
217e65e1fc2SAl Viro	bool
218e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
219e65e1fc2SAl Viro	default y
220e65e1fc2SAl Viro
2214b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC
2224b588411SAKASHI Takahiro	bool
2234b588411SAKASHI Takahiro	default n
2244b588411SAKASHI Takahiro
2254b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC
2264b588411SAKASHI Takahiro	bool
2274b588411SAKASHI Takahiro	depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT
2284b588411SAKASHI Takahiro	default y
2294b588411SAKASHI Takahiro
230a6a9c0f1SDaniel Borkmannconfig RANDOM32_SELFTEST
231a6a9c0f1SDaniel Borkmann	bool "PRNG perform self test on init"
232a6a9c0f1SDaniel Borkmann	help
233a6a9c0f1SDaniel Borkmann	  This option enables the 32 bit PRNG library functions to perform a
234a6a9c0f1SDaniel Borkmann	  self test on initialization.
235a6a9c0f1SDaniel Borkmann
2361da177e4SLinus Torvalds#
2371da177e4SLinus Torvalds# compression support is select'ed if needed
2381da177e4SLinus Torvalds#
2392da572c9SDan Streetmanconfig 842_COMPRESS
2405b571677SArnd Bergmann	select CRC32
2412da572c9SDan Streetman	tristate
2422da572c9SDan Streetman
2432da572c9SDan Streetmanconfig 842_DECOMPRESS
2445b571677SArnd Bergmann	select CRC32
2452da572c9SDan Streetman	tristate
2462da572c9SDan Streetman
2471da177e4SLinus Torvaldsconfig ZLIB_INFLATE
2481da177e4SLinus Torvalds	tristate
2491da177e4SLinus Torvalds
2501da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
2511da177e4SLinus Torvalds	tristate
2521fd4e5c3SAndrew Morton	select BITREVERSE
2531da177e4SLinus Torvalds
254aa5b395bSMikhail Zaslonkoconfig ZLIB_DFLTCC
255aa5b395bSMikhail Zaslonko	def_bool y
256aa5b395bSMikhail Zaslonko	depends on S390
257aa5b395bSMikhail Zaslonko	prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib"
258aa5b395bSMikhail Zaslonko	help
259aa5b395bSMikhail Zaslonko	 Enable s390x hardware support for zlib in the kernel.
260aa5b395bSMikhail Zaslonko
26164c70b1cSRichard Purdieconfig LZO_COMPRESS
26264c70b1cSRichard Purdie	tristate
26364c70b1cSRichard Purdie
26464c70b1cSRichard Purdieconfig LZO_DECOMPRESS
26564c70b1cSRichard Purdie	tristate
26664c70b1cSRichard Purdie
267c72ac7a1SChanho Minconfig LZ4_COMPRESS
268c72ac7a1SChanho Min	tristate
269c72ac7a1SChanho Min
270c72ac7a1SChanho Minconfig LZ4HC_COMPRESS
271c72ac7a1SChanho Min	tristate
272c72ac7a1SChanho Min
273e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS
274e76e1fdfSKyungsik Lee	tristate
275e76e1fdfSKyungsik Lee
276637a642fSAlexey Kardashevskiyconfig ZSTD_COMMON
27773f3d1b4SNick Terrell	select XXHASH
27873f3d1b4SNick Terrell	tristate
27973f3d1b4SNick Terrell
280637a642fSAlexey Kardashevskiyconfig ZSTD_COMPRESS
281637a642fSAlexey Kardashevskiy	select ZSTD_COMMON
282637a642fSAlexey Kardashevskiy	tristate
283637a642fSAlexey Kardashevskiy
28473f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS
285637a642fSAlexey Kardashevskiy	select ZSTD_COMMON
28673f3d1b4SNick Terrell	tristate
28773f3d1b4SNick Terrell
28824fa0402SLasse Collinsource "lib/xz/Kconfig"
28924fa0402SLasse Collin
2901da177e4SLinus Torvalds#
291c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with
292c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
293c8531ab3SH. Peter Anvin#
294c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP
2957856a16eSH. Peter Anvin	select ZLIB_INFLATE
296c8531ab3SH. Peter Anvin	tristate
297c8531ab3SH. Peter Anvin
298c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2
299c8531ab3SH. Peter Anvin	tristate
300c8531ab3SH. Peter Anvin
301c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA
302c8531ab3SH. Peter Anvin	tristate
303c8531ab3SH. Peter Anvin
3043ebe1243SLasse Collinconfig DECOMPRESS_XZ
3053ebe1243SLasse Collin	select XZ_DEC
3063ebe1243SLasse Collin	tristate
3073ebe1243SLasse Collin
308cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO
309cacb246fSAlbin Tonnerre	select LZO_DECOMPRESS
310cacb246fSAlbin Tonnerre	tristate
311cacb246fSAlbin Tonnerre
312e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4
313e76e1fdfSKyungsik Lee	select LZ4_DECOMPRESS
314e76e1fdfSKyungsik Lee	tristate
315e76e1fdfSKyungsik Lee
3164963bb2bSNick Terrellconfig DECOMPRESS_ZSTD
3174963bb2bSNick Terrell	select ZSTD_DECOMPRESS
3184963bb2bSNick Terrell	tristate
3194963bb2bSNick Terrell
320c8531ab3SH. Peter Anvin#
321f14f75b8SJes Sorensen# Generic allocator support is selected if needed
322f14f75b8SJes Sorensen#
323f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
3246341e62bSChristoph Jaeger	bool
325f14f75b8SJes Sorensen
326f14f75b8SJes Sorensen#
3271da177e4SLinus Torvalds# reed solomon support is select'ed if needed
3281da177e4SLinus Torvalds#
3291da177e4SLinus Torvaldsconfig REED_SOLOMON
3301da177e4SLinus Torvalds	tristate
3311da177e4SLinus Torvalds
3321da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
3336341e62bSChristoph Jaeger	bool
3341da177e4SLinus Torvalds
3351da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
3366341e62bSChristoph Jaeger	bool
3371da177e4SLinus Torvalds
3381da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
3396341e62bSChristoph Jaeger	bool
3401da177e4SLinus Torvalds
3411da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
3426341e62bSChristoph Jaeger	bool
3431da177e4SLinus Torvalds
344f7704347SDavid S. Miller#
345437aa565SIvan Djelic# BCH support is selected if needed
346437aa565SIvan Djelic#
347437aa565SIvan Djelicconfig BCH
348437aa565SIvan Djelic	tristate
34902d7f74aSJohn Sanpe	select BITREVERSE
350437aa565SIvan Djelic
351437aa565SIvan Djelicconfig BCH_CONST_PARAMS
3526341e62bSChristoph Jaeger	bool
353437aa565SIvan Djelic	help
354437aa565SIvan Djelic	  Drivers may select this option to force specific constant
355437aa565SIvan Djelic	  values for parameters 'm' (Galois field order) and 't'
356437aa565SIvan Djelic	  (error correction capability). Those specific values must
357437aa565SIvan Djelic	  be set by declaring default values for symbols BCH_CONST_M
358437aa565SIvan Djelic	  and BCH_CONST_T.
359437aa565SIvan Djelic	  Doing so will enable extra compiler optimizations,
360437aa565SIvan Djelic	  improving encoding and decoding performance up to 2x for
361437aa565SIvan Djelic	  usual (m,t) values (typically such that m*t < 200).
362437aa565SIvan Djelic	  When this option is selected, the BCH library supports
363437aa565SIvan Djelic	  only a single (m,t) configuration. This is mainly useful
364437aa565SIvan Djelic	  for NAND flash board drivers requiring known, fixed BCH
365437aa565SIvan Djelic	  parameters.
366437aa565SIvan Djelic
367437aa565SIvan Djelicconfig BCH_CONST_M
368437aa565SIvan Djelic	int
369437aa565SIvan Djelic	range 5 15
370437aa565SIvan Djelic	help
371437aa565SIvan Djelic	  Constant value for Galois field order 'm'. If 'k' is the
372437aa565SIvan Djelic	  number of data bits to protect, 'm' should be chosen such
373437aa565SIvan Djelic	  that (k + m*t) <= 2**m - 1.
374437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
375437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
376437aa565SIvan Djelic
377437aa565SIvan Djelicconfig BCH_CONST_T
378437aa565SIvan Djelic	int
379437aa565SIvan Djelic	help
380437aa565SIvan Djelic	  Constant value for error correction capability in bits 't'.
381437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
382437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
383437aa565SIvan Djelic
384437aa565SIvan Djelic#
385f7704347SDavid S. Miller# Textsearch support is select'ed if needed
386f7704347SDavid S. Miller#
3872de4ff7bSThomas Grafconfig TEXTSEARCH
3886341e62bSChristoph Jaeger	bool
3891da177e4SLinus Torvalds
390df3fb93aSThomas Grafconfig TEXTSEARCH_KMP
391f7704347SDavid S. Miller	tristate
392df3fb93aSThomas Graf
3938082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM
39429cb9f9cSDavid S. Miller	tristate
3958082e4edSPablo Neira Ayuso
3966408f79cSThomas Grafconfig TEXTSEARCH_FSM
397f7704347SDavid S. Miller	tristate
3986408f79cSThomas Graf
3995db53f3eSJoern Engelconfig BTREE
4006341e62bSChristoph Jaeger	bool
4015db53f3eSJoern Engel
402a88cc108SChris Wilsonconfig INTERVAL_TREE
4036341e62bSChristoph Jaeger	bool
404a88cc108SChris Wilson	help
405a88cc108SChris Wilson	  Simple, embeddable, interval-tree. Can find the start of an
406a88cc108SChris Wilson	  overlapping range in log(n) time and then iterate over all
407a88cc108SChris Wilson	  overlapping nodes. The algorithm is implemented as an
408a88cc108SChris Wilson	  augmented rbtree.
409a88cc108SChris Wilson
410a88cc108SChris Wilson	  See:
411a88cc108SChris Wilson
41214bbe3e3SMatthew Wilcox (Oracle)		Documentation/core-api/rbtree.rst
413a88cc108SChris Wilson
414a88cc108SChris Wilson	  for more information.
415a88cc108SChris Wilson
4165fe93786SJason Gunthorpeconfig INTERVAL_TREE_SPAN_ITER
4175fe93786SJason Gunthorpe	bool
4185fe93786SJason Gunthorpe	depends on INTERVAL_TREE
4195fe93786SJason Gunthorpe
42002c02bf1SMatthew Wilcoxconfig XARRAY_MULTI
42157578c2eSMatthew Wilcox	bool
42202c02bf1SMatthew Wilcox	help
42302c02bf1SMatthew Wilcox	  Support entries which occupy multiple consecutive indices in the
42402c02bf1SMatthew Wilcox	  XArray.
42557578c2eSMatthew Wilcox
4263cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY
4273cb98950SDavid Howells	bool
4283cb98950SDavid Howells	help
4293cb98950SDavid Howells	  Generic associative array.  Can be searched and iterated over whilst
4303cb98950SDavid Howells	  it is being modified.  It is also reasonably quick to search and
4313cb98950SDavid Howells	  modify.  The algorithms are non-recursive, and the trees are highly
4323cb98950SDavid Howells	  capacious.
4333cb98950SDavid Howells
4343cb98950SDavid Howells	  See:
4353cb98950SDavid Howells
4365fb94e9cSMauro Carvalho Chehab		Documentation/core-api/assoc_array.rst
4373cb98950SDavid Howells
4383cb98950SDavid Howells	  for more information.
4393cb98950SDavid Howells
4408c8d2d96SKent Overstreetconfig CLOSURES
4418c8d2d96SKent Overstreet	bool
4428c8d2d96SKent Overstreet
4435ea81769SAl Viroconfig HAS_IOMEM
4446341e62bSChristoph Jaeger	bool
4455ea81769SAl Viro	depends on !NO_IOMEM
4465ea81769SAl Viro	default y
4475ea81769SAl Viro
448fcbfe812SNiklas Schnelleconfig HAS_IOPORT
449fcbfe812SNiklas Schnelle	bool
450fcbfe812SNiklas Schnelle
451ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP
4526341e62bSChristoph Jaeger	bool
453ce816fa8SUwe Kleine-König	depends on HAS_IOMEM && !NO_IOPORT_MAP
454ee36c2bfSAl Viro	default y
455ee36c2bfSAl Viro
456cf65a0f6SChristoph Hellwigsource "kernel/dma/Kconfig"
457411f0f3eSHeiko Carstens
458e80a0af4SBart Van Asscheconfig SGL_ALLOC
459e80a0af4SBart Van Assche	bool
460e80a0af4SBart Van Assche	default n
461e80a0af4SBart Van Assche
462a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER
463a4ce5a48SChristoph Hellwig	bool
464a4ce5a48SChristoph Hellwig
465928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
466928923c7SGeert Uytterhoeven	bool
467928923c7SGeert Uytterhoeven
468aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
469aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
470aab46da0SRusty Russell	help
471aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
472aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
473aab46da0SRusty Russell	  stack overflow.
474aab46da0SRusty Russell
4756f9c07beSYury Norovconfig FORCE_NR_CPUS
4765d272dd1SLinus Torvalds	def_bool !SMP
4776f9c07beSYury Norov
478c39649c3SBen Hutchingsconfig CPU_RMAP
479c39649c3SBen Hutchings	bool
480c39649c3SBen Hutchings	depends on SMP
481c39649c3SBen Hutchings
48275957ba3STom Herbertconfig DQL
48375957ba3STom Herbert	bool
48475957ba3STom Herbert
485b0125085SGeorge Spelvinconfig GLOB
486b0125085SGeorge Spelvin	bool
487b0125085SGeorge Spelvin#	This actually supports modular compilation, but the module overhead
488b0125085SGeorge Spelvin#	is ridiculous for the amount of code involved.	Until an out-of-tree
489b0125085SGeorge Spelvin#	driver asks for it, we'll just link it directly it into the kernel
490b0125085SGeorge Spelvin#	when required.  Since we're ignoring out-of-tree users,	there's also
491b0125085SGeorge Spelvin#	no need bother prompting for a manual decision:
492b0125085SGeorge Spelvin#	prompt "glob_match() function"
493b0125085SGeorge Spelvin	help
494b0125085SGeorge Spelvin	  This option provides a glob_match function for performing
495b0125085SGeorge Spelvin	  simple text pattern matching.  It originated in the ATA code
496b0125085SGeorge Spelvin	  to blacklist particular drive models, but other device drivers
497b0125085SGeorge Spelvin	  may need similar functionality.
498b0125085SGeorge Spelvin
499b0125085SGeorge Spelvin	  All drivers in the Linux kernel tree that require this function
500b0125085SGeorge Spelvin	  should automatically select this option.  Say N unless you
501b0125085SGeorge Spelvin	  are compiling an out-of tree driver which tells you that it
502b0125085SGeorge Spelvin	  depends on this.
503b0125085SGeorge Spelvin
5045f9be824SGeorge Spelvinconfig GLOB_SELFTEST
505ba95b045SGeert Uytterhoeven	tristate "glob self-test on init"
5065f9be824SGeorge Spelvin	depends on GLOB
5075f9be824SGeorge Spelvin	help
5085f9be824SGeorge Spelvin	  This option enables a simple self-test of the glob_match
5095f9be824SGeorge Spelvin	  function on startup.	It is primarily useful for people
5105f9be824SGeorge Spelvin	  working on the code to ensure they haven't introduced any
5115f9be824SGeorge Spelvin	  regressions.
5125f9be824SGeorge Spelvin
5135f9be824SGeorge Spelvin	  It only adds a little bit of code and slows kernel boot (or
5145f9be824SGeorge Spelvin	  module load) by a small amount, so you're welcome to play with
5155f9be824SGeorge Spelvin	  it, but you probably don't need it.
5165f9be824SGeorge Spelvin
517e9cc8bddSGeert Uytterhoeven#
518e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed
519e9cc8bddSGeert Uytterhoeven#
520e9cc8bddSGeert Uytterhoevenconfig NLATTR
521e9cc8bddSGeert Uytterhoeven	bool
522e9cc8bddSGeert Uytterhoeven
52309d4e0edSPaul Mackerras#
52409d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed
52509d4e0edSPaul Mackerras#
52609d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64
52709d4e0edSPaul Mackerras       bool
52809d4e0edSPaul Mackerras
529b411b363SPhilipp Reisnerconfig LRU_CACHE
530b411b363SPhilipp Reisner	tristate
531b411b363SPhilipp Reisner
532c6df4b17SDavid Millerconfig CLZ_TAB
533c6df4b17SDavid Miller	bool
534c6df4b17SDavid Miller
535511cbce2SChristoph Hellwigconfig IRQ_POLL
536511cbce2SChristoph Hellwig	bool "IRQ polling library"
537511cbce2SChristoph Hellwig	help
538511cbce2SChristoph Hellwig	  Helper library to poll interrupt mitigation using polling.
539511cbce2SChristoph Hellwig
540d9c46b18SDmitry Kasatkinconfig MPILIB
5412e5f094bSDmitry Kasatkin	tristate
542c6df4b17SDavid Miller	select CLZ_TAB
543d9c46b18SDmitry Kasatkin	help
544d9c46b18SDmitry Kasatkin	  Multiprecision maths library from GnuPG.
545d9c46b18SDmitry Kasatkin	  It is used to implement RSA digital signature verification,
546d9c46b18SDmitry Kasatkin	  which is used by IMA/EVM digital signature extension.
547d9c46b18SDmitry Kasatkin
5485e8898e9SDmitry Kasatkinconfig SIGNATURE
5492e5f094bSDmitry Kasatkin	tristate
5500d1f64f6SDmitry Kasatkin	depends on KEYS
5510d1f64f6SDmitry Kasatkin	select CRYPTO
552be440ec7SDmitry Kasatkin	select CRYPTO_SHA1
553051dbb91SDmitry Kasatkin	select MPILIB
554051dbb91SDmitry Kasatkin	help
555051dbb91SDmitry Kasatkin	  Digital signature verification. Currently only RSA is supported.
556051dbb91SDmitry Kasatkin	  Implementation is done using GnuPG MPI library
557051dbb91SDmitry Kasatkin
5584f75da36STal Gilboaconfig DIMLIB
5590d5044b4SFlorian Fainelli	tristate
560b65e697aSHeng Qi	depends on NET
5614f75da36STal Gilboa	help
5624f75da36STal Gilboa	  Dynamic Interrupt Moderation library.
563991ad2b2SRandy Dunlap	  Implements an algorithm for dynamically changing CQ moderation values
5644f75da36STal Gilboa	  according to run time performance.
5654f75da36STal Gilboa
566ab253839SDavid Daney#
567ab253839SDavid Daney# libfdt files, only selected if needed.
568ab253839SDavid Daney#
569ab253839SDavid Daneyconfig LIBFDT
570ab253839SDavid Daney	bool
571ab253839SDavid Daney
572a77ad6eaSDavid Howellsconfig OID_REGISTRY
573a77ad6eaSDavid Howells	tristate
574a77ad6eaSDavid Howells	help
575a77ad6eaSDavid Howells	  Enable fast lookup object identifier registry.
576a77ad6eaSDavid Howells
5770635eb8aSMatthew Garrettconfig UCS2_STRING
5780635eb8aSMatthew Garrett	tristate
5790635eb8aSMatthew Garrett
58000b26474SVincenzo Frascino#
58100b26474SVincenzo Frascino# generic vdso
58200b26474SVincenzo Frascino#
58300b26474SVincenzo Frascinosource "lib/vdso/Kconfig"
58400b26474SVincenzo Frascino
585ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig"
586ee89bd6bSGeert Uytterhoeven
587f8bcbe62SRobert Jarzmikconfig SG_SPLIT
588f8bcbe62SRobert Jarzmik	def_bool n
589f8bcbe62SRobert Jarzmik	help
5907f7e92f7SGeert Uytterhoeven	 Provides a helper to split scatterlists into chunks, each chunk being
5917f7e92f7SGeert Uytterhoeven	 a scatterlist. This should be selected by a driver or an API which
5927f7e92f7SGeert Uytterhoeven	 whishes to split a scatterlist amongst multiple DMA channels.
593f8bcbe62SRobert Jarzmik
5949b1d6c89SMing Linconfig SG_POOL
5959b1d6c89SMing Lin	def_bool n
5969b1d6c89SMing Lin	help
5979b1d6c89SMing Lin	 Provides a helper to allocate chained scatterlists. This should be
5989b1d6c89SMing Lin	 selected by a driver or an API which whishes to allocate chained
5999b1d6c89SMing Lin	 scatterlist.
6009b1d6c89SMing Lin
601308c09f1SLaura Abbott#
602308c09f1SLaura Abbott# sg chaining option
603308c09f1SLaura Abbott#
604308c09f1SLaura Abbott
6057c703e54SChristoph Hellwigconfig ARCH_NO_SG_CHAIN
606308c09f1SLaura Abbott	def_bool n
607308c09f1SLaura Abbott
60861031952SRoss Zwislerconfig ARCH_HAS_PMEM_API
60961031952SRoss Zwisler	bool
61061031952SRoss Zwisler
61133dd7075SDan Williamsconfig MEMREGION
61233dd7075SDan Williams	bool
61333dd7075SDan Williams
6141156b441SDavidlohr Buesoconfig ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION
6151156b441SDavidlohr Bueso	bool
6161156b441SDavidlohr Bueso
6179ffc1d19SDan Williamsconfig ARCH_HAS_MEMREMAP_COMPAT_ALIGN
6189ffc1d19SDan Williams	bool
6199ffc1d19SDan Williams
620bd79f947SChristoph Hellwig# use memcpy to implement user copies for nommu architectures
621bd79f947SChristoph Hellwigconfig UACCESS_MEMCPY
622bd79f947SChristoph Hellwig	bool
623bd79f947SChristoph Hellwig
6240aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE
6250aed55afSDan Williams	bool
6260aed55afSDan Williams
627ec6347bbSDan Williams# arch has a concept of a recoverable synchronous exception due to a
628ec6347bbSDan Williams# memory-read error like x86 machine-check or ARM data-abort, and
629ec6347bbSDan Williams# implements copy_mc_to_{user,kernel} to abort and report
630ec6347bbSDan Williams# 'bytes-transferred' if that exception fires when accessing the source
631ec6347bbSDan Williams# buffer.
632ec6347bbSDan Williamsconfig ARCH_HAS_COPY_MC
633522239b4SDan Williams	bool
634522239b4SDan Williams
635214d8ca6SThomas Gleixner# Temporary. Goes away when all archs are cleaned up
636214d8ca6SThomas Gleixnerconfig ARCH_STACKWALK
637214d8ca6SThomas Gleixner       bool
638214d8ca6SThomas Gleixner
639cd11016eSAlexander Potapenkoconfig STACKDEPOT
640cd11016eSAlexander Potapenko	bool
641cd11016eSAlexander Potapenko	select STACKTRACE
642fc60e0caSAndrey Konovalov	help
643fc60e0caSAndrey Konovalov	  Stack depot: stack trace storage that avoids duplication
644cd11016eSAlexander Potapenko
6452dba5eb1SVlastimil Babkaconfig STACKDEPOT_ALWAYS_INIT
6462dba5eb1SVlastimil Babka	bool
6472dba5eb1SVlastimil Babka	select STACKDEPOT
648fc60e0caSAndrey Konovalov	help
649fc60e0caSAndrey Konovalov	  Always initialize stack depot during early boot
650fc60e0caSAndrey Konovalov
651fc60e0caSAndrey Konovalovconfig STACKDEPOT_MAX_FRAMES
652fc60e0caSAndrey Konovalov	int "Maximum number of frames in trace saved in stack depot"
653fc60e0caSAndrey Konovalov	range 1 256
654fc60e0caSAndrey Konovalov	default 64
655fc60e0caSAndrey Konovalov	depends on STACKDEPOT
6562dba5eb1SVlastimil Babka
6574e66934eSEric Dumazetconfig REF_TRACKER
6584e66934eSEric Dumazet	bool
6594e66934eSEric Dumazet	depends on STACKTRACE_SUPPORT
6604e66934eSEric Dumazet	select STACKDEPOT
6614e66934eSEric Dumazet
66288459642SOmar Sandovalconfig SBITMAP
66388459642SOmar Sandoval	bool
66488459642SOmar Sandoval
66544091d29SJiri Pirkoconfig PARMAN
6669d25af69SGeert Uytterhoeven	tristate "parman" if COMPILE_TEST
66744091d29SJiri Pirko
6683dfdecc6SRandy Dunlapconfig OBJAGG
6693dfdecc6SRandy Dunlap	tristate "objagg" if COMPILE_TEST
6703dfdecc6SRandy Dunlap
671de9e82c3SNeilBrownconfig LWQ_TEST
672de9e82c3SNeilBrown	bool "Boot-time test for lwq queuing"
673de9e82c3SNeilBrown	help
674de9e82c3SNeilBrown          Run boot-time test of light-weight queuing.
675de9e82c3SNeilBrown
6762de4ff7bSThomas Grafendmenu
677b35cd988SPalmer Dabbelt
67880b0ca98SChristoph Hellwigconfig GENERIC_IOREMAP
67980b0ca98SChristoph Hellwig	bool
68080b0ca98SChristoph Hellwig
681e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3
682b35cd988SPalmer Dabbelt	bool
683b35cd988SPalmer Dabbelt
684e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3
685b35cd988SPalmer Dabbelt	bool
686b35cd988SPalmer Dabbelt
687e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3
688b35cd988SPalmer Dabbelt	bool
689b35cd988SPalmer Dabbelt
690e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3
691b35cd988SPalmer Dabbelt	bool
692b35cd988SPalmer Dabbelt
693e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2
694b35cd988SPalmer Dabbelt	bool
695b35cd988SPalmer Dabbelt
696e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2
697b35cd988SPalmer Dabbelt	bool
698b8265621SJacob Keller
699527701edSPalmer Dabbeltconfig GENERIC_LIB_DEVMEM_IS_ALLOWED
700527701edSPalmer Dabbelt	bool
701527701edSPalmer Dabbelt
702b8265621SJacob Kellerconfig PLDMFW
703b8265621SJacob Keller	bool
704b8265621SJacob Keller	default n
705b0706762SJames Bottomley
706b0706762SJames Bottomleyconfig ASN1_ENCODER
707b0706762SJames Bottomley       tristate
708cd705ea8SMichael Walle
709cd705ea8SMichael Walleconfig POLYNOMIAL
710cd705ea8SMichael Walle       tristate
711a103f466SDave Jiang
712a103f466SDave Jiangconfig FIRMWARE_TABLE
713a103f466SDave Jiang	bool
714bf9850f6SKuan-Wei Chiu
715bf9850f6SKuan-Wei Chiuconfig UNION_FIND
716bf9850f6SKuan-Wei Chiu	bool
71792a8b224SKuan-Wei Chiu
71892a8b224SKuan-Wei Chiuconfig MIN_HEAP
71992a8b224SKuan-Wei Chiu	bool
720