Skip to contentSkip to conversation

Understanding get_maintainer.pl and MAINTAINERS

DISCUSSION Robin Krahl 2 participants 4 messages Mar 8, 2017 – Mar 9, 2017

lore
Share & tools
lore
#0 lore raw

Hi again,

I?m now preparing my patchset for bcm2835-audio. get_maintainer.pl returns:

	$ ./scripts/get_maintainer.pl --nokeywords --nogit --nogit-fallback drivers/staging/vc04_services/bcm2835-audio/
	Stephen Warren <[email protected]> (maintainer:BROADCOM BCM2835 ARM ARCHITECTURE)
	Lee Jones <[email protected]> (maintainer:BROADCOM BCM2835 ARM ARCHITECTURE)
	Eric Anholt <[email protected]> (maintainer:BROADCOM BCM2835 ARM ARCHITECTURE)
	Greg Kroah-Hartman <[email protected]> (supporter:STAGING SUBSYSTEM)
	Florian Fainelli <[email protected]> (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...)
	Ray Jui <[email protected]> (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...)
	Scott Branden <[email protected]> (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...)
	bcm-kernel-feedback-list at broadcom.com (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...)
	linux-rpi-kernel at lists.infradead.org (moderated list:BROADCOM BCM2835 ARM ARCHITECTURE)
	linux-arm-kernel at lists.infradead.org (moderated list:BROADCOM BCM2835 ARM ARCHITECTURE)
	devel at driverdev.osuosl.org (open list:STAGING SUBSYSTEM)
	linux-kernel at vger.kernel.org (open list)

Why are the BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE guys added to the list? The MAINTAINERS file defines these rules:

BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITECTURE
M: Florian Fainelli <[email protected]>
M: Ray Jui <[email protected]>
M: Scott Branden <[email protected]>
M: bcm-kernel-feedback-list at broadcom.com
T: git git://github.com/broadcom/mach-bcm
S: Maintained
N: bcm281*
N: bcm113*
N: bcm216*
N: kona
F: arch/arm/mach-bcm/

As far as I see, none of these rules matches the given path. Am I missing something?

Regards,
Robin

#1 lore raw
Quoted 35 lines · Robin Krahl

Hi again,

I?m now preparing my patchset for bcm2835-audio. get_maintainer.pl returns:

	$ ./scripts/get_maintainer.pl --nokeywords --nogit --nogit-fallback drivers/staging/vc04_services/bcm2835-audio/
	Stephen Warren <[email protected]> (maintainer:BROADCOM BCM2835 ARM ARCHITECTURE)
	Lee Jones <[email protected]> (maintainer:BROADCOM BCM2835 ARM ARCHITECTURE)
	Eric Anholt <[email protected]> (maintainer:BROADCOM BCM2835 ARM ARCHITECTURE)
	Greg Kroah-Hartman <[email protected]> (supporter:STAGING SUBSYSTEM)
	Florian Fainelli <[email protected]> (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...)
	Ray Jui <[email protected]> (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...)
	Scott Branden <[email protected]> (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...)
	bcm-kernel-feedback-list at broadcom.com (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...)
	linux-rpi-kernel at lists.infradead.org (moderated list:BROADCOM BCM2835 ARM ARCHITECTURE)
	linux-arm-kernel at lists.infradead.org (moderated list:BROADCOM BCM2835 ARM ARCHITECTURE)
	devel at driverdev.osuosl.org (open list:STAGING SUBSYSTEM)
	linux-kernel at vger.kernel.org (open list)

Why are the BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE guys added to the list? The MAINTAINERS file defines these rules:

BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITECTURE
M: Florian Fainelli <[email protected]>
M: Ray Jui <[email protected]>
M: Scott Branden <[email protected]>
M: bcm-kernel-feedback-list at broadcom.com
T: git git://github.com/broadcom/mach-bcm
S: Maintained
N: bcm281*
N: bcm113*
N: bcm216*
N: kona
F: arch/arm/mach-bcm/

Quoted 2 lines

As far as I see, none of these rules matches the given path. Am I missing something?

The N entries are regex patterns. "bcm281*" matches any name starting with "bcm28", followed by 0 or more 1's. So "bcm2835-audio" matches.

Yes, that looks like a bug in the MAINTAINERS entry. They probably intended something along

 	N:      bcm281.*
 	N:      bcm113.*
 	N:      bcm216.*

Bj?rn

#2 lore raw
Quoted 2 lines · Bj?rn Mork

The N entries are regex patterns. "bcm281*" matches any name starting with "bcm28", followed by 0 or more 1's.

This isn't entirely correct. I assumed there was some implicit anchoring on path name components, but there isnt. So "bcm281*" will match any file containing "bcm28" somewhere in the path.

I am obviously not the first one making that bogus assumption. Very few of the "N:" entries in MAINTAINERS are anchored in any way. The rest of them are likely buggy. No one expects these strings to match in the middle of arbitrary path names. Even the example is a bit too wild IMHO:

N: Files and directories with regex patterns.
N: [^a-z]tegra all files whose path contains the word tegra

The '[^a-z]' prevents this from matching any word containing "tegra". But it will still match e.g "INtegrator" or "b1tegrasp", which is unexpected. It would be better to use a more explicit anchor, like '[-/]tegra'. Or maybe even "/tegra".

Bj?rn

#3 lore raw

Bj?rn, thanks for the explanations!

Quoted 5 lines · Bj?rn Mork

Yes, that looks like a bug in the MAINTAINERS entry. They probably intended something along

(quoted diff) +0 -0
 	N:      bcm281.*
 	N:      bcm113.*
 	N:      bcm216.*
Quoted 8 lines · Bj?rn Mork

I am obviously not the first one making that bogus assumption. Very few of the "N:" entries in MAINTAINERS are anchored in any way. The rest of them are likely buggy. No one expects these strings to match in the middle of arbitrary path names. Even the example is a bit too wild IMHO:

N: Files and directories with regex patterns.
N: [^a-z]tegra all files whose path contains the word tegra

I?ll contact the maintainers for this particular entry. Should the general issue be reported somewhere, e. g. on the LKML or to Joe Perches as the get_maintainer.pl maintainer?

Robin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170309/95bc39fd/attachment.bin