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 22554aae35SVladimir Olteanconfig PACKING 23554aae35SVladimir Oltean bool "Generic bitfield packing and unpacking" 24554aae35SVladimir Oltean default n 25554aae35SVladimir Oltean help 26554aae35SVladimir Oltean This option provides the packing() helper function, which permits 27554aae35SVladimir Oltean converting bitfields between a CPU-usable representation and a 28554aae35SVladimir Oltean memory representation that can have any combination of these quirks: 29554aae35SVladimir Oltean - Is little endian (bytes are reversed within a 32-bit group) 30554aae35SVladimir Oltean - The least-significant 32-bit word comes first (within a 64-bit 31554aae35SVladimir Oltean group) 32554aae35SVladimir Oltean - The most significant bit of a byte is at its right (bit 0 of a 33554aae35SVladimir Oltean register description is numerically 2^7). 34554aae35SVladimir Oltean Drivers may use these helpers to match the bit indices as described 35554aae35SVladimir Oltean in the data sheets of the peripherals they are in control of. 36554aae35SVladimir Oltean 37554aae35SVladimir Oltean When in doubt, say N. 38554aae35SVladimir Oltean 39a5cfc1ecSAkinobu Mitaconfig BITREVERSE 40a5cfc1ecSAkinobu Mita tristate 41a5cfc1ecSAkinobu Mita 42556d2f05SYalin Wangconfig HAVE_ARCH_BITREVERSE 43841c0090SChristoph Jaeger bool 44556d2f05SYalin Wang default n 45556d2f05SYalin Wang depends on BITREVERSE 46556d2f05SYalin Wang help 479e522c0dSAndrew Morton This option enables the use of hardware bit-reversal instructions on 489e522c0dSAndrew Morton architectures which support such operations. 49556d2f05SYalin Wang 502922585bSDavid S. Millerconfig GENERIC_STRNCPY_FROM_USER 512922585bSDavid S. Miller bool 522922585bSDavid S. Miller 53a08c5356SLinus Torvaldsconfig GENERIC_STRNLEN_USER 54a08c5356SLinus Torvalds bool 55a08c5356SLinus Torvalds 564cd5773aSAndy Shevchenkoconfig GENERIC_NET_UTILS 574cd5773aSAndy Shevchenko bool 584cd5773aSAndy Shevchenko 5919870defSAlexander van Heukelumconfig GENERIC_FIND_FIRST_BIT 609ba16087SJan Beulich bool 6119870defSAlexander van Heukelum 622c64e9cbSAndy Shevchenkosource "lib/math/Kconfig" 632c64e9cbSAndy Shevchenko 64b923650bSMichael S. Tsirkinconfig NO_GENERIC_PCI_IOPORT_MAP 65b923650bSMichael S. Tsirkin bool 66b923650bSMichael S. Tsirkin 6766eab4dfSMichael S. Tsirkinconfig GENERIC_PCI_IOMAP 6866eab4dfSMichael S. Tsirkin bool 6966eab4dfSMichael S. Tsirkin 704673ca8eSMichael S. Tsirkinconfig GENERIC_IOMAP 714673ca8eSMichael S. Tsirkin bool 7266eab4dfSMichael S. Tsirkin select GENERIC_PCI_IOMAP 734673ca8eSMichael S. Tsirkin 744ccf4beaSWolfram Sangconfig STMP_DEVICE 754ccf4beaSWolfram Sang bool 764ccf4beaSWolfram Sang 77bc08b449SLinus Torvaldsconfig ARCH_USE_CMPXCHG_LOCKREF 78bc08b449SLinus Torvalds bool 79bc08b449SLinus Torvalds 8072d93104SLinus Torvaldsconfig ARCH_HAS_FAST_MULTIPLIER 8172d93104SLinus Torvalds bool 8272d93104SLinus Torvalds 83031e3601SZhichang Yuanconfig INDIRECT_PIO 84031e3601SZhichang Yuan bool "Access I/O in non-MMIO mode" 85031e3601SZhichang Yuan depends on ARM64 86031e3601SZhichang Yuan help 87031e3601SZhichang Yuan On some platforms where no separate I/O space exists, there are I/O 88031e3601SZhichang Yuan hosts which can not be accessed in MMIO mode. Using the logical PIO 89031e3601SZhichang Yuan mechanism, the host-local I/O resource can be mapped into system 90031e3601SZhichang Yuan logic PIO space shared with MMIO hosts, such as PCI/PCIe, then the 91031e3601SZhichang Yuan system can access the I/O devices with the mapped-logic PIO through 92031e3601SZhichang Yuan I/O accessors. 93031e3601SZhichang Yuan 94031e3601SZhichang Yuan This way has relatively little I/O performance cost. Please make 95031e3601SZhichang Yuan sure your devices really need this configure item enabled. 96031e3601SZhichang Yuan 97031e3601SZhichang Yuan When in doubt, say N. 98031e3601SZhichang Yuan 991da177e4SLinus Torvaldsconfig CRC_CCITT 1001da177e4SLinus Torvalds tristate "CRC-CCITT functions" 1011da177e4SLinus Torvalds help 1021da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 1031da177e4SLinus Torvalds modules require CRC-CCITT functions, but a module built outside 1041da177e4SLinus Torvalds the kernel tree does. Such modules that use library CRC-CCITT 1051da177e4SLinus Torvalds functions require M here. 1061da177e4SLinus Torvalds 1077657ec1fSEvgeniy Polyakovconfig CRC16 1087657ec1fSEvgeniy Polyakov tristate "CRC16 functions" 1097657ec1fSEvgeniy Polyakov help 1107657ec1fSEvgeniy Polyakov This option is provided for the case where no in-kernel-tree 1117657ec1fSEvgeniy Polyakov modules require CRC16 functions, but a module built outside 1127657ec1fSEvgeniy Polyakov the kernel tree does. Such modules that use library CRC16 1137657ec1fSEvgeniy Polyakov functions require M here. 1147657ec1fSEvgeniy Polyakov 115f11f594eSMartin K. Petersenconfig CRC_T10DIF 116f11f594eSMartin K. Petersen tristate "CRC calculation for the T10 Data Integrity Field" 11768411521SHerbert Xu select CRYPTO 11868411521SHerbert Xu select CRYPTO_CRCT10DIF 119f11f594eSMartin K. Petersen help 120f11f594eSMartin K. Petersen This option is only needed if a module that's not in the 121f11f594eSMartin K. Petersen kernel tree needs to calculate CRC checks for use with the 122f11f594eSMartin K. Petersen SCSI data integrity subsystem. 123f11f594eSMartin K. Petersen 1243e7cbae7SIvo van Doornconfig CRC_ITU_T 1253e7cbae7SIvo van Doorn tristate "CRC ITU-T V.41 functions" 1263e7cbae7SIvo van Doorn help 1273e7cbae7SIvo van Doorn This option is provided for the case where no in-kernel-tree 1283e7cbae7SIvo van Doorn modules require CRC ITU-T V.41 functions, but a module built outside 1293e7cbae7SIvo van Doorn the kernel tree does. Such modules that use library CRC ITU-T V.41 1303e7cbae7SIvo van Doorn functions require M here. 1313e7cbae7SIvo van Doorn 1321da177e4SLinus Torvaldsconfig CRC32 13346c5801eSDarrick J. Wong tristate "CRC32/CRC32c functions" 1341da177e4SLinus Torvalds default y 135906d66dfSAkinobu Mita select BITREVERSE 1361da177e4SLinus Torvalds help 1371da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 13846c5801eSDarrick J. Wong modules require CRC32/CRC32c functions, but a module built outside 13946c5801eSDarrick J. Wong the kernel tree does. Such modules that use library CRC32/CRC32c 14046c5801eSDarrick J. Wong functions require M here. 1411da177e4SLinus Torvalds 1423863ef31SBob Pearsonconfig CRC32_SELFTEST 1435fb7f874SGeert Uytterhoeven tristate "CRC32 perform self test on init" 1443863ef31SBob Pearson depends on CRC32 1453863ef31SBob Pearson help 1463863ef31SBob Pearson This option enables the CRC32 library functions to perform a 1473863ef31SBob Pearson self test on initialization. The self test computes crc32_le 1483863ef31SBob Pearson and crc32_be over byte strings with random alignment and length 1493863ef31SBob Pearson and computes the total elapsed time and number of bytes processed. 1503863ef31SBob Pearson 1515cde7656SDarrick J. Wongchoice 1525cde7656SDarrick J. Wong prompt "CRC32 implementation" 1535cde7656SDarrick J. Wong depends on CRC32 1545cde7656SDarrick J. Wong default CRC32_SLICEBY8 15582edb4baSDarrick J. Wong help 15682edb4baSDarrick J. Wong This option allows a kernel builder to override the default choice 15782edb4baSDarrick J. Wong of CRC32 algorithm. Choose the default ("slice by 8") unless you 15882edb4baSDarrick J. Wong know that you need one of the others. 1595cde7656SDarrick J. Wong 1605cde7656SDarrick J. Wongconfig CRC32_SLICEBY8 1615cde7656SDarrick J. Wong bool "Slice by 8 bytes" 1625cde7656SDarrick J. Wong help 1635cde7656SDarrick J. Wong Calculate checksum 8 bytes at a time with a clever slicing algorithm. 1645cde7656SDarrick J. Wong This is the fastest algorithm, but comes with a 8KiB lookup table. 1655cde7656SDarrick J. Wong Most modern processors have enough cache to hold this table without 1665cde7656SDarrick J. Wong thrashing the cache. 1675cde7656SDarrick J. Wong 1685cde7656SDarrick J. Wong This is the default implementation choice. Choose this one unless 1695cde7656SDarrick J. Wong you have a good reason not to. 1705cde7656SDarrick J. Wong 1715cde7656SDarrick J. Wongconfig CRC32_SLICEBY4 1725cde7656SDarrick J. Wong bool "Slice by 4 bytes" 1735cde7656SDarrick J. Wong help 1745cde7656SDarrick J. Wong Calculate checksum 4 bytes at a time with a clever slicing algorithm. 1755cde7656SDarrick J. Wong This is a bit slower than slice by 8, but has a smaller 4KiB lookup 1765cde7656SDarrick J. Wong table. 1775cde7656SDarrick J. Wong 1785cde7656SDarrick J. Wong Only choose this option if you know what you are doing. 1795cde7656SDarrick J. Wong 1805cde7656SDarrick J. Wongconfig CRC32_SARWATE 1815cde7656SDarrick J. Wong bool "Sarwate's Algorithm (one byte at a time)" 1825cde7656SDarrick J. Wong help 1835cde7656SDarrick J. Wong Calculate checksum a byte at a time using Sarwate's algorithm. This 1845cde7656SDarrick J. Wong is not particularly fast, but has a small 256 byte lookup table. 1855cde7656SDarrick J. Wong 1865cde7656SDarrick J. Wong Only choose this option if you know what you are doing. 1875cde7656SDarrick J. Wong 1885cde7656SDarrick J. Wongconfig CRC32_BIT 1895cde7656SDarrick J. Wong bool "Classic Algorithm (one bit at a time)" 1905cde7656SDarrick J. Wong help 1915cde7656SDarrick J. Wong Calculate checksum one bit at a time. This is VERY slow, but has 1925cde7656SDarrick J. Wong no lookup table. This is provided as a debugging option. 1935cde7656SDarrick J. Wong 1945cde7656SDarrick J. Wong Only choose this option if you are debugging crc32. 1955cde7656SDarrick J. Wong 1965cde7656SDarrick J. Wongendchoice 1975cde7656SDarrick J. Wong 198feba04fdSColy Liconfig CRC64 199feba04fdSColy Li tristate "CRC64 functions" 200feba04fdSColy Li help 201feba04fdSColy Li This option is provided for the case where no in-kernel-tree 202feba04fdSColy Li modules require CRC64 functions, but a module built outside 203feba04fdSColy Li the kernel tree does. Such modules that use library CRC64 204feba04fdSColy Li functions require M here. 205feba04fdSColy Li 2060cbaa448SJeremy Kerrconfig CRC4 2070cbaa448SJeremy Kerr tristate "CRC4 functions" 2080cbaa448SJeremy Kerr help 2090cbaa448SJeremy Kerr This option is provided for the case where no in-kernel-tree 2100cbaa448SJeremy Kerr modules require CRC4 functions, but a module built outside 2110cbaa448SJeremy Kerr the kernel tree does. Such modules that use library CRC4 2120cbaa448SJeremy Kerr functions require M here. 2130cbaa448SJeremy Kerr 214ad241528SJan Nikitenkoconfig CRC7 215ad241528SJan Nikitenko tristate "CRC7 functions" 216ad241528SJan Nikitenko help 217ad241528SJan Nikitenko This option is provided for the case where no in-kernel-tree 218ad241528SJan Nikitenko modules require CRC7 functions, but a module built outside 219ad241528SJan Nikitenko the kernel tree does. Such modules that use library CRC7 220ad241528SJan Nikitenko functions require M here. 221ad241528SJan Nikitenko 2221da177e4SLinus Torvaldsconfig LIBCRC32C 2231da177e4SLinus Torvalds tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check" 22493027354SHerbert Xu select CRYPTO 22569c35efcSHerbert Xu select CRYPTO_CRC32C 2261da177e4SLinus Torvalds help 2271da177e4SLinus Torvalds This option is provided for the case where no in-kernel-tree 2281da177e4SLinus Torvalds modules require CRC32c functions, but a module built outside the 2291da177e4SLinus Torvalds kernel tree does. Such modules that use library CRC32c functions 2301da177e4SLinus Torvalds require M here. See Castagnoli93. 2311da177e4SLinus Torvalds Module will be libcrc32c. 2321da177e4SLinus Torvalds 2337150962dSArend van Sprielconfig CRC8 2347150962dSArend van Spriel tristate "CRC8 function" 2357150962dSArend van Spriel help 2367150962dSArend van Spriel This option provides CRC8 function. Drivers may select this 2377150962dSArend van Spriel when they need to do cyclic redundancy check according CRC8 2387150962dSArend van Spriel algorithm. Module will be called crc8. 2397150962dSArend van Spriel 2405d240522SNick Terrellconfig XXHASH 2415d240522SNick Terrell tristate 2425d240522SNick Terrell 243e65e1fc2SAl Viroconfig AUDIT_GENERIC 244e65e1fc2SAl Viro bool 245e65e1fc2SAl Viro depends on AUDIT && !AUDIT_ARCH 246e65e1fc2SAl Viro default y 247e65e1fc2SAl Viro 2484b588411SAKASHI Takahiroconfig AUDIT_ARCH_COMPAT_GENERIC 2494b588411SAKASHI Takahiro bool 2504b588411SAKASHI Takahiro default n 2514b588411SAKASHI Takahiro 2524b588411SAKASHI Takahiroconfig AUDIT_COMPAT_GENERIC 2534b588411SAKASHI Takahiro bool 2544b588411SAKASHI Takahiro depends on AUDIT_GENERIC && AUDIT_ARCH_COMPAT_GENERIC && COMPAT 2554b588411SAKASHI Takahiro default y 2564b588411SAKASHI Takahiro 257a6a9c0f1SDaniel Borkmannconfig RANDOM32_SELFTEST 258a6a9c0f1SDaniel Borkmann bool "PRNG perform self test on init" 259a6a9c0f1SDaniel Borkmann help 260a6a9c0f1SDaniel Borkmann This option enables the 32 bit PRNG library functions to perform a 261a6a9c0f1SDaniel Borkmann self test on initialization. 262a6a9c0f1SDaniel Borkmann 2631da177e4SLinus Torvalds# 2641da177e4SLinus Torvalds# compression support is select'ed if needed 2651da177e4SLinus Torvalds# 2662da572c9SDan Streetmanconfig 842_COMPRESS 2675b571677SArnd Bergmann select CRC32 2682da572c9SDan Streetman tristate 2692da572c9SDan Streetman 2702da572c9SDan Streetmanconfig 842_DECOMPRESS 2715b571677SArnd Bergmann select CRC32 2722da572c9SDan Streetman tristate 2732da572c9SDan Streetman 2741da177e4SLinus Torvaldsconfig ZLIB_INFLATE 2751da177e4SLinus Torvalds tristate 2761da177e4SLinus Torvalds 2771da177e4SLinus Torvaldsconfig ZLIB_DEFLATE 2781da177e4SLinus Torvalds tristate 2791fd4e5c3SAndrew Morton select BITREVERSE 2801da177e4SLinus Torvalds 281aa5b395bSMikhail Zaslonkoconfig ZLIB_DFLTCC 282aa5b395bSMikhail Zaslonko def_bool y 283aa5b395bSMikhail Zaslonko depends on S390 284aa5b395bSMikhail Zaslonko prompt "Enable s390x DEFLATE CONVERSION CALL support for kernel zlib" 285aa5b395bSMikhail Zaslonko help 286aa5b395bSMikhail Zaslonko Enable s390x hardware support for zlib in the kernel. 287aa5b395bSMikhail Zaslonko 28864c70b1cSRichard Purdieconfig LZO_COMPRESS 28964c70b1cSRichard Purdie tristate 29064c70b1cSRichard Purdie 29164c70b1cSRichard Purdieconfig LZO_DECOMPRESS 29264c70b1cSRichard Purdie tristate 29364c70b1cSRichard Purdie 294c72ac7a1SChanho Minconfig LZ4_COMPRESS 295c72ac7a1SChanho Min tristate 296c72ac7a1SChanho Min 297c72ac7a1SChanho Minconfig LZ4HC_COMPRESS 298c72ac7a1SChanho Min tristate 299c72ac7a1SChanho Min 300e76e1fdfSKyungsik Leeconfig LZ4_DECOMPRESS 301e76e1fdfSKyungsik Lee tristate 302e76e1fdfSKyungsik Lee 30373f3d1b4SNick Terrellconfig ZSTD_COMPRESS 30473f3d1b4SNick Terrell select XXHASH 30573f3d1b4SNick Terrell tristate 30673f3d1b4SNick Terrell 30773f3d1b4SNick Terrellconfig ZSTD_DECOMPRESS 30873f3d1b4SNick Terrell select XXHASH 30973f3d1b4SNick Terrell tristate 31073f3d1b4SNick Terrell 31124fa0402SLasse Collinsource "lib/xz/Kconfig" 31224fa0402SLasse Collin 3131da177e4SLinus Torvalds# 314c8531ab3SH. Peter Anvin# These all provide a common interface (hence the apparent duplication with 315c8531ab3SH. Peter Anvin# ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.) 316c8531ab3SH. Peter Anvin# 317c8531ab3SH. Peter Anvinconfig DECOMPRESS_GZIP 3187856a16eSH. Peter Anvin select ZLIB_INFLATE 319c8531ab3SH. Peter Anvin tristate 320c8531ab3SH. Peter Anvin 321c8531ab3SH. Peter Anvinconfig DECOMPRESS_BZIP2 322c8531ab3SH. Peter Anvin tristate 323c8531ab3SH. Peter Anvin 324c8531ab3SH. Peter Anvinconfig DECOMPRESS_LZMA 325c8531ab3SH. Peter Anvin tristate 326c8531ab3SH. Peter Anvin 3273ebe1243SLasse Collinconfig DECOMPRESS_XZ 3283ebe1243SLasse Collin select XZ_DEC 3293ebe1243SLasse Collin tristate 3303ebe1243SLasse Collin 331cacb246fSAlbin Tonnerreconfig DECOMPRESS_LZO 332cacb246fSAlbin Tonnerre select LZO_DECOMPRESS 333cacb246fSAlbin Tonnerre tristate 334cacb246fSAlbin Tonnerre 335e76e1fdfSKyungsik Leeconfig DECOMPRESS_LZ4 336e76e1fdfSKyungsik Lee select LZ4_DECOMPRESS 337e76e1fdfSKyungsik Lee tristate 338e76e1fdfSKyungsik Lee 339c8531ab3SH. Peter Anvin# 340f14f75b8SJes Sorensen# Generic allocator support is selected if needed 341f14f75b8SJes Sorensen# 342f14f75b8SJes Sorensenconfig GENERIC_ALLOCATOR 3436341e62bSChristoph Jaeger bool 344f14f75b8SJes Sorensen 345f14f75b8SJes Sorensen# 3461da177e4SLinus Torvalds# reed solomon support is select'ed if needed 3471da177e4SLinus Torvalds# 3481da177e4SLinus Torvaldsconfig REED_SOLOMON 3491da177e4SLinus Torvalds tristate 3501da177e4SLinus Torvalds 3511da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC8 3526341e62bSChristoph Jaeger bool 3531da177e4SLinus Torvalds 3541da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC8 3556341e62bSChristoph Jaeger bool 3561da177e4SLinus Torvalds 3571da177e4SLinus Torvaldsconfig REED_SOLOMON_ENC16 3586341e62bSChristoph Jaeger bool 3591da177e4SLinus Torvalds 3601da177e4SLinus Torvaldsconfig REED_SOLOMON_DEC16 3616341e62bSChristoph Jaeger bool 3621da177e4SLinus Torvalds 363f7704347SDavid S. Miller# 364437aa565SIvan Djelic# BCH support is selected if needed 365437aa565SIvan Djelic# 366437aa565SIvan Djelicconfig BCH 367437aa565SIvan Djelic tristate 368437aa565SIvan Djelic 369437aa565SIvan Djelicconfig BCH_CONST_PARAMS 3706341e62bSChristoph Jaeger bool 371437aa565SIvan Djelic help 372437aa565SIvan Djelic Drivers may select this option to force specific constant 373437aa565SIvan Djelic values for parameters 'm' (Galois field order) and 't' 374437aa565SIvan Djelic (error correction capability). Those specific values must 375437aa565SIvan Djelic be set by declaring default values for symbols BCH_CONST_M 376437aa565SIvan Djelic and BCH_CONST_T. 377437aa565SIvan Djelic Doing so will enable extra compiler optimizations, 378437aa565SIvan Djelic improving encoding and decoding performance up to 2x for 379437aa565SIvan Djelic usual (m,t) values (typically such that m*t < 200). 380437aa565SIvan Djelic When this option is selected, the BCH library supports 381437aa565SIvan Djelic only a single (m,t) configuration. This is mainly useful 382437aa565SIvan Djelic for NAND flash board drivers requiring known, fixed BCH 383437aa565SIvan Djelic parameters. 384437aa565SIvan Djelic 385437aa565SIvan Djelicconfig BCH_CONST_M 386437aa565SIvan Djelic int 387437aa565SIvan Djelic range 5 15 388437aa565SIvan Djelic help 389437aa565SIvan Djelic Constant value for Galois field order 'm'. If 'k' is the 390437aa565SIvan Djelic number of data bits to protect, 'm' should be chosen such 391437aa565SIvan Djelic that (k + m*t) <= 2**m - 1. 392437aa565SIvan Djelic Drivers should declare a default value for this symbol if 393437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 394437aa565SIvan Djelic 395437aa565SIvan Djelicconfig BCH_CONST_T 396437aa565SIvan Djelic int 397437aa565SIvan Djelic help 398437aa565SIvan Djelic Constant value for error correction capability in bits 't'. 399437aa565SIvan Djelic Drivers should declare a default value for this symbol if 400437aa565SIvan Djelic they select option BCH_CONST_PARAMS. 401437aa565SIvan Djelic 402437aa565SIvan Djelic# 403f7704347SDavid S. Miller# Textsearch support is select'ed if needed 404f7704347SDavid S. Miller# 4052de4ff7bSThomas Grafconfig TEXTSEARCH 4066341e62bSChristoph Jaeger bool 4071da177e4SLinus Torvalds 408df3fb93aSThomas Grafconfig TEXTSEARCH_KMP 409f7704347SDavid S. Miller tristate 410df3fb93aSThomas Graf 4118082e4edSPablo Neira Ayusoconfig TEXTSEARCH_BM 41229cb9f9cSDavid S. Miller tristate 4138082e4edSPablo Neira Ayuso 4146408f79cSThomas Grafconfig TEXTSEARCH_FSM 415f7704347SDavid S. Miller tristate 4166408f79cSThomas Graf 4175db53f3eSJoern Engelconfig BTREE 4186341e62bSChristoph Jaeger bool 4195db53f3eSJoern Engel 420a88cc108SChris Wilsonconfig INTERVAL_TREE 4216341e62bSChristoph Jaeger bool 422a88cc108SChris Wilson help 423a88cc108SChris Wilson Simple, embeddable, interval-tree. Can find the start of an 424a88cc108SChris Wilson overlapping range in log(n) time and then iterate over all 425a88cc108SChris Wilson overlapping nodes. The algorithm is implemented as an 426a88cc108SChris Wilson augmented rbtree. 427a88cc108SChris Wilson 428a88cc108SChris Wilson See: 429a88cc108SChris Wilson 430a88cc108SChris Wilson Documentation/rbtree.txt 431a88cc108SChris Wilson 432a88cc108SChris Wilson for more information. 433a88cc108SChris Wilson 43402c02bf1SMatthew Wilcoxconfig XARRAY_MULTI 43557578c2eSMatthew Wilcox bool 43602c02bf1SMatthew Wilcox help 43702c02bf1SMatthew Wilcox Support entries which occupy multiple consecutive indices in the 43802c02bf1SMatthew Wilcox XArray. 43957578c2eSMatthew Wilcox 4403cb98950SDavid Howellsconfig ASSOCIATIVE_ARRAY 4413cb98950SDavid Howells bool 4423cb98950SDavid Howells help 4433cb98950SDavid Howells Generic associative array. Can be searched and iterated over whilst 4443cb98950SDavid Howells it is being modified. It is also reasonably quick to search and 4453cb98950SDavid Howells modify. The algorithms are non-recursive, and the trees are highly 4463cb98950SDavid Howells capacious. 4473cb98950SDavid Howells 4483cb98950SDavid Howells See: 4493cb98950SDavid Howells 4505fb94e9cSMauro Carvalho Chehab Documentation/core-api/assoc_array.rst 4513cb98950SDavid Howells 4523cb98950SDavid Howells for more information. 4533cb98950SDavid Howells 4545ea81769SAl Viroconfig HAS_IOMEM 4556341e62bSChristoph Jaeger bool 4565ea81769SAl Viro depends on !NO_IOMEM 4575ea81769SAl Viro default y 4585ea81769SAl Viro 459ce816fa8SUwe Kleine-Königconfig HAS_IOPORT_MAP 4606341e62bSChristoph Jaeger bool 461ce816fa8SUwe Kleine-König depends on HAS_IOMEM && !NO_IOPORT_MAP 462ee36c2bfSAl Viro default y 463ee36c2bfSAl Viro 464cf65a0f6SChristoph Hellwigsource "kernel/dma/Kconfig" 465411f0f3eSHeiko Carstens 466e80a0af4SBart Van Asscheconfig SGL_ALLOC 467e80a0af4SBart Van Assche bool 468e80a0af4SBart Van Assche default n 469e80a0af4SBart Van Assche 470a4ce5a48SChristoph Hellwigconfig IOMMU_HELPER 471a4ce5a48SChristoph Hellwig bool 472a4ce5a48SChristoph Hellwig 473928923c7SGeert Uytterhoevenconfig CHECK_SIGNATURE 474928923c7SGeert Uytterhoeven bool 475928923c7SGeert Uytterhoeven 476aab46da0SRusty Russellconfig CPUMASK_OFFSTACK 477aab46da0SRusty Russell bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS 478aab46da0SRusty Russell help 479aab46da0SRusty Russell Use dynamic allocation for cpumask_var_t, instead of putting 480aab46da0SRusty Russell them on the stack. This is a bit more expensive, but avoids 481aab46da0SRusty Russell stack overflow. 482aab46da0SRusty Russell 483c39649c3SBen Hutchingsconfig CPU_RMAP 484c39649c3SBen Hutchings bool 485c39649c3SBen Hutchings depends on SMP 486c39649c3SBen Hutchings 48775957ba3STom Herbertconfig DQL 48875957ba3STom Herbert bool 48975957ba3STom Herbert 490b0125085SGeorge Spelvinconfig GLOB 491b0125085SGeorge Spelvin bool 492b0125085SGeorge Spelvin# This actually supports modular compilation, but the module overhead 493b0125085SGeorge Spelvin# is ridiculous for the amount of code involved. Until an out-of-tree 494b0125085SGeorge Spelvin# driver asks for it, we'll just link it directly it into the kernel 495b0125085SGeorge Spelvin# when required. Since we're ignoring out-of-tree users, there's also 496b0125085SGeorge Spelvin# no need bother prompting for a manual decision: 497b0125085SGeorge Spelvin# prompt "glob_match() function" 498b0125085SGeorge Spelvin help 499b0125085SGeorge Spelvin This option provides a glob_match function for performing 500b0125085SGeorge Spelvin simple text pattern matching. It originated in the ATA code 501b0125085SGeorge Spelvin to blacklist particular drive models, but other device drivers 502b0125085SGeorge Spelvin may need similar functionality. 503b0125085SGeorge Spelvin 504b0125085SGeorge Spelvin All drivers in the Linux kernel tree that require this function 505b0125085SGeorge Spelvin should automatically select this option. Say N unless you 506b0125085SGeorge Spelvin are compiling an out-of tree driver which tells you that it 507b0125085SGeorge Spelvin depends on this. 508b0125085SGeorge Spelvin 5095f9be824SGeorge Spelvinconfig GLOB_SELFTEST 510ba95b045SGeert Uytterhoeven tristate "glob self-test on init" 5115f9be824SGeorge Spelvin depends on GLOB 5125f9be824SGeorge Spelvin help 5135f9be824SGeorge Spelvin This option enables a simple self-test of the glob_match 5145f9be824SGeorge Spelvin function on startup. It is primarily useful for people 5155f9be824SGeorge Spelvin working on the code to ensure they haven't introduced any 5165f9be824SGeorge Spelvin regressions. 5175f9be824SGeorge Spelvin 5185f9be824SGeorge Spelvin It only adds a little bit of code and slows kernel boot (or 5195f9be824SGeorge Spelvin module load) by a small amount, so you're welcome to play with 5205f9be824SGeorge Spelvin it, but you probably don't need it. 5215f9be824SGeorge Spelvin 522e9cc8bddSGeert Uytterhoeven# 523e9cc8bddSGeert Uytterhoeven# Netlink attribute parsing support is select'ed if needed 524e9cc8bddSGeert Uytterhoeven# 525e9cc8bddSGeert Uytterhoevenconfig NLATTR 526e9cc8bddSGeert Uytterhoeven bool 527e9cc8bddSGeert Uytterhoeven 52809d4e0edSPaul Mackerras# 52909d4e0edSPaul Mackerras# Generic 64-bit atomic support is selected if needed 53009d4e0edSPaul Mackerras# 53109d4e0edSPaul Mackerrasconfig GENERIC_ATOMIC64 53209d4e0edSPaul Mackerras bool 53309d4e0edSPaul Mackerras 534b411b363SPhilipp Reisnerconfig LRU_CACHE 535b411b363SPhilipp Reisner tristate 536b411b363SPhilipp Reisner 537c6df4b17SDavid Millerconfig CLZ_TAB 538c6df4b17SDavid Miller bool 539c6df4b17SDavid Miller 540511cbce2SChristoph Hellwigconfig IRQ_POLL 541511cbce2SChristoph Hellwig bool "IRQ polling library" 542511cbce2SChristoph Hellwig help 543511cbce2SChristoph Hellwig Helper library to poll interrupt mitigation using polling. 544511cbce2SChristoph Hellwig 545d9c46b18SDmitry Kasatkinconfig MPILIB 5462e5f094bSDmitry Kasatkin tristate 547c6df4b17SDavid Miller select CLZ_TAB 548d9c46b18SDmitry Kasatkin help 549d9c46b18SDmitry Kasatkin Multiprecision maths library from GnuPG. 550d9c46b18SDmitry Kasatkin It is used to implement RSA digital signature verification, 551d9c46b18SDmitry Kasatkin which is used by IMA/EVM digital signature extension. 552d9c46b18SDmitry Kasatkin 5535e8898e9SDmitry Kasatkinconfig SIGNATURE 5542e5f094bSDmitry Kasatkin tristate 5550d1f64f6SDmitry Kasatkin depends on KEYS 5560d1f64f6SDmitry Kasatkin select CRYPTO 557be440ec7SDmitry Kasatkin select CRYPTO_SHA1 558051dbb91SDmitry Kasatkin select MPILIB 559051dbb91SDmitry Kasatkin help 560051dbb91SDmitry Kasatkin Digital signature verification. Currently only RSA is supported. 561051dbb91SDmitry Kasatkin Implementation is done using GnuPG MPI library 562051dbb91SDmitry Kasatkin 5634f75da36STal Gilboaconfig DIMLIB 564424adc32SUwe Kleine-König bool 5654f75da36STal Gilboa help 5664f75da36STal Gilboa Dynamic Interrupt Moderation library. 567991ad2b2SRandy Dunlap Implements an algorithm for dynamically changing CQ moderation values 5684f75da36STal Gilboa according to run time performance. 5694f75da36STal Gilboa 570ab253839SDavid Daney# 571ab253839SDavid Daney# libfdt files, only selected if needed. 572ab253839SDavid Daney# 573ab253839SDavid Daneyconfig LIBFDT 574ab253839SDavid Daney bool 575ab253839SDavid Daney 576a77ad6eaSDavid Howellsconfig OID_REGISTRY 577a77ad6eaSDavid Howells tristate 578a77ad6eaSDavid Howells help 579a77ad6eaSDavid Howells Enable fast lookup object identifier registry. 580a77ad6eaSDavid Howells 5810635eb8aSMatthew Garrettconfig UCS2_STRING 5820635eb8aSMatthew Garrett tristate 5830635eb8aSMatthew Garrett 58400b26474SVincenzo Frascino# 58500b26474SVincenzo Frascino# generic vdso 58600b26474SVincenzo Frascino# 58700b26474SVincenzo Frascinosource "lib/vdso/Kconfig" 58800b26474SVincenzo Frascino 589ee89bd6bSGeert Uytterhoevensource "lib/fonts/Kconfig" 590ee89bd6bSGeert Uytterhoeven 591f8bcbe62SRobert Jarzmikconfig SG_SPLIT 592f8bcbe62SRobert Jarzmik def_bool n 593f8bcbe62SRobert Jarzmik help 5947f7e92f7SGeert Uytterhoeven Provides a helper to split scatterlists into chunks, each chunk being 5957f7e92f7SGeert Uytterhoeven a scatterlist. This should be selected by a driver or an API which 5967f7e92f7SGeert Uytterhoeven whishes to split a scatterlist amongst multiple DMA channels. 597f8bcbe62SRobert Jarzmik 5989b1d6c89SMing Linconfig SG_POOL 5999b1d6c89SMing Lin def_bool n 6009b1d6c89SMing Lin help 6019b1d6c89SMing Lin Provides a helper to allocate chained scatterlists. This should be 6029b1d6c89SMing Lin selected by a driver or an API which whishes to allocate chained 6039b1d6c89SMing Lin scatterlist. 6049b1d6c89SMing Lin 605308c09f1SLaura Abbott# 606308c09f1SLaura Abbott# sg chaining option 607308c09f1SLaura Abbott# 608308c09f1SLaura Abbott 6097c703e54SChristoph Hellwigconfig ARCH_NO_SG_CHAIN 610308c09f1SLaura Abbott def_bool n 611308c09f1SLaura Abbott 61261031952SRoss Zwislerconfig ARCH_HAS_PMEM_API 61361031952SRoss Zwisler bool 61461031952SRoss Zwisler 61533dd7075SDan Williamsconfig MEMREGION 61633dd7075SDan Williams bool 61733dd7075SDan Williams 618*9ffc1d19SDan Williamsconfig ARCH_HAS_MEMREMAP_COMPAT_ALIGN 619*9ffc1d19SDan Williams bool 620*9ffc1d19SDan Williams 621bd79f947SChristoph Hellwig# use memcpy to implement user copies for nommu architectures 622bd79f947SChristoph Hellwigconfig UACCESS_MEMCPY 623bd79f947SChristoph Hellwig bool 624bd79f947SChristoph Hellwig 6250aed55afSDan Williamsconfig ARCH_HAS_UACCESS_FLUSHCACHE 6260aed55afSDan Williams bool 6270aed55afSDan Williams 628522239b4SDan Williamsconfig ARCH_HAS_UACCESS_MCSAFE 629522239b4SDan Williams bool 630522239b4SDan Williams 631214d8ca6SThomas Gleixner# Temporary. Goes away when all archs are cleaned up 632214d8ca6SThomas Gleixnerconfig ARCH_STACKWALK 633214d8ca6SThomas Gleixner bool 634214d8ca6SThomas Gleixner 635cd11016eSAlexander Potapenkoconfig STACKDEPOT 636cd11016eSAlexander Potapenko bool 637cd11016eSAlexander Potapenko select STACKTRACE 638cd11016eSAlexander Potapenko 63988459642SOmar Sandovalconfig SBITMAP 64088459642SOmar Sandoval bool 64188459642SOmar Sandoval 64244091d29SJiri Pirkoconfig PARMAN 6439d25af69SGeert Uytterhoeven tristate "parman" if COMPILE_TEST 64444091d29SJiri Pirko 6453dfdecc6SRandy Dunlapconfig OBJAGG 6463dfdecc6SRandy Dunlap tristate "objagg" if COMPILE_TEST 6473dfdecc6SRandy Dunlap 64803270c13SMatthew Wilcoxconfig STRING_SELFTEST 649d6b28e09SGeert Uytterhoeven tristate "Test string functions" 65003270c13SMatthew Wilcox 6512de4ff7bSThomas Grafendmenu 652b35cd988SPalmer Dabbelt 65380b0ca98SChristoph Hellwigconfig GENERIC_IOREMAP 65480b0ca98SChristoph Hellwig bool 65580b0ca98SChristoph Hellwig 656e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHLDI3 657b35cd988SPalmer Dabbelt bool 658b35cd988SPalmer Dabbelt 659e3d59805SMatt Redfearnconfig GENERIC_LIB_ASHRDI3 660b35cd988SPalmer Dabbelt bool 661b35cd988SPalmer Dabbelt 662e3d59805SMatt Redfearnconfig GENERIC_LIB_LSHRDI3 663b35cd988SPalmer Dabbelt bool 664b35cd988SPalmer Dabbelt 665e3d59805SMatt Redfearnconfig GENERIC_LIB_MULDI3 666b35cd988SPalmer Dabbelt bool 667b35cd988SPalmer Dabbelt 668e3d59805SMatt Redfearnconfig GENERIC_LIB_CMPDI2 669b35cd988SPalmer Dabbelt bool 670b35cd988SPalmer Dabbelt 671e3d59805SMatt Redfearnconfig GENERIC_LIB_UCMPDI2 672b35cd988SPalmer Dabbelt bool 673