mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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. [[email protected]: fix sparse warning] Signed-off-by: George Spelvin <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
62e7ca5280
commit
b01250856b
4 changed files with 153 additions and 0 deletions
19
lib/Kconfig
19
lib/Kconfig
|
|
@ -396,6 +396,25 @@ config CPU_RMAP
|
|||
config DQL
|
||||
bool
|
||||
|
||||
config GLOB
|
||||
bool
|
||||
# This actually supports modular compilation, but the module overhead
|
||||
# is ridiculous for the amount of code involved. Until an out-of-tree
|
||||
# driver asks for it, we'll just link it directly it into the kernel
|
||||
# when required. Since we're ignoring out-of-tree users, there's also
|
||||
# no need bother prompting for a manual decision:
|
||||
# prompt "glob_match() function"
|
||||
help
|
||||
This option provides a glob_match function for performing
|
||||
simple text pattern matching. It originated in the ATA code
|
||||
to blacklist particular drive models, but other device drivers
|
||||
may need similar functionality.
|
||||
|
||||
All drivers in the Linux kernel tree that require this function
|
||||
should automatically select this option. Say N unless you
|
||||
are compiling an out-of tree driver which tells you that it
|
||||
depends on this.
|
||||
|
||||
#
|
||||
# Netlink attribute parsing support is select'ed if needed
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue