xref: /linux/lib/Kconfig (revision 67f8bc848ee31831336bd478e57d2f993551902e)
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
11d2218d4eSMatti Vaittinenconfig LINEAR_RANGES
12d2218d4eSMatti Vaittinen	tristate
13d2218d4eSMatti Vaittinen
14554aae35SVladimir Olteanconfig PACKING
15554aae35SVladimir Oltean	bool "Generic bitfield packing and unpacking"
161280d4b7SUladzislau Koshchanka	select BITREVERSE
17554aae35SVladimir Oltean	default n
18554aae35SVladimir Oltean	help
19554aae35SVladimir Oltean	  This option provides the packing() helper function, which permits
20554aae35SVladimir Oltean	  converting bitfields between a CPU-usable representation and a
21554aae35SVladimir Oltean	  memory representation that can have any combination of these quirks:
22554aae35SVladimir Oltean	    - Is little endian (bytes are reversed within a 32-bit group)
23554aae35SVladimir Oltean	    - The least-significant 32-bit word comes first (within a 64-bit
24554aae35SVladimir Oltean	      group)
25554aae35SVladimir Oltean	    - The most significant bit of a byte is at its right (bit 0 of a
26554aae35SVladimir Oltean	      register description is numerically 2^7).
27554aae35SVladimir Oltean	  Drivers may use these helpers to match the bit indices as described
28554aae35SVladimir Oltean	  in the data sheets of the peripherals they are in control of.
29554aae35SVladimir Oltean
30554aae35SVladimir Oltean	  When in doubt, say N.
31554aae35SVladimir Oltean
32e9502ea6SJacob Kellerconfig PACKING_KUNIT_TEST
33e9502ea6SJacob Keller	tristate "KUnit tests for packing library" if !KUNIT_ALL_TESTS
34e9502ea6SJacob Keller	depends on PACKING && KUNIT
35e9502ea6SJacob Keller	default KUNIT_ALL_TESTS
36e9502ea6SJacob Keller	help
37e9502ea6SJacob Keller	  This builds KUnit tests for the packing library.
38e9502ea6SJacob Keller
39e9502ea6SJacob Keller	  For more information on KUnit and unit tests in general,
40e9502ea6SJacob Keller	  please refer to the KUnit documentation in Documentation/dev-tools/kunit/.
41e9502ea6SJacob Keller
42e9502ea6SJacob Keller	  When in doubt, say N.
43e9502ea6SJacob Keller
44a5cfc1ecSAkinobu Mitaconfig BITREVERSE
45a5cfc1ecSAkinobu Mita	tristate
46*00751d65SYury Norov	select GENERIC_BITREVERSE if !HAVE_ARCH_BITREVERSE
47a5cfc1ecSAkinobu Mita
48556d2f05SYalin Wangconfig HAVE_ARCH_BITREVERSE
49841c0090SChristoph Jaeger	bool
50556d2f05SYalin Wang	default n
5142d9c75eSYury Norov	depends on BITREVERSE
52556d2f05SYalin Wang	help
539e522c0dSAndrew Morton	  This option enables the use of hardware bit-reversal instructions on
549e522c0dSAndrew Morton	  architectures which support such operations.
55556d2f05SYalin Wang
56*00751d65SYury Norovconfig GENERIC_BITREVERSE
57*00751d65SYury Norov	tristate
58*00751d65SYury Norov	depends on BITREVERSE
59*00751d65SYury Norov	help
60*00751d65SYury Norov	  Generic bit reversal implementation. Drivers should never enable
61*00751d65SYury Norov	  it explicitly. Instead, enable BITREVERSE.
62*00751d65SYury Norov
63*00751d65SYury Norov	  Architectures may want to select it as a fall-back option for
64*00751d65SYury Norov	  HAVE_ARCH_BITREVERSE, when the hardware-accelerated bit reverse
65*00751d65SYury Norov	  instruction set is optional, like RISC-V ZBKB extension.
66*00751d65SYury Norov
67e6226997SArnd Bergmannconfig ARCH_HAS_STRNCPY_FROM_USER
682922585bSDavid S. Miller	bool
692922585bSDavid S. Miller
70e6226997SArnd Bergmannconfig ARCH_HAS_STRNLEN_USER
71a08c5356SLinus Torvalds	bool
72a08c5356SLinus Torvalds
73e6226997SArnd Bergmannconfig GENERIC_STRNCPY_FROM_USER
74e6226997SArnd Bergmann	def_bool !ARCH_HAS_STRNCPY_FROM_USER
75e6226997SArnd Bergmann
76e6226997SArnd Bergmannconfig GENERIC_STRNLEN_USER
77e6226997SArnd Bergmann	def_bool !ARCH_HAS_STRNLEN_USER
78e6226997SArnd Bergmann
794cd5773aSAndy Shevchenkoconfig GENERIC_NET_UTILS
804cd5773aSAndy Shevchenko	bool
814cd5773aSAndy Shevchenko
822c64e9cbSAndy Shevchenkosource "lib/math/Kconfig"
832c64e9cbSAndy Shevchenko
84b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP
85b923650bSMichael S. Tsirkin	bool
86b923650bSMichael S. Tsirkin
874673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP
884673ca8eSMichael S. Tsirkin	bool
8966eab4dfSMichael S. Tsirkin	select GENERIC_PCI_IOMAP
904673ca8eSMichael S. Tsirkin
914ccf4beaSWolfram Sangconfig STMP_DEVICE
924ccf4beaSWolfram Sang	bool
934ccf4beaSWolfram Sang
94bc08b449SLinus Torvaldsconfig ARCH_USE_CMPXCHG_LOCKREF
95bc08b449SLinus Torvalds	bool
96bc08b449SLinus Torvalds
9772d93104SLinus Torvaldsconfig ARCH_HAS_FAST_MULTIPLIER
9872d93104SLinus Torvalds	bool
9972d93104SLinus Torvalds
1002ce0d7f9SMark Brownconfig ARCH_USE_SYM_ANNOTATIONS
1012ce0d7f9SMark Brown	bool
1022ce0d7f9SMark Brown
103031e3601SZhichang Yuanconfig INDIRECT_PIO
104031e3601SZhichang Yuan	bool "Access I/O in non-MMIO mode"
105031e3601SZhichang Yuan	depends on ARM64
106fcbfe812SNiklas Schnelle	depends on HAS_IOPORT
107031e3601SZhichang Yuan	help
108031e3601SZhichang Yuan	  On some platforms where no separate I/O space exists, there are I/O
109031e3601SZhichang Yuan	  hosts which can not be accessed in MMIO mode. Using the logical PIO
110031e3601SZhichang Yuan	  mechanism, the host-local I/O resource can be mapped into system
111031e3601SZhichang Yuan	  logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the
112031e3601SZhichang Yuan	  system can access the I/O devices with the mapped-logic PIO through
113031e3601SZhichang Yuan	  I/O accessors.
114031e3601SZhichang Yuan
115031e3601SZhichang Yuan	  This way has relatively little I/O performance cost. Please make
116031e3601SZhichang Yuan	  sure your devices really need this configure item enabled.
117031e3601SZhichang Yuan
118031e3601SZhichang Yuan	  When in doubt, say N.
119031e3601SZhichang Yuan
120ca2e3342SJohannes Bergconfig INDIRECT_IOMEM
121ca2e3342SJohannes Berg	bool
122ca2e3342SJohannes Berg	help
123ca2e3342SJohannes Berg	  This is selected by other options/architectures to provide the
124ca2e3342SJohannes Berg	  emulated iomem accessors.
125ca2e3342SJohannes Berg
126ca2e3342SJohannes Bergconfig INDIRECT_IOMEM_FALLBACK
127ca2e3342SJohannes Berg	bool
128ca2e3342SJohannes Berg	depends on INDIRECT_IOMEM
129ca2e3342SJohannes Berg	help
130ca2e3342SJohannes Berg	  If INDIRECT_IOMEM is selected, this enables falling back to plain
131ca2e3342SJohannes Berg	  mmio accesses when the IO memory address is not a registered
132ca2e3342SJohannes Berg	  emulated region.
133ca2e3342SJohannes Berg
134d593d64fSPrasad Sodagudiconfig TRACE_MMIO_ACCESS
135d593d64fSPrasad Sodagudi	bool "Register read/write tracing"
136d593d64fSPrasad Sodagudi	depends on TRACING && ARCH_HAVE_TRACE_MMIO_ACCESS
137d593d64fSPrasad Sodagudi	help
138d593d64fSPrasad Sodagudi	  Create tracepoints for MMIO read/write operations. These trace events
139d593d64fSPrasad Sodagudi	  can be used for logging all MMIO read/write operations.
140d593d64fSPrasad Sodagudi
14189a51591SEric Biggerssource "lib/crc/Kconfig"
142e56e1898SJustin M. Forbessource "lib/crypto/Kconfig"
1439e229025SChristoph Hellwigsource "lib/raid/Kconfig"
144e56e1898SJustin M. Forbes
1455d240522SNick Terrellconfig XXHASH
1465d240522SNick Terrell	tristate
1475d240522SNick Terrell
148e65e1fc2SAl Viroconfig AUDIT_GENERIC
149e65e1fc2SAl Viro	bool
150e65e1fc2SAl Viro	depends on AUDIT && !AUDIT_ARCH
151e65e1fc2SAl Viro	default y
152e65e1fc2SAl Viro
1534b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC
1544b588411SAKASHI Takahiro	bool
1554b588411SAKASHI Takahiro	default n
1564b588411SAKASHI Takahiro
1574b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC
1584b588411SAKASHI Takahiro	bool
1594b588411SAKASHI Takahiro	depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT
1604b588411SAKASHI Takahiro	default y
1614b588411SAKASHI Takahiro
1621da177e4SLinus Torvalds#
1631da177e4SLinus Torvalds# compression support is select'ed if needed
1641da177e4SLinus Torvalds#
1652da572c9SDan Streetmanconfig 842_COMPRESS
1665b571677SArnd Bergmann	select CRC32
1672da572c9SDan Streetman	tristate
1682da572c9SDan Streetman
1692da572c9SDan Streetmanconfig 842_DECOMPRESS
1705b571677SArnd Bergmann	select CRC32
1712da572c9SDan Streetman	tristate
1722da572c9SDan Streetman
1731da177e4SLinus Torvaldsconfig ZLIB_INFLATE
1741da177e4SLinus Torvalds	tristate
1751da177e4SLinus Torvalds
1761da177e4SLinus Torvaldsconfig ZLIB_DEFLATE
1771da177e4SLinus Torvalds	tristate
1781fd4e5c3SAndrew Morton	select BITREVERSE
1791da177e4SLinus Torvalds
180aa5b395bSMikhail Zaslonkoconfig ZLIB_DFLTCC
181aa5b395bSMikhail Zaslonko	def_bool y
182aa5b395bSMikhail Zaslonko	depends on S390
183aa5b395bSMikhail Zaslonko	prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib"
184aa5b395bSMikhail Zaslonko	help
185aa5b395bSMikhail Zaslonko	 Enable s390x hardware support for zlib in the kernel.
186aa5b395bSMikhail Zaslonko
18764c70b1cSRichard Purdieconfig LZO_COMPRESS
18864c70b1cSRichard Purdie	tristate
18964c70b1cSRichard Purdie
19064c70b1cSRichard Purdieconfig LZO_DECOMPRESS
19164c70b1cSRichard Purdie	tristate
19264c70b1cSRichard Purdie
193c72ac7a1SChanho Minconfig LZ4_COMPRESS
194c72ac7a1SChanho Min	tristate
195c72ac7a1SChanho Min
196c72ac7a1SChanho Minconfig LZ4HC_COMPRESS
197c72ac7a1SChanho Min	tristate
198c72ac7a1SChanho Min
199e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS
200e76e1fdfSKyungsik Lee	tristate
201e76e1fdfSKyungsik Lee
202637a642fSAlexey Kardashevskiyconfig ZSTD_COMMON
20373f3d1b4SNick Terrell	select XXHASH
20473f3d1b4SNick Terrell	tristate
20573f3d1b4SNick Terrell
206637a642fSAlexey Kardashevskiyconfig ZSTD_COMPRESS
207637a642fSAlexey Kardashevskiy	select ZSTD_COMMON
208637a642fSAlexey Kardashevskiy	tristate
209637a642fSAlexey Kardashevskiy
21073f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS
211637a642fSAlexey Kardashevskiy	select ZSTD_COMMON
21273f3d1b4SNick Terrell	tristate
21373f3d1b4SNick Terrell
21424fa0402SLasse Collinsource "lib/xz/Kconfig"
21524fa0402SLasse Collin
2161da177e4SLinus Torvalds#
217c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with
218c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
219c8531ab3SH. Peter Anvin#
220c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP
2217856a16eSH. Peter Anvin	select ZLIB_INFLATE
222c8531ab3SH. Peter Anvin	tristate
223c8531ab3SH. Peter Anvin
224c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2
225c8531ab3SH. Peter Anvin	tristate
226c8531ab3SH. Peter Anvin
227c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA
228c8531ab3SH. Peter Anvin	tristate
229c8531ab3SH. Peter Anvin
2303ebe1243SLasse Collinconfig DECOMPRESS_XZ
2313ebe1243SLasse Collin	select XZ_DEC
2323ebe1243SLasse Collin	tristate
2333ebe1243SLasse Collin
234cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO
235cacb246fSAlbin Tonnerre	select LZO_DECOMPRESS
236cacb246fSAlbin Tonnerre	tristate
237cacb246fSAlbin Tonnerre
238e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4
239e76e1fdfSKyungsik Lee	select LZ4_DECOMPRESS
240e76e1fdfSKyungsik Lee	tristate
241e76e1fdfSKyungsik Lee
2424963bb2bSNick Terrellconfig DECOMPRESS_ZSTD
2434963bb2bSNick Terrell	select ZSTD_DECOMPRESS
2444963bb2bSNick Terrell	tristate
2454963bb2bSNick Terrell
246c8531ab3SH. Peter Anvin#
247f14f75b8SJes Sorensen# Generic allocator support is selected if needed
248f14f75b8SJes Sorensen#
249f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR
2506341e62bSChristoph Jaeger	bool
251f14f75b8SJes Sorensen
252f14f75b8SJes Sorensen#
2531da177e4SLinus Torvalds# reed solomon support is select'ed if needed
2541da177e4SLinus Torvalds#
2551da177e4SLinus Torvaldsconfig REED_SOLOMON
2561da177e4SLinus Torvalds	tristate
2571da177e4SLinus Torvalds
2581da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8
2596341e62bSChristoph Jaeger	bool
2601da177e4SLinus Torvalds
2611da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8
2626341e62bSChristoph Jaeger	bool
2631da177e4SLinus Torvalds
2641da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16
2656341e62bSChristoph Jaeger	bool
2661da177e4SLinus Torvalds
2671da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16
2686341e62bSChristoph Jaeger	bool
2691da177e4SLinus Torvalds
270f7704347SDavid S. Miller#
271437aa565SIvan Djelic# BCH support is selected if needed
272437aa565SIvan Djelic#
273437aa565SIvan Djelicconfig BCH
274437aa565SIvan Djelic	tristate
27502d7f74aSJohn Sanpe	select BITREVERSE
276437aa565SIvan Djelic
277437aa565SIvan Djelicconfig BCH_CONST_PARAMS
2786341e62bSChristoph Jaeger	bool
279437aa565SIvan Djelic	help
280437aa565SIvan Djelic	  Drivers may select this option to force specific constant
281437aa565SIvan Djelic	  values for parameters 'm' (Galois field order) and 't'
282437aa565SIvan Djelic	  (error correction capability). Those specific values must
283437aa565SIvan Djelic	  be set by declaring default values for symbols BCH_CONST_M
284437aa565SIvan Djelic	  and BCH_CONST_T.
285437aa565SIvan Djelic	  Doing so will enable extra compiler optimizations,
286437aa565SIvan Djelic	  improving encoding and decoding performance up to 2x for
287437aa565SIvan Djelic	  usual (m,t) values (typically such that m*t < 200).
288437aa565SIvan Djelic	  When this option is selected, the BCH library supports
289437aa565SIvan Djelic	  only a single (m,t) configuration. This is mainly useful
290437aa565SIvan Djelic	  for NAND flash board drivers requiring known, fixed BCH
291437aa565SIvan Djelic	  parameters.
292437aa565SIvan Djelic
293437aa565SIvan Djelicconfig BCH_CONST_M
294437aa565SIvan Djelic	int
295437aa565SIvan Djelic	range 5 15
296437aa565SIvan Djelic	help
297437aa565SIvan Djelic	  Constant value for Galois field order 'm'. If 'k' is the
298437aa565SIvan Djelic	  number of data bits to protect, 'm' should be chosen such
299437aa565SIvan Djelic	  that (k + m*t) <= 2**m - 1.
300437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
301437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
302437aa565SIvan Djelic
303437aa565SIvan Djelicconfig BCH_CONST_T
304437aa565SIvan Djelic	int
305437aa565SIvan Djelic	help
306437aa565SIvan Djelic	  Constant value for error correction capability in bits 't'.
307437aa565SIvan Djelic	  Drivers should declare a default value for this symbol if
308437aa565SIvan Djelic	  they select option BCH_CONST_PARAMS.
309437aa565SIvan Djelic
310437aa565SIvan Djelic#
311f7704347SDavid S. Miller# Textsearch support is select'ed if needed
312f7704347SDavid S. Miller#
3132de4ff7bSThomas Grafconfig TEXTSEARCH
3146341e62bSChristoph Jaeger	bool
3151da177e4SLinus Torvalds
316df3fb93aSThomas Grafconfig TEXTSEARCH_KMP
317f7704347SDavid S. Miller	tristate
318df3fb93aSThomas Graf
3198082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM
32029cb9f9cSDavid S. Miller	tristate
3218082e4edSPablo Neira Ayuso
3226408f79cSThomas Grafconfig TEXTSEARCH_FSM
323f7704347SDavid S. Miller	tristate
3246408f79cSThomas Graf
3255db53f3eSJoern Engelconfig BTREE
3266341e62bSChristoph Jaeger	bool
3275db53f3eSJoern Engel
328a88cc108SChris Wilsonconfig INTERVAL_TREE
3296341e62bSChristoph Jaeger	bool
330a88cc108SChris Wilson	help
331a88cc108SChris Wilson	  Simple, embeddable, interval-tree. Can find the start of an
332a88cc108SChris Wilson	  overlapping range in log(n) time and then iterate over all
333a88cc108SChris Wilson	  overlapping nodes. The algorithm is implemented as an
334a88cc108SChris Wilson	  augmented rbtree.
335a88cc108SChris Wilson
336a88cc108SChris Wilson	  See:
337a88cc108SChris Wilson
33814bbe3e3SMatthew Wilcox (Oracle)		Documentation/core-api/rbtree.rst
339a88cc108SChris Wilson
340a88cc108SChris Wilson	  for more information.
341a88cc108SChris Wilson
3425fe93786SJason Gunthorpeconfig INTERVAL_TREE_SPAN_ITER
3435fe93786SJason Gunthorpe	bool
3445fe93786SJason Gunthorpe	depends on INTERVAL_TREE
3455fe93786SJason Gunthorpe
34602c02bf1SMatthew Wilcoxconfig XARRAY_MULTI
34757578c2eSMatthew Wilcox	bool
34802c02bf1SMatthew Wilcox	help
34902c02bf1SMatthew Wilcox	  Support entries which occupy multiple consecutive indices in the
35002c02bf1SMatthew Wilcox	  XArray.
35157578c2eSMatthew Wilcox
3523cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY
3533cb98950SDavid Howells	bool
3543cb98950SDavid Howells	help
3553cb98950SDavid Howells	  Generic associative array.  Can be searched and iterated over whilst
3563cb98950SDavid Howells	  it is being modified.  It is also reasonably quick to search and
3573cb98950SDavid Howells	  modify.  The algorithms are non-recursive, and the trees are highly
3583cb98950SDavid Howells	  capacious.
3593cb98950SDavid Howells
3603cb98950SDavid Howells	  See:
3613cb98950SDavid Howells
3625fb94e9cSMauro Carvalho Chehab		Documentation/core-api/assoc_array.rst
3633cb98950SDavid Howells
3643cb98950SDavid Howells	  for more information.
3653cb98950SDavid Howells
3668c8d2d96SKent Overstreetconfig CLOSURES
3678c8d2d96SKent Overstreet	bool
3688c8d2d96SKent Overstreet
3695ea81769SAl Viroconfig HAS_IOMEM
3706341e62bSChristoph Jaeger	bool
3715ea81769SAl Viro	depends on !NO_IOMEM
3725ea81769SAl Viro	default y
3735ea81769SAl Viro
374fcbfe812SNiklas Schnelleconfig HAS_IOPORT
375fcbfe812SNiklas Schnelle	bool
376fcbfe812SNiklas Schnelle
377ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP
3786341e62bSChristoph Jaeger	bool
379ce816fa8SUwe Kleine-König	depends on HAS_IOMEM && !NO_IOPORT_MAP
380ee36c2bfSAl Viro	default y
381ee36c2bfSAl Viro
382cf65a0f6SChristoph Hellwigsource "kernel/dma/Kconfig"
383411f0f3eSHeiko Carstens
384e80a0af4SBart Van Asscheconfig SGL_ALLOC
385e80a0af4SBart Van Assche	bool
386e80a0af4SBart Van Assche	default n
387e80a0af4SBart Van Assche
388a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER
389a4ce5a48SChristoph Hellwig	bool
390a4ce5a48SChristoph Hellwig
391928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE
392928923c7SGeert Uytterhoeven	bool
393928923c7SGeert Uytterhoeven
394aab46da0SRusty Russellconfig CPUMASK_OFFSTACK
395aab46da0SRusty Russell	bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
396aab46da0SRusty Russell	help
397aab46da0SRusty Russell	  Use dynamic allocation for cpumask_var_t, instead of putting
398aab46da0SRusty Russell	  them on the stack.  This is a bit more expensive, but avoids
399aab46da0SRusty Russell	  stack overflow.
400aab46da0SRusty Russell
4016f9c07beSYury Norovconfig FORCE_NR_CPUS
4025d272dd1SLinus Torvalds	def_bool !SMP
4036f9c07beSYury Norov
404c39649c3SBen Hutchingsconfig CPU_RMAP
405c39649c3SBen Hutchings	bool
406c39649c3SBen Hutchings	depends on SMP
407c39649c3SBen Hutchings
40875957ba3STom Herbertconfig DQL
40975957ba3STom Herbert	bool
41075957ba3STom Herbert
411b0125085SGeorge Spelvinconfig GLOB
412b0125085SGeorge Spelvin	bool
413b0125085SGeorge Spelvin#	This actually supports modular compilation, but the module overhead
414b0125085SGeorge Spelvin#	is ridiculous for the amount of code involved.	Until an out-of-tree
415b0125085SGeorge Spelvin#	driver asks for it, we'll just link it directly it into the kernel
416b0125085SGeorge Spelvin#	when required.  Since we're ignoring out-of-tree users,	there's also
417b0125085SGeorge Spelvin#	no need bother prompting for a manual decision:
418b0125085SGeorge Spelvin#	prompt "glob_match() function"
419b0125085SGeorge Spelvin	help
420b0125085SGeorge Spelvin	  This option provides a glob_match function for performing
421b0125085SGeorge Spelvin	  simple text pattern matching.  It originated in the ATA code
422b0125085SGeorge Spelvin	  to blacklist particular drive models, but other device drivers
423b0125085SGeorge Spelvin	  may need similar functionality.
424b0125085SGeorge Spelvin
425b0125085SGeorge Spelvin	  All drivers in the Linux kernel tree that require this function
426b0125085SGeorge Spelvin	  should automatically select this option.  Say N unless you
427b0125085SGeorge Spelvin	  are compiling an out-of tree driver which tells you that it
428b0125085SGeorge Spelvin	  depends on this.
429b0125085SGeorge Spelvin
430e9cc8bddSGeert Uytterhoeven#
431e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed
432e9cc8bddSGeert Uytterhoeven#
433e9cc8bddSGeert Uytterhoevenconfig NLATTR
434e9cc8bddSGeert Uytterhoeven	bool
435e9cc8bddSGeert Uytterhoeven
43609d4e0edSPaul Mackerras#
43709d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed
43809d4e0edSPaul Mackerras#
43909d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64
44009d4e0edSPaul Mackerras       bool
44109d4e0edSPaul Mackerras
442b411b363SPhilipp Reisnerconfig LRU_CACHE
443b411b363SPhilipp Reisner	tristate
444b411b363SPhilipp Reisner
445c6df4b17SDavid Millerconfig CLZ_TAB
446c6df4b17SDavid Miller	bool
447c6df4b17SDavid Miller
448511cbce2SChristoph Hellwigconfig IRQ_POLL
449511cbce2SChristoph Hellwig	bool "IRQ polling library"
450511cbce2SChristoph Hellwig	help
451511cbce2SChristoph Hellwig	  Helper library to poll interrupt mitigation using polling.
452511cbce2SChristoph Hellwig
453d9c46b18SDmitry Kasatkinconfig MPILIB
4542e5f094bSDmitry Kasatkin	tristate
455c6df4b17SDavid Miller	select CLZ_TAB
456d9c46b18SDmitry Kasatkin	help
457d9c46b18SDmitry Kasatkin	  Multiprecision maths library from GnuPG.
458d9c46b18SDmitry Kasatkin	  It is used to implement RSA digital signature verification,
459d9c46b18SDmitry Kasatkin	  which is used by IMA/EVM digital signature extension.
460d9c46b18SDmitry Kasatkin
4615e8898e9SDmitry Kasatkinconfig SIGNATURE
4622e5f094bSDmitry Kasatkin	tristate
4630d1f64f6SDmitry Kasatkin	depends on KEYS
464191cac34SEric Biggers	select CRYPTO_LIB_SHA1
465051dbb91SDmitry Kasatkin	select MPILIB
466051dbb91SDmitry Kasatkin	help
467051dbb91SDmitry Kasatkin	  Digital signature verification. Currently only RSA is supported.
468051dbb91SDmitry Kasatkin	  Implementation is done using GnuPG MPI library
469051dbb91SDmitry Kasatkin
4704f75da36STal Gilboaconfig DIMLIB
4710d5044b4SFlorian Fainelli	tristate
472b65e697aSHeng Qi	depends on NET
4734f75da36STal Gilboa	help
4744f75da36STal Gilboa	  Dynamic Interrupt Moderation library.
475991ad2b2SRandy Dunlap	  Implements an algorithm for dynamically changing CQ moderation values
4764f75da36STal Gilboa	  according to run time performance.
4774f75da36STal Gilboa
478ab253839SDavid Daney#
479ab253839SDavid Daney# libfdt files, only selected if needed.
480ab253839SDavid Daney#
481ab253839SDavid Daneyconfig LIBFDT
482ab253839SDavid Daney	bool
483ab253839SDavid Daney
484a77ad6eaSDavid Howellsconfig OID_REGISTRY
485a77ad6eaSDavid Howells	tristate
486a77ad6eaSDavid Howells	help
487a77ad6eaSDavid Howells	  Enable fast lookup object identifier registry.
488a77ad6eaSDavid Howells
4890635eb8aSMatthew Garrettconfig UCS2_STRING
4900635eb8aSMatthew Garrett	tristate
4910635eb8aSMatthew Garrett
49200b26474SVincenzo Frascino#
49300b26474SVincenzo Frascino# generic vdso
49400b26474SVincenzo Frascino#
49500b26474SVincenzo Frascinosource "lib/vdso/Kconfig"
49600b26474SVincenzo Frascino
497ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig"
498ee89bd6bSGeert Uytterhoeven
499f8bcbe62SRobert Jarzmikconfig SG_SPLIT
500f8bcbe62SRobert Jarzmik	def_bool n
501f8bcbe62SRobert Jarzmik	help
5027f7e92f7SGeert Uytterhoeven	 Provides a helper to split scatterlists into chunks, each chunk being
5037f7e92f7SGeert Uytterhoeven	 a scatterlist. This should be selected by a driver or an API which
5047f7e92f7SGeert Uytterhoeven	 whishes to split a scatterlist amongst multiple DMA channels.
505f8bcbe62SRobert Jarzmik
5069b1d6c89SMing Linconfig SG_POOL
5079b1d6c89SMing Lin	def_bool n
5089b1d6c89SMing Lin	help
5099b1d6c89SMing Lin	 Provides a helper to allocate chained scatterlists. This should be
5109b1d6c89SMing Lin	 selected by a driver or an API which whishes to allocate chained
5119b1d6c89SMing Lin	 scatterlist.
5129b1d6c89SMing Lin
513308c09f1SLaura Abbott#
514308c09f1SLaura Abbott# sg chaining option
515308c09f1SLaura Abbott#
516308c09f1SLaura Abbott
5177c703e54SChristoph Hellwigconfig ARCH_NO_SG_CHAIN
518308c09f1SLaura Abbott	def_bool n
519308c09f1SLaura Abbott
52061031952SRoss Zwislerconfig ARCH_HAS_PMEM_API
52161031952SRoss Zwisler	bool
52261031952SRoss Zwisler
52333dd7075SDan Williamsconfig MEMREGION
52433dd7075SDan Williams	bool
52533dd7075SDan Williams
5261156b441SDavidlohr Buesoconfig ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION
5271156b441SDavidlohr Bueso	bool
5281156b441SDavidlohr Bueso
529c460697dSYicong Yangconfig GENERIC_CPU_CACHE_MAINTENANCE
530c460697dSYicong Yang	bool
531c460697dSYicong Yang
5329ffc1d19SDan Williamsconfig ARCH_HAS_MEMREMAP_COMPAT_ALIGN
5339ffc1d19SDan Williams	bool
5349ffc1d19SDan Williams
535bd79f947SChristoph Hellwig# use memcpy to implement user copies for nommu architectures
536bd79f947SChristoph Hellwigconfig UACCESS_MEMCPY
537bd79f947SChristoph Hellwig	bool
538bd79f947SChristoph Hellwig
5390aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE
5400aed55afSDan Williams	bool
5410aed55afSDan Williams
542ec6347bbSDan Williams# arch has a concept of a recoverable synchronous exception due to a
543ec6347bbSDan Williams# memory-read error like x86 machine-check or ARM data-abort, and
544ec6347bbSDan Williams# implements copy_mc_to_{user,kernel} to abort and report
545ec6347bbSDan Williams# 'bytes-transferred' if that exception fires when accessing the source
546ec6347bbSDan Williams# buffer.
547ec6347bbSDan Williamsconfig ARCH_HAS_COPY_MC
548522239b4SDan Williams	bool
549522239b4SDan Williams
550214d8ca6SThomas Gleixner# Temporary. Goes away when all archs are cleaned up
551214d8ca6SThomas Gleixnerconfig ARCH_STACKWALK
552214d8ca6SThomas Gleixner       bool
553214d8ca6SThomas Gleixner
554cd11016eSAlexander Potapenkoconfig STACKDEPOT
555cd11016eSAlexander Potapenko	bool
556cd11016eSAlexander Potapenko	select STACKTRACE
557fc60e0caSAndrey Konovalov	help
558fc60e0caSAndrey Konovalov	  Stack depot: stack trace storage that avoids duplication
559cd11016eSAlexander Potapenko
5602dba5eb1SVlastimil Babkaconfig STACKDEPOT_ALWAYS_INIT
5612dba5eb1SVlastimil Babka	bool
5622dba5eb1SVlastimil Babka	select STACKDEPOT
563fc60e0caSAndrey Konovalov	help
564fc60e0caSAndrey Konovalov	  Always initialize stack depot during early boot
565fc60e0caSAndrey Konovalov
566fc60e0caSAndrey Konovalovconfig STACKDEPOT_MAX_FRAMES
567fc60e0caSAndrey Konovalov	int "Maximum number of frames in trace saved in stack depot"
568fc60e0caSAndrey Konovalov	range 1 256
569fc60e0caSAndrey Konovalov	default 64
570fc60e0caSAndrey Konovalov	depends on STACKDEPOT
5712dba5eb1SVlastimil Babka
5724e66934eSEric Dumazetconfig REF_TRACKER
5734e66934eSEric Dumazet	bool
5744e66934eSEric Dumazet	depends on STACKTRACE_SUPPORT
5754e66934eSEric Dumazet	select STACKDEPOT
5764e66934eSEric Dumazet
57788459642SOmar Sandovalconfig SBITMAP
57888459642SOmar Sandoval	bool
57988459642SOmar Sandoval
58044091d29SJiri Pirkoconfig PARMAN
5819d25af69SGeert Uytterhoeven	tristate "parman" if COMPILE_TEST
58244091d29SJiri Pirko
5833dfdecc6SRandy Dunlapconfig OBJAGG
5843dfdecc6SRandy Dunlap	tristate "objagg" if COMPILE_TEST
5853dfdecc6SRandy Dunlap
586de9e82c3SNeilBrownconfig LWQ_TEST
587de9e82c3SNeilBrown	bool "Boot-time test for lwq queuing"
588de9e82c3SNeilBrown	help
589de9e82c3SNeilBrown	  Run boot-time test of light-weight queuing.
590de9e82c3SNeilBrown
5912de4ff7bSThomas Grafendmenu
592b35cd988SPalmer Dabbelt
59380b0ca98SChristoph Hellwigconfig GENERIC_IOREMAP
59480b0ca98SChristoph Hellwig	bool
59580b0ca98SChristoph Hellwig
596e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3
597b35cd988SPalmer Dabbelt	bool
598b35cd988SPalmer Dabbelt
599e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3
600b35cd988SPalmer Dabbelt	bool
601b35cd988SPalmer Dabbelt
602e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3
603b35cd988SPalmer Dabbelt	bool
604b35cd988SPalmer Dabbelt
605e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3
606b35cd988SPalmer Dabbelt	bool
607b35cd988SPalmer Dabbelt
608e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2
609b35cd988SPalmer Dabbelt	bool
610b35cd988SPalmer Dabbelt
611e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2
612b35cd988SPalmer Dabbelt	bool
613b8265621SJacob Keller
614527701edSPalmer Dabbeltconfig GENERIC_LIB_DEVMEM_IS_ALLOWED
615527701edSPalmer Dabbelt	bool
616527701edSPalmer Dabbelt
617b8265621SJacob Kellerconfig PLDMFW
618b8265621SJacob Keller	bool
6191224b218SSimon Horman	select CRC32
620b8265621SJacob Keller	default n
621b0706762SJames Bottomley
622b0706762SJames Bottomleyconfig ASN1_ENCODER
623b0706762SJames Bottomley       tristate
624cd705ea8SMichael Walle
625a103f466SDave Jiangconfig FIRMWARE_TABLE
626a103f466SDave Jiang	bool
627bf9850f6SKuan-Wei Chiu
628bf9850f6SKuan-Wei Chiuconfig UNION_FIND
629bf9850f6SKuan-Wei Chiu	bool
63092a8b224SKuan-Wei Chiu
63192a8b224SKuan-Wei Chiuconfig MIN_HEAP
63292a8b224SKuan-Wei Chiu	bool
633