<p><br>
11 mar 2013 21:19, "Stephen Warren" <<a href="mailto:swarren@wwwdotorg.org">swarren@wwwdotorg.org</a>> napisał(a):<br>
><br>
> From: Stephen Warren <<a href="mailto:swarren@nvidia.com">swarren@nvidia.com</a>><br>
><br>
> Create a new N: entry type in MAINTAINERS which performs a regex match<br>
> against filenames; either those extracted from patch +++ or --- lines,<br>
> or those specified on the command-line using the -f option.<br>
><br>
> This provides the same benefits as using a K: regex option to match a<br>
> set of filenames (see commit eb90d08 "get_maintainer: allow keywords to<br>
> match filenames"), but without the disadvantage that "random" file<br>
> content, such as comments, will ever match the regex. Hence, revert most<br>
> of that commit.<br>
><br>
> Switch the Tegra entry from using K: to N:<br>
><br>
> Reported-by: Marcin Slusarz <<a href="mailto:marcin.slusarz@gmail.com">marcin.slusarz@gmail.com</a>><br>
> Suggested-by: Joe Perches <<a href="mailto:joe@perches.com">joe@perches.com</a>><br>
> Signed-off-by: Stephen Warren <<a href="mailto:swarren@nvidia.com">swarren@nvidia.com</a>><br>
> ---<br>
> v2: Corrected typo in MAINTAINERS documentation<br>
> v3: Squash 3 patches into one.<br>
> ---<br>
>  MAINTAINERS               |   14 ++++++++------<br>
>  scripts/<a href="http://get_maintainer.pl">get_maintainer.pl</a> |    2 +-<br>
>  2 files changed, 9 insertions(+), 7 deletions(-)<br>
><br>
> diff --git a/MAINTAINERS b/MAINTAINERS<br>
> index 9561658..e68a07a 100644<br>
> --- a/MAINTAINERS<br>
> +++ b/MAINTAINERS<br>
> @@ -90,6 +90,9 @@ Descriptions of section entries:<br>
>            F:   drivers/net/*   all files in drivers/net, but not below<br>
>            F:   */net/*         all files in "any top level directory"/net<br>
>            One pattern per line.  Multiple F: lines acceptable.<br>
> +       N: Files and directories with regex patterns.<br>
> +          N:   [^a-z]tegra     all files whose patch contains the word tegra</p>
<p>s/patch/path/ ?</p>
<p>> +          One pattern per line.  Multiple N: lines acceptable.<br>
>         X: Files and directories that are NOT maintained, same rules as F:<br>
>            Files exclusions are tested before file matches.<br>
>            Can be useful for excluding a specific subdirectory, for instance:<br>
> @@ -97,13 +100,12 @@ Descriptions of section entries:<br>
>            X:   net/ipv6/<br>
>            matches all files in and below net excluding net/ipv6/<br>
>         K: Keyword perl extended regex pattern to match content in a<br>
> -          patch or file, or an affected filename.  For instance:<br>
> +          patch or file.  For instance:<br>
>            K: of_get_profile<br>
> -             matches patch or file content, or filenames, that contain<br>
> -             "of_get_profile"<br>
> +             matches patches or files that contain "of_get_profile"<br>
>            K: \b(printk|pr_(info|err))\b<br>
> -             matches patch or file content, or filenames, that contain one or<br>
> -             more of the words printk, pr_info or pr_err<br>
> +             matches patches or files that contain one or more of the words<br>
> +             printk, pr_info or pr_err<br>
>            One regex pattern per line.  Multiple K: lines acceptable.<br>
><br>
>  Note: For the hard of thinking, this list is meant to remain in alphabetical<br>
> @@ -7848,7 +7850,7 @@ L:        <a href="mailto:linux-tegra@vger.kernel.org">linux-tegra@vger.kernel.org</a><br>
>  Q:     <a href="http://patchwork.ozlabs.org/project/linux-tegra/list/">http://patchwork.ozlabs.org/project/linux-tegra/list/</a><br>
>  T:     git git://<a href="http://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git">git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git</a><br>
>  S:     Supported<br>
> -K:     (?i)[^a-z]tegra<br>
> +N:     [^a-z]tegra<br>
><br>
>  TEHUTI ETHERNET DRIVER<br>
>  M:     Andy Gospodarek <<a href="mailto:andy@greyhouse.net">andy@greyhouse.net</a>><br>
> diff --git a/scripts/<a href="http://get_maintainer.pl">get_maintainer.pl</a> b/scripts/<a href="http://get_maintainer.pl">get_maintainer.pl</a><br>
> index ce4cc83..5e4fb14 100755<br>
> --- a/scripts/<a href="http://get_maintainer.pl">get_maintainer.pl</a><br>
> +++ b/scripts/<a href="http://get_maintainer.pl">get_maintainer.pl</a><br>
> @@ -611,7 +611,7 @@ sub get_maintainers {<br>
>                                     $hash{$tvi} = $value_pd;<br>
>                                 }<br>
>                             }<br>
> -                       } elsif ($type eq 'K') {<br>
> +                       } elsif ($type eq 'N') {<br>
>                             if ($file =~ m/$value/x) {<br>
>                                 $hash{$tvi} = 0;<br>
>                             }<br>
> --<br>
> 1.7.10.4<br>
><br>
</p>