lib: add lib/glob.c
authorGeorge Spelvin <linux@horizon.com>
Wed, 6 Aug 2014 23:09:23 +0000 (16:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:24 +0000 (18:01 -0700)
commitb01250856b25f4417c51aa33afc451fbf7da1484
treed11b68368d63c1ae99814b930ce664d7fd3fa8e6
parent62e7ca5280fd8cbf523970757e13f0324ce0daa0
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>
include/linux/glob.h [new file with mode: 0644]
lib/Kconfig
lib/Makefile
lib/glob.c [new file with mode: 0644]