ath10k: add might_sleep() to ath10k_wmi_cmd_send()
[cascardo/linux.git] / lib / Kconfig
1 #
2 # Library configuration
3 #
4
5 config BINARY_PRINTF
6         def_bool n
7
8 menu "Library routines"
9
10 config RAID6_PQ
11         tristate
12
13 config BITREVERSE
14         tristate
15
16 config RATIONAL
17         boolean
18
19 config GENERIC_STRNCPY_FROM_USER
20         bool
21
22 config GENERIC_STRNLEN_USER
23         bool
24
25 config GENERIC_NET_UTILS
26         bool
27
28 config GENERIC_FIND_FIRST_BIT
29         bool
30
31 config NO_GENERIC_PCI_IOPORT_MAP
32         bool
33
34 config GENERIC_PCI_IOMAP
35         bool
36
37 config GENERIC_IOMAP
38         bool
39         select GENERIC_PCI_IOMAP
40
41 config GENERIC_IO
42         boolean
43         default n
44
45 config STMP_DEVICE
46         bool
47
48 config PERCPU_RWSEM
49         boolean
50
51 config CRC_CCITT
52         tristate "CRC-CCITT functions"
53         help
54           This option is provided for the case where no in-kernel-tree
55           modules require CRC-CCITT functions, but a module built outside
56           the kernel tree does. Such modules that use library CRC-CCITT
57           functions require M here.
58
59 config CRC16
60         tristate "CRC16 functions"
61         help
62           This option is provided for the case where no in-kernel-tree
63           modules require CRC16 functions, but a module built outside
64           the kernel tree does. Such modules that use library CRC16
65           functions require M here.
66
67 config CRC_T10DIF
68         tristate "CRC calculation for the T10 Data Integrity Field"
69         select CRYPTO
70         select CRYPTO_CRCT10DIF
71         help
72           This option is only needed if a module that's not in the
73           kernel tree needs to calculate CRC checks for use with the
74           SCSI data integrity subsystem.
75
76 config CRC_ITU_T
77         tristate "CRC ITU-T V.41 functions"
78         help
79           This option is provided for the case where no in-kernel-tree
80           modules require CRC ITU-T V.41 functions, but a module built outside
81           the kernel tree does. Such modules that use library CRC ITU-T V.41
82           functions require M here.
83
84 config CRC32
85         tristate "CRC32/CRC32c functions"
86         default y
87         select BITREVERSE
88         help
89           This option is provided for the case where no in-kernel-tree
90           modules require CRC32/CRC32c functions, but a module built outside
91           the kernel tree does. Such modules that use library CRC32/CRC32c
92           functions require M here.
93
94 config CRC32_SELFTEST
95         bool "CRC32 perform self test on init"
96         default n
97         depends on CRC32
98         help
99           This option enables the CRC32 library functions to perform a
100           self test on initialization. The self test computes crc32_le
101           and crc32_be over byte strings with random alignment and length
102           and computes the total elapsed time and number of bytes processed.
103
104 choice
105         prompt "CRC32 implementation"
106         depends on CRC32
107         default CRC32_SLICEBY8
108         help
109           This option allows a kernel builder to override the default choice
110           of CRC32 algorithm.  Choose the default ("slice by 8") unless you
111           know that you need one of the others.
112
113 config CRC32_SLICEBY8
114         bool "Slice by 8 bytes"
115         help
116           Calculate checksum 8 bytes at a time with a clever slicing algorithm.
117           This is the fastest algorithm, but comes with a 8KiB lookup table.
118           Most modern processors have enough cache to hold this table without
119           thrashing the cache.
120
121           This is the default implementation choice.  Choose this one unless
122           you have a good reason not to.
123
124 config CRC32_SLICEBY4
125         bool "Slice by 4 bytes"
126         help
127           Calculate checksum 4 bytes at a time with a clever slicing algorithm.
128           This is a bit slower than slice by 8, but has a smaller 4KiB lookup
129           table.
130
131           Only choose this option if you know what you are doing.
132
133 config CRC32_SARWATE
134         bool "Sarwate's Algorithm (one byte at a time)"
135         help
136           Calculate checksum a byte at a time using Sarwate's algorithm.  This
137           is not particularly fast, but has a small 256 byte lookup table.
138
139           Only choose this option if you know what you are doing.
140
141 config CRC32_BIT
142         bool "Classic Algorithm (one bit at a time)"
143         help
144           Calculate checksum one bit at a time.  This is VERY slow, but has
145           no lookup table.  This is provided as a debugging option.
146
147           Only choose this option if you are debugging crc32.
148
149 endchoice
150
151 config CRC7
152         tristate "CRC7 functions"
153         help
154           This option is provided for the case where no in-kernel-tree
155           modules require CRC7 functions, but a module built outside
156           the kernel tree does. Such modules that use library CRC7
157           functions require M here.
158
159 config LIBCRC32C
160         tristate "CRC32c (Castagnoli, et al) Cyclic Redundancy-Check"
161         select CRYPTO
162         select CRYPTO_CRC32C
163         help
164           This option is provided for the case where no in-kernel-tree
165           modules require CRC32c functions, but a module built outside the
166           kernel tree does. Such modules that use library CRC32c functions
167           require M here.  See Castagnoli93.
168           Module will be libcrc32c.
169
170 config CRC8
171         tristate "CRC8 function"
172         help
173           This option provides CRC8 function. Drivers may select this
174           when they need to do cyclic redundancy check according CRC8
175           algorithm. Module will be called crc8.
176
177 config AUDIT_GENERIC
178         bool
179         depends on AUDIT && !AUDIT_ARCH
180         default y
181
182 #
183 # compression support is select'ed if needed
184 #
185 config ZLIB_INFLATE
186         tristate
187
188 config ZLIB_DEFLATE
189         tristate
190
191 config LZO_COMPRESS
192         tristate
193
194 config LZO_DECOMPRESS
195         tristate
196
197 config LZ4_COMPRESS
198         tristate
199
200 config LZ4HC_COMPRESS
201         tristate
202
203 config LZ4_DECOMPRESS
204         tristate
205
206 source "lib/xz/Kconfig"
207
208 #
209 # These all provide a common interface (hence the apparent duplication with
210 # ZLIB_INFLATE; DECOMPRESS_GZIP is just a wrapper.)
211 #
212 config DECOMPRESS_GZIP
213         select ZLIB_INFLATE
214         tristate
215
216 config DECOMPRESS_BZIP2
217         tristate
218
219 config DECOMPRESS_LZMA
220         tristate
221
222 config DECOMPRESS_XZ
223         select XZ_DEC
224         tristate
225
226 config DECOMPRESS_LZO
227         select LZO_DECOMPRESS
228         tristate
229
230 config DECOMPRESS_LZ4
231         select LZ4_DECOMPRESS
232         tristate
233
234 #
235 # Generic allocator support is selected if needed
236 #
237 config GENERIC_ALLOCATOR
238         boolean
239
240 #
241 # reed solomon support is select'ed if needed
242 #
243 config REED_SOLOMON
244         tristate
245         
246 config REED_SOLOMON_ENC8
247         boolean
248
249 config REED_SOLOMON_DEC8
250         boolean
251
252 config REED_SOLOMON_ENC16
253         boolean
254
255 config REED_SOLOMON_DEC16
256         boolean
257
258 #
259 # BCH support is selected if needed
260 #
261 config BCH
262         tristate
263
264 config BCH_CONST_PARAMS
265         boolean
266         help
267           Drivers may select this option to force specific constant
268           values for parameters 'm' (Galois field order) and 't'
269           (error correction capability). Those specific values must
270           be set by declaring default values for symbols BCH_CONST_M
271           and BCH_CONST_T.
272           Doing so will enable extra compiler optimizations,
273           improving encoding and decoding performance up to 2x for
274           usual (m,t) values (typically such that m*t < 200).
275           When this option is selected, the BCH library supports
276           only a single (m,t) configuration. This is mainly useful
277           for NAND flash board drivers requiring known, fixed BCH
278           parameters.
279
280 config BCH_CONST_M
281         int
282         range 5 15
283         help
284           Constant value for Galois field order 'm'. If 'k' is the
285           number of data bits to protect, 'm' should be chosen such
286           that (k + m*t) <= 2**m - 1.
287           Drivers should declare a default value for this symbol if
288           they select option BCH_CONST_PARAMS.
289
290 config BCH_CONST_T
291         int
292         help
293           Constant value for error correction capability in bits 't'.
294           Drivers should declare a default value for this symbol if
295           they select option BCH_CONST_PARAMS.
296
297 #
298 # Textsearch support is select'ed if needed
299 #
300 config TEXTSEARCH
301         boolean
302
303 config TEXTSEARCH_KMP
304         tristate
305
306 config TEXTSEARCH_BM
307         tristate
308
309 config TEXTSEARCH_FSM
310         tristate
311
312 config BTREE
313         boolean
314
315 config HAS_IOMEM
316         boolean
317         depends on !NO_IOMEM
318         select GENERIC_IO
319         default y
320
321 config HAS_IOPORT
322         boolean
323         depends on HAS_IOMEM && !NO_IOPORT
324         default y
325
326 config HAS_DMA
327         boolean
328         depends on !NO_DMA
329         default y
330
331 config CHECK_SIGNATURE
332         bool
333
334 config CPUMASK_OFFSTACK
335         bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS
336         help
337           Use dynamic allocation for cpumask_var_t, instead of putting
338           them on the stack.  This is a bit more expensive, but avoids
339           stack overflow.
340
341 config DISABLE_OBSOLETE_CPUMASK_FUNCTIONS
342        bool "Disable obsolete cpumask functions" if DEBUG_PER_CPU_MAPS
343        depends on BROKEN
344
345 config CPU_RMAP
346         bool
347         depends on SMP
348
349 config DQL
350         bool
351
352 #
353 # Netlink attribute parsing support is select'ed if needed
354 #
355 config NLATTR
356         bool
357
358 #
359 # Generic 64-bit atomic support is selected if needed
360 #
361 config GENERIC_ATOMIC64
362        bool
363
364 config ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
365         def_bool y if GENERIC_ATOMIC64
366
367 config LRU_CACHE
368         tristate
369
370 config AVERAGE
371         bool "Averaging functions"
372         help
373           This option is provided for the case where no in-kernel-tree
374           modules require averaging functions, but a module built outside
375           the kernel tree does. Such modules that use library averaging
376           functions require Y here.
377
378           If unsure, say N.
379
380 config CLZ_TAB
381         bool
382
383 config CORDIC
384         tristate "CORDIC algorithm"
385         help
386           This option provides an implementation of the CORDIC algorithm;
387           calculations are in fixed point. Module will be called cordic.
388
389 config DDR
390         bool "JEDEC DDR data"
391         help
392           Data from JEDEC specs for DDR SDRAM memories,
393           particularly the AC timing parameters and addressing
394           information. This data is useful for drivers handling
395           DDR SDRAM controllers.
396
397 config MPILIB
398         tristate
399         select CLZ_TAB
400         help
401           Multiprecision maths library from GnuPG.
402           It is used to implement RSA digital signature verification,
403           which is used by IMA/EVM digital signature extension.
404
405 config SIGNATURE
406         tristate
407         depends on KEYS && CRYPTO
408         select CRYPTO_SHA1
409         select MPILIB
410         help
411           Digital signature verification. Currently only RSA is supported.
412           Implementation is done using GnuPG MPI library
413
414 #
415 # libfdt files, only selected if needed.
416 #
417 config LIBFDT
418         bool
419
420 config OID_REGISTRY
421         tristate
422         help
423           Enable fast lookup object identifier registry.
424
425 config UCS2_STRING
426         tristate
427
428 source "lib/fonts/Kconfig"
429
430 endmenu