From: Joe Perches <joe@perches.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>,
Serge Semin <Sergey.Semin@baikalelectronics.ru>,
Andrew Morton <akpm@linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>
Cc: Serge Semin <fancer.lancer@gmail.com>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
Thomas Gleixner <tglx@linutronix.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Alexey Malahov <Alexey.Malahov@baikalelectronics.ru>,
Paul Burton <paul.burton@imgtec.com>,
Rob Herring <robh+dt@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
Jason Cooper <jason@lakedaemon.net>,
Marc Zyngier <maz@kernel.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
James Hogan <jhogan@kernel.org>,
linux-mips@vger.kernel.org,
devicetree <devicetree@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [RFC PATCH -next] MAINTAINERS: Update F: and X: entry ordering (was Re: [PATCH v2 6/6] MAINTAINERS: Add maintainers for MIPS core drivers)
Date: Mon, 01 Jun 2020 11:22:58 -0700 [thread overview]
Message-ID: <2e96576791604862a11f094665b0c4e9c3263fd4.camel@perches.com> (raw)
In-Reply-To: <CAHp75Vej9gRAVspzfruciQ7weFunNBtj8GxbgBCVWtGwk5_ntQ@mail.gmail.com>
On Mon, 2020-06-01 at 19:04 +0300, Andy Shevchenko wrote:
> On Mon, Jun 1, 2020 at 6:52 PM Serge Semin <Sergey.Semin@baikalelectronics.ru> wrote:
> > On Mon, Jun 01, 2020 at 06:30:22PM +0300, Andy Shevchenko wrote:
> > > On Mon, Jun 1, 2020 at 6:19 PM Serge Semin <Sergey.Semin@baikalelectronics.ru> wrote:
> > > > On Mon, Jun 01, 2020 at 04:56:21PM +0300, Andy Shevchenko wrote:
> > > > > On Mon, Jun 1, 2020 at 3:26 PM Serge Semin <Sergey.Semin@baikalelectronics.ru> wrote:
> > > > > > Add myself as a maintainer of MIPS CPU and GIC IRQchip, MIPS GIC timer
> > > > > > and MIPS CPS CPUidle drivers.
> > > > > ...
> > > > > > +MIPS CORE DRIVERS
> > > > > > +M: Serge Semin <fancer.lancer@gmail.com>
> > > > > > +L: linux-mips@vger.kernel.org
> > > > > > +S: Supported
> > > > > > +F: drivers/bus/mips_cdmm.c
> > > > > > +F: drivers/irqchip/irq-mips-cpu.c
> > > > > > +F: drivers/irqchip/irq-mips-gic.c
> > > > > > +F: drivers/clocksource/mips-gic-timer.c
> > > > > > +F: drivers/cpuidle/cpuidle-cps.c
> > > > >
> > > > > I think nowadays checkpatch.pl warns on wrong ordering in this data base.
[]
> > Next time I won't forget that then. BTW the notes at the top of the MAINTAINERS
> > file don't explicitly say about the files-list order. Only about the
> > whole maintainers list entries order. Seeing the rest of the sub-entries like
> > L:, M:, etc. aren't ordered then it's probably better to have an explicit
> > statement, that files should be alphabetically listed, especially when
> > checkpatch.pl starts warning about that.
>
> Joe, what do you think?
Fine by me. Maybe something like the below.
Another thing might be to intermix the F and X entries so that
exclusions are more obviously against the F: entries.
There aren't many MAINTAINERS lines changed when the modified
parse-maintainers is run, but I think it reads better.
It doesn't seem the last major reordering with parse-maintainers
caused any significant issue for anyone.
I think having Linus run scripts/parse-maintainers.pl just before
every release or every few releases would make this issue go away.
---
MAINTAINERS | 1 +
scripts/checkpatch.pl | 17 +++++++----------
scripts/parse-maintainers.pl | 5 ++---
3 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index b045b70e54df..4b53119504ff 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -118,6 +118,7 @@ Descriptions of section entries and preferred order
F: net/
X: net/ipv6/
matches all files in and below net excluding net/ipv6/
+ F: and X: entries are intermixed in case sensitive alphabetic order
N: Files and directories *Regex* patterns.
N: [^a-z]tegra all files whose path contains tegra
(not including files like integrator)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index dd750241958b..499c85be0b2f 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3099,16 +3099,13 @@ sub process {
if ($curindex < 0) {
WARN("MAINTAINERS_STYLE",
"Unknown MAINTAINERS entry type: '$cur'\n" . $herecurr);
- } else {
- if ($previndex >= 0 && $curindex < $previndex) {
- WARN("MAINTAINERS_STYLE",
- "Misordered MAINTAINERS entry - list '$cur:' before '$prev:'\n" . $hereprev);
- } elsif ((($prev eq 'F' && $cur eq 'F') ||
- ($prev eq 'X' && $cur eq 'X')) &&
- ($prevval cmp $curval) > 0) {
- WARN("MAINTAINERS_STYLE",
- "Misordered MAINTAINERS entry - list file patterns in alphabetic order\n" . $hereprev);
- }
+ } elsif ($previndex >= 0 && $curindex < $previndex && !($prev =~ /[FX]/ && $cur =~ /[FX]/)) {
+ WARN("MAINTAINERS_STYLE",
+ "Misordered MAINTAINERS entry - list '$cur:' before '$prev:'\n" . $hereprev);
+ } elsif ((($prev =~ /[FX]/ && $cur =~ /[FX]/) &&
+ ($prevval cmp $curval) > 0)) {
+ WARN("MAINTAINERS_STYLE",
+ "Misordered MAINTAINERS entry - list F and X file patterns in alphabetic order\n" . $hereprev);
}
}
}
diff --git a/scripts/parse-maintainers.pl b/scripts/parse-maintainers.pl
index 2ca4eb3f190d..8d2247a596f0 100755
--- a/scripts/parse-maintainers.pl
+++ b/scripts/parse-maintainers.pl
@@ -84,9 +84,8 @@ sub by_pattern($$) {
$a_index = 1000 if ($a_index == -1);
$b_index = 1000 if ($b_index == -1);
- if (($a1 =~ /^F$/ && $b1 =~ /^F$/) ||
- ($a1 =~ /^X$/ && $b1 =~ /^X$/)) {
- return $a cmp $b;
+ if (($a1 =~ /^[FX]$/ && $b1 =~ /^[FX]$/)) {
+ return substr($a, 1) cmp substr($b, 1);
}
if ($a_index < $b_index) {
next prev parent reply other threads:[~2020-06-01 18:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-01 12:21 [PATCH RESEND v2 0/6] mips: Add DT bindings for MIPS CDMM and MIPS GIC Serge Semin
2020-06-01 12:21 ` [PATCH v2 1/6] dt-bindings: power: Convert mti,mips-cpc to DT schema Serge Semin
2020-06-01 12:21 ` [PATCH v2 2/6] dt-bindings: interrupt-controller: Convert mti,gic " Serge Semin
2020-06-01 12:21 ` [PATCH v2 3/6] dt-bindings: bus: Add MIPS CDMM controller Serge Semin
2020-06-01 12:21 ` [PATCH v2 4/6] mips: cdmm: Add mti,mips-cdmm dtb node support Serge Semin
2020-06-01 12:21 ` [PATCH v2 5/6] bus: cdmm: Add MIPS R5 arch support Serge Semin
2020-06-01 12:21 ` [PATCH v2 6/6] MAINTAINERS: Add maintainers for MIPS core drivers Serge Semin
2020-06-01 13:56 ` Andy Shevchenko
2020-06-01 15:19 ` Serge Semin
2020-06-01 15:30 ` Andy Shevchenko
2020-06-01 15:52 ` Serge Semin
2020-06-01 16:04 ` Andy Shevchenko
2020-06-01 18:22 ` Joe Perches [this message]
2020-06-02 9:51 ` [RFC PATCH -next] MAINTAINERS: Update F: and X: entry ordering (was Re: [PATCH v2 6/6] MAINTAINERS: Add maintainers for MIPS core drivers) Serge Semin
2020-06-01 12:31 ` [PATCH RESEND v2 0/6] mips: Add DT bindings for MIPS CDMM and MIPS GIC Marc Zyngier
2020-06-01 15:24 ` Serge Semin
2020-06-01 16:56 ` Thomas Bogendoerfer
2020-06-01 17:13 ` Serge Semin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2e96576791604862a11f094665b0c4e9c3263fd4.camel@perches.com \
--to=joe@perches.com \
--cc=Alexey.Malahov@baikalelectronics.ru \
--cc=Sergey.Semin@baikalelectronics.ru \
--cc=akpm@linux-foundation.org \
--cc=andy.shevchenko@gmail.com \
--cc=arnd@arndb.de \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=fancer.lancer@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jason@lakedaemon.net \
--cc=jhogan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=maz@kernel.org \
--cc=paul.burton@imgtec.com \
--cc=rjw@rjwysocki.net \
--cc=robh+dt@kernel.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®