]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32097af403b0b6d748350794b9e14ce9f872e892
treed11b68368d63c1ae99814b930ce664d7fd3fa8e6
parent8cfce81b1f88586ca487c5d8ad1a56c47fae4f9b
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]