]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - lib/Kconfig
test_rhashtable: add test case for rhltable with duplicate objects
[mirror_ubuntu-bionic-kernel.git] / lib / Kconfig
CommitLineData
1da177e4
LT
1#
2# Library configuration
3#
4
4370aa4a
LJ
5config BINARY_PRINTF
6 def_bool n
7
1da177e4
LT
8menu "Library routines"
9
f5e70d0f
DW
10config RAID6_PQ
11 tristate
12
a5cfc1ec
AM
13config BITREVERSE
14 tristate
15
556d2f05 16config HAVE_ARCH_BITREVERSE
841c0090 17 bool
556d2f05
YW
18 default n
19 depends on BITREVERSE
20 help
9e522c0d
AM
21 This option enables the use of hardware bit-reversal instructions on
22 architectures which support such operations.
556d2f05 23
8759ef32 24config RATIONAL
6341e62b 25 bool
8759ef32 26
2922585b
DM
27config GENERIC_STRNCPY_FROM_USER
28 bool
29
a08c5356
LT
30config GENERIC_STRNLEN_USER
31 bool
32
4cd5773a
AS
33config GENERIC_NET_UTILS
34 bool
35
19870def 36config GENERIC_FIND_FIRST_BIT
9ba16087 37 bool
19870def 38
b923650b
MT
39config NO_GENERIC_PCI_IOPORT_MAP
40 bool
41
66eab4df
MT
42config GENERIC_PCI_IOMAP
43 bool
44
4673ca8e
MT
45config GENERIC_IOMAP
46 bool
66eab4df 47 select GENERIC_PCI_IOMAP
4673ca8e 48
4ccf4bea
WS
49config STMP_DEVICE
50 bool
22b361d1 51
bc08b449
LT
52config ARCH_USE_CMPXCHG_LOCKREF
53 bool
54
72d93104
LT
55config ARCH_HAS_FAST_MULTIPLIER
56 bool
57
342c2a0e
ZY
58config INDIRECT_PIO
59 bool "Access I/O in non-MMIO mode"
60 depends on ARM64
61 help
62 On some platforms where no separate I/O space exists, there are I/O
63 hosts which can not be accessed in MMIO mode. Using the logical PIO
64 mechanism, the host-local I/O resource can be mapped into system
65 logic PIO space shared with MMIO hosts, such as PCI/PCIE, then the
66 system can access the I/O devices with the mapped logic PIO through
67 I/O accessors.
68 This way has relatively little I/O performance cost. Please make
69 sure your devices really need this configure item enabled.
70
71 When in doubt, say N.
72
1da177e4
LT
73config CRC_CCITT
74 tristate "CRC-CCITT functions"
75 help
76 This option is provided for the case where no in-kernel-tree
77 modules require CRC-CCITT functions, but a module built outside
78 the kernel tree does. Such modules that use library CRC-CCITT
79 functions require M here.
80
7657ec1f
EP
81config CRC16
82 tristate "CRC16 functions"
83 help
84 This option is provided for the case where no in-kernel-tree
85 modules require CRC16 functions, but a module built outside
86 the kernel tree does. Such modules that use library CRC16
87 functions require M here.
88
f11f594e
MP
89config CRC_T10DIF
90 tristate "CRC calculation for the T10 Data Integrity Field"
68411521
HX
91 select CRYPTO
92 select CRYPTO_CRCT10DIF
f11f594e
MP
93 help
94 This option is only needed if a module that's not in the
95 kernel tree needs to calculate CRC checks for use with the
96 SCSI data integrity subsystem.
97
3e7cbae7
ID
98config CRC_ITU_T
99 tristate "CRC ITU-T V.41 functions"
100 help
101 This option is provided for the case where no in-kernel-tree
102 modules require CRC ITU-T V.41 functions, but a module built outside
103 the kernel tree does. Such modules that use library CRC ITU-T V.41
104 functions require M here.
105
1da177e4 106config CRC32
46c5801e 107 tristate "CRC32/CRC32c functions"
1da177e4 108 default y
906d66df 109 select BITREVERSE
1da177e4
LT
110 help
111 This option is provided for the case where no in-kernel-tree
46c5801e
DW
112 modules require CRC32/CRC32c functions, but a module built outside
113 the kernel tree does. Such modules that use library CRC32/CRC32c
114 functions require M here.
1da177e4 115
3863ef31 116config CRC32_SELFTEST
5fb7f874 117 tristate "CRC32 perform self test on init"
3863ef31
BP
118 depends on CRC32
119 help
120 This option enables the CRC32 library functions to perform a
121 self test on initialization. The self test computes crc32_le
122 and crc32_be over byte strings with random alignment and length
123 and computes the total elapsed time and number of bytes processed.
124
5cde7656
DW
125choice
126 prompt "CRC32 implementation"
127 depends on CRC32
128 default CRC32_SLICEBY8
82edb4ba
DW
129 help
130 This option allows a kernel builder to override the default choice
131 of CRC32 algorithm. Choose the default ("slice by 8") unless you
132 know that you need one of the others.
5cde7656
DW
133
134config CRC32_SLICEBY8
135 bool "Slice by 8 bytes"
136 help
137 Calculate checksum 8 bytes at a time with a clever slicing algorithm.
138 This is the fastest algorithm, but comes with a 8KiB lookup table.
139 Most modern processors have enough cache to hold this table without
140 thrashing the cache.
141
142 This is the default implementation choice. Choose this one unless
143 you have a good reason not to.
144
145config CRC32_SLICEBY4
146 bool "Slice by 4 bytes"
147 help
148 Calculate checksum 4 bytes at a time with a clever slicing algorithm.
149 This is a bit slower than slice by 8, but has a smaller 4KiB lookup
150 table.
151
152 Only choose this option if you know what you are doing.
153
154config CRC32_SARWATE
155 bool "Sarwate's Algorithm (one byte at a time)"
156 help
157 Calculate checksum a byte at a time using Sarwate's algorithm. This
158 is not particularly fast, but has a small 256 byte lookup table.
159
160 Only choose this option if you know what you are doing.
161
162config CRC32_BIT
163 bool "Classic Algorithm (one bit at a time)"
164 help
165 Calculate checksum one bit at a time. This is VERY slow, but has
166 no lookup table. This is provided as a debugging option.
167
168 Only choose this option if you are debugging crc32.
169
170endchoice
171
0cbaa448
JK
172config CRC4
173 tristate "CRC4 functions"
174 help
175 This option is provided for the case where no in-kernel-tree
176 modules require CRC4 functions, but a module built outside
177 the kernel tree does. Such modules that use library CRC4
178 functions require M here.
179
ad241528
JN
180config CRC7
181 tristate "CRC7 functions"
182 help
183 This option is provided for the case where no in-kernel-tree
184 modules require CRC7 functions, but a module built outside
185 the kernel tree does. Such modules that use library CRC7
186 functions require M here.
187
1da177e4
LT
188config LIBCRC32C
189 tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
93027354 190 select CRYPTO
69c35efc 191 select CRYPTO_CRC32C
1da177e4
LT
192 help
193 This option is provided for the case where no in-kernel-tree
194 modules require CRC32c functions, but a module built outside the
195 kernel tree does. Such modules that use library CRC32c functions
196 require M here. See Castagnoli93.
197 Module will be libcrc32c.
198
7150962d
AS
199config CRC8
200 tristate "CRC8 function"
201 help
202 This option provides CRC8 function. Drivers may select this
203 when they need to do cyclic redundancy check according CRC8
204 algorithm. Module will be called crc8.
205
5d240522
NT
206config XXHASH
207 tristate
208
e65e1fc2
AV
209config AUDIT_GENERIC
210 bool
211 depends on AUDIT && !AUDIT_ARCH
212 default y
213
4b588411
AT
214config AUDIT_ARCH_COMPAT_GENERIC
215 bool
216 default n
217
218config AUDIT_COMPAT_GENERIC
219 bool
220 depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT
221 default y
222
a6a9c0f1
DB
223config RANDOM32_SELFTEST
224 bool "PRNG perform self test on init"
225 default n
226 help
227 This option enables the 32 bit PRNG library functions to perform a
228 self test on initialization.
229
1da177e4
LT
230#
231# compression support is select'ed if needed
232#
2da572c9 233config 842_COMPRESS
5b571677 234 select CRC32
2da572c9
DS
235 tristate
236
237config 842_DECOMPRESS
5b571677 238 select CRC32
2da572c9
DS
239 tristate
240
1da177e4
LT
241config ZLIB_INFLATE
242 tristate
243
244config ZLIB_DEFLATE
245 tristate
1fd4e5c3 246 select BITREVERSE
1da177e4 247
64c70b1c
RP
248config LZO_COMPRESS
249 tristate
250
251config LZO_DECOMPRESS
252 tristate
253
c72ac7a1
CM
254config LZ4_COMPRESS
255 tristate
256
257config LZ4HC_COMPRESS
258 tristate
259
e76e1fdf
KL
260config LZ4_DECOMPRESS
261 tristate
262
73f3d1b4
NT
263config ZSTD_COMPRESS
264 select XXHASH
265 tristate
266
267config ZSTD_DECOMPRESS
268 select XXHASH
269 tristate
270
24fa0402
LC
271source "lib/xz/Kconfig"
272
c8531ab3
PA
273#
274# These all provide a common interface (hence the apparent duplication with
275# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
276#
277config DECOMPRESS_GZIP
7856a16e 278 select ZLIB_INFLATE
c8531ab3
PA
279 tristate
280
281config DECOMPRESS_BZIP2
282 tristate
283
284config DECOMPRESS_LZMA
285 tristate
286
3ebe1243
LC
287config DECOMPRESS_XZ
288 select XZ_DEC
289 tristate
290
cacb246f
AT
291config DECOMPRESS_LZO
292 select LZO_DECOMPRESS
293 tristate
294
e76e1fdf
KL
295config DECOMPRESS_LZ4
296 select LZ4_DECOMPRESS
297 tristate
298
f14f75b8
JS
299#
300# Generic allocator support is selected if needed
301#
302config GENERIC_ALLOCATOR
6341e62b 303 bool
f14f75b8 304
1da177e4
LT
305#
306# reed solomon support is select'ed if needed
307#
308config REED_SOLOMON
309 tristate
310
311config REED_SOLOMON_ENC8
6341e62b 312 bool
1da177e4
LT
313
314config REED_SOLOMON_DEC8
6341e62b 315 bool
1da177e4
LT
316
317config REED_SOLOMON_ENC16
6341e62b 318 bool
1da177e4
LT
319
320config REED_SOLOMON_DEC16
6341e62b 321 bool
1da177e4 322
437aa565
ID
323#
324# BCH support is selected if needed
325#
326config BCH
327 tristate
328
329config BCH_CONST_PARAMS
6341e62b 330 bool
437aa565
ID
331 help
332 Drivers may select this option to force specific constant
333 values for parameters 'm' (Galois field order) and 't'
334 (error correction capability). Those specific values must
335 be set by declaring default values for symbols BCH_CONST_M
336 and BCH_CONST_T.
337 Doing so will enable extra compiler optimizations,
338 improving encoding and decoding performance up to 2x for
339 usual (m,t) values (typically such that m*t < 200).
340 When this option is selected, the BCH library supports
341 only a single (m,t) configuration. This is mainly useful
342 for NAND flash board drivers requiring known, fixed BCH
343 parameters.
344
345config BCH_CONST_M
346 int
347 range 5 15
348 help
349 Constant value for Galois field order 'm'. If 'k' is the
350 number of data bits to protect, 'm' should be chosen such
351 that (k + m*t) <= 2**m - 1.
352 Drivers should declare a default value for this symbol if
353 they select option BCH_CONST_PARAMS.
354
355config BCH_CONST_T
356 int
357 help
358 Constant value for error correction capability in bits 't'.
359 Drivers should declare a default value for this symbol if
360 they select option BCH_CONST_PARAMS.
361
f7704347
DM
362#
363# Textsearch support is select'ed if needed
364#
2de4ff7b 365config TEXTSEARCH
6341e62b 366 bool
1da177e4 367
df3fb93a 368config TEXTSEARCH_KMP
f7704347 369 tristate
df3fb93a 370
8082e4ed 371config TEXTSEARCH_BM
29cb9f9c 372 tristate
8082e4ed 373
6408f79c 374config TEXTSEARCH_FSM
f7704347 375 tristate
6408f79c 376
5db53f3e 377config BTREE
6341e62b 378 bool
5db53f3e 379
a88cc108 380config INTERVAL_TREE
6341e62b 381 bool
a88cc108
CW
382 help
383 Simple, embeddable, interval-tree. Can find the start of an
384 overlapping range in log(n) time and then iterate over all
385 overlapping nodes. The algorithm is implemented as an
386 augmented rbtree.
387
388 See:
389
390 Documentation/rbtree.txt
391
392 for more information.
393
57578c2e
MW
394config RADIX_TREE_MULTIORDER
395 bool
396
3cb98950
DH
397config ASSOCIATIVE_ARRAY
398 bool
399 help
400 Generic associative array. Can be searched and iterated over whilst
401 it is being modified. It is also reasonably quick to search and
402 modify. The algorithms are non-recursive, and the trees are highly
403 capacious.
404
405 See:
406
407 Documentation/assoc_array.txt
408
409 for more information.
410
5ea81769 411config HAS_IOMEM
6341e62b 412 bool
5ea81769 413 depends on !NO_IOMEM
087fafd1 414 select GENERIC_IO
5ea81769
AV
415 default y
416
ce816fa8 417config HAS_IOPORT_MAP
6341e62b 418 bool
ce816fa8 419 depends on HAS_IOMEM && !NO_IOPORT_MAP
ee36c2bf
AV
420 default y
421
411f0f3e 422config HAS_DMA
6341e62b 423 bool
411f0f3e
HC
424 depends on !NO_DMA
425 default y
426
7844572c
BVA
427config DMA_NOOP_OPS
428 bool
429 depends on HAS_DMA && (!64BIT || ARCH_DMA_ADDR_T_64BIT)
430 default n
431
551199ac
BVA
432config DMA_VIRT_OPS
433 bool
434 depends on HAS_DMA && (!64BIT || ARCH_DMA_ADDR_T_64BIT)
435 default n
436
928923c7
GU
437config CHECK_SIGNATURE
438 bool
439
aab46da0
RR
440config CPUMASK_OFFSTACK
441 bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
442 help
443 Use dynamic allocation for cpumask_var_t, instead of putting
444 them on the stack. This is a bit more expensive, but avoids
445 stack overflow.
446
c39649c3
BH
447config CPU_RMAP
448 bool
449 depends on SMP
450
75957ba3
TH
451config DQL
452 bool
453
b0125085
GS
454config GLOB
455 bool
456# This actually supports modular compilation, but the module overhead
457# is ridiculous for the amount of code involved. Until an out-of-tree
458# driver asks for it, we'll just link it directly it into the kernel
459# when required. Since we're ignoring out-of-tree users, there's also
460# no need bother prompting for a manual decision:
461# prompt "glob_match() function"
462 help
463 This option provides a glob_match function for performing
464 simple text pattern matching. It originated in the ATA code
465 to blacklist particular drive models, but other device drivers
466 may need similar functionality.
467
468 All drivers in the Linux kernel tree that require this function
469 should automatically select this option. Say N unless you
470 are compiling an out-of tree driver which tells you that it
471 depends on this.
472
5f9be824 473config GLOB_SELFTEST
ba95b045 474 tristate "glob self-test on init"
5f9be824
GS
475 depends on GLOB
476 help
477 This option enables a simple self-test of the glob_match
478 function on startup. It is primarily useful for people
479 working on the code to ensure they haven't introduced any
480 regressions.
481
482 It only adds a little bit of code and slows kernel boot (or
483 module load) by a small amount, so you're welcome to play with
484 it, but you probably don't need it.
485
e9cc8bdd
GU
486#
487# Netlink attribute parsing support is select'ed if needed
488#
489config NLATTR
490 bool
491
09d4e0ed
PM
492#
493# Generic 64-bit atomic support is selected if needed
494#
495config GENERIC_ATOMIC64
496 bool
497
b411b363
PR
498config LRU_CACHE
499 tristate
500
c6df4b17
DM
501config CLZ_TAB
502 bool
503
10f8113e 504config CORDIC
d89ce936 505 tristate "CORDIC algorithm"
10f8113e 506 help
435a95c5
MW
507 This option provides an implementation of the CORDIC algorithm;
508 calculations are in fixed point. Module will be called cordic.
10f8113e 509
9c1c21a0
A
510config DDR
511 bool "JEDEC DDR data"
512 help
513 Data from JEDEC specs for DDR SDRAM memories,
514 particularly the AC timing parameters and addressing
515 information. This data is useful for drivers handling
516 DDR SDRAM controllers.
517
511cbce2
CH
518config IRQ_POLL
519 bool "IRQ polling library"
520 help
521 Helper library to poll interrupt mitigation using polling.
522
d9c46b18 523config MPILIB
2e5f094b 524 tristate
c6df4b17 525 select CLZ_TAB
d9c46b18
DK
526 help
527 Multiprecision maths library from GnuPG.
528 It is used to implement RSA digital signature verification,
529 which is used by IMA/EVM digital signature extension.
530
5e8898e9 531config SIGNATURE
2e5f094b 532 tristate
0d1f64f6
DK
533 depends on KEYS
534 select CRYPTO
be440ec7 535 select CRYPTO_SHA1
051dbb91
DK
536 select MPILIB
537 help
538 Digital signature verification. Currently only RSA is supported.
539 Implementation is done using GnuPG MPI library
540
ab253839
DD
541#
542# libfdt files, only selected if needed.
543#
544config LIBFDT
545 bool
546
a77ad6ea
DH
547config OID_REGISTRY
548 tristate
549 help
550 Enable fast lookup object identifier registry.
551
0635eb8a
MG
552config UCS2_STRING
553 tristate
554
ee89bd6b
GU
555source "lib/fonts/Kconfig"
556
f8bcbe62
RJ
557config SG_SPLIT
558 def_bool n
559 help
7f7e92f7
GU
560 Provides a helper to split scatterlists into chunks, each chunk being
561 a scatterlist. This should be selected by a driver or an API which
562 whishes to split a scatterlist amongst multiple DMA channels.
f8bcbe62 563
9b1d6c89
ML
564config SG_POOL
565 def_bool n
566 help
567 Provides a helper to allocate chained scatterlists. This should be
568 selected by a driver or an API which whishes to allocate chained
569 scatterlist.
570
308c09f1
LA
571#
572# sg chaining option
573#
574
575config ARCH_HAS_SG_CHAIN
576 def_bool n
577
61031952
RZ
578config ARCH_HAS_PMEM_API
579 bool
580
0aed55af
DW
581config ARCH_HAS_UACCESS_FLUSHCACHE
582 bool
583
cd11016e
AP
584config STACKDEPOT
585 bool
586 select STACKTRACE
587
88459642
OS
588config SBITMAP
589 bool
590
44091d29 591config PARMAN
9d25af69 592 tristate "parman" if COMPILE_TEST
44091d29 593
cf4a7207 594config PRIME_NUMBERS
64a57719 595 tristate
cf4a7207 596
03270c13 597config STRING_SELFTEST
d6b28e09 598 tristate "Test string functions"
03270c13 599
2de4ff7b 600endmenu
b35cd988
PD
601
602config GENERIC_ASHLDI3
603 bool
604
605config GENERIC_ASHRDI3
606 bool
607
608config GENERIC_LSHRDI3
609 bool
610
611config GENERIC_MULDI3
612 bool
613
614config GENERIC_CMPDI2
615 bool
616
617config GENERIC_UCMPDI2
618 bool