History

get_maintainer: use filename-only regex match for Tegra

Create a new N: entry type in MAINTAINERS which performs a regex match against filenames; either those extracted from patch +++ or --- lines, or those specified on the command-line using the -f option. This provides the same benefits as using a K: regex option to match a set of filenames (see commit eb90d0855b75 "get_maintainer: allow keywords to match filenames"), but without the disadvantage that "random" file content, such as comments, will ever match the regex. Hence, revert most of that commit. Switch the Tegra entry from using K: to N: [akpm@linux-foundation.org: fix typo in docs, per Marcin] Reported-by: Marcin Slusarz <marcin.slusarz@gmail.com> Suggested-by: Joe Perches <joe@perches.com> Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Stephen Warren committed 13 years ago

Commit bbbe96e1 parent 0a285312 files · +9 −7Browse files

Unified · Split

2 files
  1. MAINTAINERS +8 −6
  2. scripts/get_maintainer.pl +1 −1
MAINTAINERS+8−6
@@ -90,6 +90,9 @@ Descriptions of section entries: · 89 unmodified lines
90 F: drivers/net/* all files in drivers/net, but not below90 F: drivers/net/* all files in drivers/net, but not below
91 F: */net/* all files in "any top level directory"/net91 F: */net/* all files in "any top level directory"/net
92 One pattern per line. Multiple F: lines acceptable.92 One pattern per line. Multiple F: lines acceptable.
93 N: Files and directories with regex patterns.
94 N: [^a-z]tegra all files whose path contains the word tegra
95 One pattern per line. Multiple N: lines acceptable.
93 X: Files and directories that are NOT maintained, same rules as F:96 X: Files and directories that are NOT maintained, same rules as F:
94 Files exclusions are tested before file matches.97 Files exclusions are tested before file matches.
95 Can be useful for excluding a specific subdirectory, for instance:98 Can be useful for excluding a specific subdirectory, for instance:
@@ -97,13 +100,12 @@ Descriptions of section entries: · 1 unmodified line
97 X: net/ipv6/100 X: net/ipv6/
98 matches all files in and below net excluding net/ipv6/101 matches all files in and below net excluding net/ipv6/
99 K: Keyword perl extended regex pattern to match content in a102 K: Keyword perl extended regex pattern to match content in a
100 patch or file, or an affected filename. For instance:103 patch or file. For instance:
101 K: of_get_profile104 K: of_get_profile
102 matches patch or file content, or filenames, that contain105 matches patches or files that contain "of_get_profile"
103 "of_get_profile"
104 K: \b(printk|pr_(info|err))\b106 K: \b(printk|pr_(info|err))\b
105 matches patch or file content, or filenames, that contain one or107 matches patches or files that contain one or more of the words
106 more of the words printk, pr_info or pr_err108 printk, pr_info or pr_err
107 One regex pattern per line. Multiple K: lines acceptable.109 One regex pattern per line. Multiple K: lines acceptable.
108 110
109Note: For the hard of thinking, this list is meant to remain in alphabetical111Note: For the hard of thinking, this list is meant to remain in alphabetical
@@ -7896,7 +7898,7 @@ L: linux-tegra@vger.kernel.org · 7786 unmodified lines
7896Q: http://patchwork.ozlabs.org/project/linux-tegra/list/7898Q: http://patchwork.ozlabs.org/project/linux-tegra/list/
7897T: git git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git7899T: git git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git
7898S: Supported7900S: Supported
7899K: (?i)[^a-z]tegra7901N: [^a-z]tegra
7900 7902
7901TEHUTI ETHERNET DRIVER7903TEHUTI ETHERNET DRIVER
7902M: Andy Gospodarek <andy@greyhouse.net>7904M: Andy Gospodarek <andy@greyhouse.net>
scripts/get_maintainer.pl+1−1
@@ -611,7 +611,7 @@ sub get_maintainers { · 610 unmodified lines
611 $hash{$tvi} = $value_pd;611 $hash{$tvi} = $value_pd;
612 }612 }
613 }613 }
614 } elsif ($type eq 'K') {614 } elsif ($type eq 'N') {
615 if ($file =~ m/$value/x) {615 if ($file =~ m/$value/x) {
616 $hash{$tvi} = 0;616 $hash{$tvi} = 0;
617 }617 }