From: Joe Perches <joe@perches.com>
To: Russell King - ARM Linux admin <linux@armlinux.org.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Dmitry Vyukov <dvyukov@google.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH] MAINTAINERS: update phylink/sfp keyword matching
Date: Wed, 05 Aug 2020 16:07:04 -0700 [thread overview]
Message-ID: <8a091297aef4ebb44a65ab1c683caae006acf76a.camel@perches.com> (raw)
In-Reply-To: <20200805220917.GZ1551@shell.armlinux.org.uk>
On Wed, 2020-08-05 at 23:09 +0100, Russell King - ARM Linux admin wrote:
> On Wed, Aug 05, 2020 at 11:47:38AM -0700, Joe Perches wrote:
> > On Wed, 2020-08-05 at 19:22 +0100, Russell King - ARM Linux admin wrote:
> > > On Wed, Aug 05, 2020 at 11:11:28AM -0700, Linus Torvalds wrote:
> > > > On Wed, Aug 5, 2020 at 7:34 AM Russell King <rmk+kernel@armlinux.org.uk> wrote:
> > > > > Is this something you're willing to merge directly please?
> > > >
> > > > Done.
> > > >
> > > > That said:
> > > >
> > > > > -K: phylink
> > > > > +K: phylink\.h|struct\s+phylink|\.phylink|>phylink_|phylink_(autoneg|clear|connect|create|destroy|disconnect|ethtool|helper|mac|mii|of|set|start|stop|test|validate)
> > > >
> > > > That's a very awkward pattern. I wonder if there could be better ways
> > > > to express this (ie "only apply this pattern to these files" kind of
> > > > thing)
> > >
> > > Yes, it's extremely awkward - I spent much of the morning with perl
> > > testing it out on the drivers/ subtree.
> >
> > There are a lot of phylink_<foo> in the kernel.
> > Are those really the only uses you want to watch?
>
> It is sufficient; as I said, I've spent a morning running this:
Cool for you, I was just asking.
How you determine what functions you're interested in
is up to you.
Another mechanism might have been something like:
$ git grep -Poh '(?:static\s+inline|EXPORT_SYMBOL).*phylink_[a-z]+' | \
grep -Poh 'phylink_[a-z]+' | sort | uniq
Maybe something that could be made generic in get_maintainer
for people maintaining specific EXPORT_SYMBOL(foo) blocks.
Maybe another letter/look could be added to MAINTAINERS like:
E: symbol_regex
as another similar mechanism for keywords but just for data
or functions marked as exported symbols.
For example, that E: might help minimize xdp matches as xdp
is used by many other bits of code that aren't express data
path uses.
MAINTAINERS-XDP (eXpress Data Path)
MAINTAINERS-M: Alexei Starovoitov <ast@kernel.org>
MAINTAINERS-M: Daniel Borkmann <daniel@iogearbox.net>
MAINTAINERS-M: David S. Miller <davem@davemloft.net>
MAINTAINERS-M: Jakub Kicinski <kuba@kernel.org>
MAINTAINERS-M: Jesper Dangaard Brouer <hawk@kernel.org>
MAINTAINERS-M: John Fastabend <john.fastabend@gmail.com>
MAINTAINERS-L: netdev@vger.kernel.org
MAINTAINERS-L: bpf@vger.kernel.org
MAINTAINERS-S: Supported
MAINTAINERS-F: include/net/xdp.h
MAINTAINERS-F: include/trace/events/xdp.h
MAINTAINERS-F: kernel/bpf/cpumap.c
MAINTAINERS-F: kernel/bpf/devmap.c
MAINTAINERS-F: net/core/xdp.c
MAINTAINERS-N: xdp
MAINTAINERS:K: xdp
next prev parent reply other threads:[~2020-08-05 23:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-05 14:34 Russell King
2020-08-05 18:11 ` Linus Torvalds
2020-08-05 18:22 ` Russell King - ARM Linux admin
2020-08-05 18:47 ` Joe Perches
2020-08-05 21:24 ` Andrew Lunn
2020-08-05 22:09 ` Russell King - ARM Linux admin
2020-08-05 23:07 ` Joe Perches [this message]
2020-08-05 18:54 ` Joe Perches
2020-08-05 22:02 ` Russell King - ARM Linux admin
2020-08-05 22:09 ` Joe Perches
2020-08-05 22:12 ` Russell King - ARM Linux admin
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=8a091297aef4ebb44a65ab1c683caae006acf76a.camel@perches.com \
--to=joe@perches.com \
--cc=dvyukov@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/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®