Re: [PATCH] MAINTAINERS: Fix parsing usbhid from scripts/get_maintainer.pl

From: Joe Perches
Date: Thu Jun 16 2022 - 22:40:41 EST


On Thu, 2022-06-16 at 13:33 -0500, Mario Limonciello wrote:
> Recently trying to send a patch, I found that `./scripts/get_maintainer.pl`
> didn't want to parse the usbhid section because of too long of a line
> leading to a missing parenthesis. To fix this, change () to [] so it can
> parse even the long line.
[]
> (to-cmd) Adding to: linux-usb@xxxxxxxxxxxxxxx (open list:USB HID/HIDBP DRIVERS (USB KEYBOARDS, MICE, REM...) from: 'scripts/get_maintainer.pl'
> (to-cmd) Adding to: linux-input@xxxxxxxxxxxxxxx (open list:HID CORE LAYER) from: 'scripts/get_maintainer.pl'
> (to-cmd) Adding to: linux-kernel@xxxxxxxxxxxxxxx (open list) from: 'scripts/get_maintainer.pl'
> Unmatched () '(open list:USB HID/HIDBP DRIVERS (USB KEYBOARDS, MICE, REM...)' '' at /usr/lib/git-core/git-send-email line 546.
> error: unable to extract a valid address from: linux-usb@xxxxxxxxxxxxxxx (open list:USB HID/HIDBP DRIVERS (USB KEYBOARDS, MICE, REM...)

And it wasn't get_maintainer, it was git send-email that found that
the specific get_maintainer output was not a 'valid' email address
with a balanced parenthesis comment.

> diff --git a/MAINTAINERS b/MAINTAINERS
[]
> @@ -20537,7 +20537,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git
> F: drivers/usb/gadget/
> F: include/linux/usb/gadget*
>
> -USB HID/HIDBP DRIVERS (USB KEYBOARDS, MICE, REMOTE CONTROLS, ...)
> +USB HID/HIDBP DRIVERS [USB KEYBOARDS, MICE, REMOTE CONTROLS, ...]
> M: Jiri Kosina <jikos@xxxxxxxxxx>
> M: Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>
> L: linux-usb@xxxxxxxxxxxxxxx