aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Kconfig
diff options
context:
space:
mode:
authorGeorge Spelvin <linux@horizon.com>2014-08-06 19:09:23 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 21:01:24 -0400
commitb01250856b25f4417c51aa33afc451fbf7da1484 (patch)
treed11b68368d63c1ae99814b930ce664d7fd3fa8e6 /lib/Kconfig
parent62e7ca5280fd8cbf523970757e13f0324ce0daa0 (diff)
lib: add lib/glob.c
This is a helper function from drivers/ata/libata_core.c, where it is used to blacklist particular device models. It's being moved to lib/ so other drivers may use it for the same purpose. This implementation in non-recursive, so is safe for the kernel stack. [akpm@linux-foundation.org: fix sparse warning] Signed-off-by: George Spelvin <linux@horizon.com> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: Tejun Heo <tj@kernel.org> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r--lib/Kconfig19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig
index a8a775730c09..41bfeec72e40 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -396,6 +396,25 @@ config CPU_RMAP
396config DQL 396config DQL
397 bool 397 bool
398 398
399config GLOB
400 bool
401# This actually supports modular compilation, but the module overhead
402# is ridiculous for the amount of code involved. Until an out-of-tree
403# driver asks for it, we'll just link it directly it into the kernel
404# when required. Since we're ignoring out-of-tree users, there's also
405# no need bother prompting for a manual decision:
406# prompt "glob_match() function"
407 help
408 This option provides a glob_match function for performing
409 simple text pattern matching. It originated in the ATA code
410 to blacklist particular drive models, but other device drivers
411 may need similar functionality.
412
413 All drivers in the Linux kernel tree that require this function
414 should automatically select this option. Say N unless you
415 are compiling an out-of tree driver which tells you that it
416 depends on this.
417
399# 418#
400# Netlink attribute parsing support is select'ed if needed 419# Netlink attribute parsing support is select'ed if needed
401# 420#