aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGeorge Spelvin <[email protected]>2014-08-06 16:09:23 -0700
committerLinus Torvalds <[email protected]>2014-08-06 18:01:24 -0700
commitb01250856b25f4417c51aa33afc451fbf7da1484 (patch)
treed11b68368d63c1ae99814b930ce664d7fd3fa8e6 /include/linux
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. [[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]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/glob.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/glob.h b/include/linux/glob.h
new file mode 100644
index 000000000000..861d8347d08e
--- /dev/null
+++ b/include/linux/glob.h
@@ -0,0 +1,9 @@
+#ifndef _LINUX_GLOB_H
+#define _LINUX_GLOB_H
+
+#include <linux/types.h> /* For bool */
+#include <linux/compiler.h> /* For __pure */
+
+bool __pure glob_match(char const *pat, char const *str);
+
+#endif /* _LINUX_GLOB_H */