+ add-lib-globc.patch added to -mm tree
[email protected]
maintainerSubject: + add-lib-globc.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 11 Jun 2014 16:04:56 -0700
The patch titled
Subject: lib: add lib/glob.c
has been added to the -mm tree. Its filename is
add-lib-globc.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/add-lib-globc.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/add-lib-globc.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: "George Spelvin" <[email protected]>
Subject: 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.
---
include/linux/glob.h | 10 +++ lib/Kconfig | 19 ++++++ lib/Makefile | 2 lib/glob.c | 123 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 154 insertions(+)
include/linux/glob.h new file +10 -0
@@ -0,0 +1,10 @@ +#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 */ +
lib/Kconfig renamed from lib/Kconfig~add-lib-globc +19 -0
@@ -382,6 +382,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 #
lib/Makefile renamed from lib/Makefile~add-lib-globc +2 -0
@@ -134,6 +134,8 @@ obj-$(CONFIG_CORDIC) += cordic.o obj-$(CONFIG_DQL) += dynamic_queue_limits.o +obj-$(CONFIG_GLOB) += glob.o + obj-$(CONFIG_MPILIB) += mpi/ obj-$(CONFIG_SIGNATURE) += digsig.o
lib/glob.c new file +123 -0
123 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
origin.patch
add-lib-globc.patch
lib-globc-add-config_glob_selftest.patch
libata-use-glob_match-from-lib-globc.patch
linux-next.patch