From nobody Mon Feb 9 17:24:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1493804743346701.7183022037448; Wed, 3 May 2017 02:45:43 -0700 (PDT) Received: from localhost ([::1]:35552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5qqr-0004yv-PG for importer@patchew.org; Wed, 03 May 2017 05:45:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5qpI-000445-Px for qemu-devel@nongnu.org; Wed, 03 May 2017 05:44:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5qpE-0006n9-34 for qemu-devel@nongnu.org; Wed, 03 May 2017 05:44:04 -0400 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]:35341) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d5qpD-0006mg-S3 for qemu-devel@nongnu.org; Wed, 03 May 2017 05:44:00 -0400 Received: by mail-wr0-x242.google.com with SMTP id g12so21848373wrg.2 for ; Wed, 03 May 2017 02:43:59 -0700 (PDT) Received: from donizetti.redhat.com (94-39-148-124.adsl-ull.clienti.tiscali.it. [94.39.148.124]) by smtp.gmail.com with ESMTPSA id o20sm18336880wro.61.2017.05.03.02.43.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 May 2017 02:43:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ugCbsr5qX9QhkcqJv6lZtwlF+2Zf9KDtb27ki/62GNU=; b=AdyqV666RQdQZLXkM/AkP+DMzReNeo7W9aMJFpeYzDLyr4Y5CyaC2yiOF8sZVKTa6t HfTHUKJPO4UCcj+dgH1DshJnNuSHJ2vyGPi54gsLb2pI3OpX0UIaUyWmb+8MHUwq7qNf oDOLtr+AcLDU9LiI3KrcdGnPzytmuZzmAP700nQ84scm8oTPDYQwvQY6ppXgE07qZjpf VOezoXCzNhaC0g6G8Qy6853FcAHIb4aHrkvSGrlVb9UZiBMo0b7Ps2UH6YZUyBVxXFms I64Ogdb2Y+7J2gXzPMubctubVELjUlsho7PYmg4j0zCvhw1LbEzz8bOAZwFdIF9JPmVj ILjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=ugCbsr5qX9QhkcqJv6lZtwlF+2Zf9KDtb27ki/62GNU=; b=joSi1SqNPBoseJLzpG4cfcyiYJVO80yKR9IuoTOlL4yXZXfBOyyr53Kc9a81zo06sw rt3xz02KQ7OLwax5uYzKBvWmJX9xco5qpZiKbP5zRBboM8Pho3da9mDoj6f3nUIrivSY MutrjpT8MjGA8DZsNVo6GOcdADAh3qmUvjyXQFeiRgUatWaUKvQIEeDIKa97XpQJNN2w j23HuTVGNxtY4mbOfDdpHtjd0Cvd81zbFFLC+3YsA5NVmmmzZYbMaKuWPLJS23m5ONq/ 4jYthp7JMV0kBM/YC5UHwqDNCb2M21t13+xdq1Zq+PSO5cv/AjFq3Uw/na3eIAJURE8l noyQ== X-Gm-Message-State: AN3rC/61zuDAgJ/P4OhtOqzCa9COYTRjhcdx2A+TLBuDxtmtjzBJeFU4 pK3qF5rm5SdGMA== X-Received: by 10.223.166.129 with SMTP id t1mr26528707wrc.116.1493804638741; Wed, 03 May 2017 02:43:58 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 3 May 2017 11:43:51 +0200 Message-Id: <20170503094351.5040-6-pbonzini@redhat.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170503094351.5040-1-pbonzini@redhat.com> References: <20170503094351.5040-1-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::242 Subject: [Qemu-devel] [PATCH 5/5] get_maintainer: add subsystem to reviewer output X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thuth@redhat.com, armbru@redhat.com, pavel.dovgaluk@ispras.ru Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Joe Perches Reviewer output currently does not include the subsystem that matched. Add it. Miscellanea: o Add a get_subsystem_name routine to centralize this Cherry picked from Linux commit 2a7cb1dc82fc2a52e747b4c496c13f6575fb1790. Signed-off-by: Joe Perches Signed-off-by: Paolo Bonzini --- scripts/get_maintainer.pl | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index bf210c7fa6..63257965ce 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -896,20 +896,29 @@ sub find_ending_index { return $index; } =20 -sub get_maintainer_role { +sub get_subsystem_name { my ($index) =3D @_; =20 - my $i; my $start =3D find_starting_index($index); - my $end =3D find_ending_index($index); =20 - my $role =3D "unknown"; my $subsystem =3D $typevalue[$start]; if (length($subsystem) > 20) { $subsystem =3D substr($subsystem, 0, 17); $subsystem =3D~ s/\s*$//; $subsystem =3D $subsystem . "..."; } + return $subsystem; +} + +sub get_maintainer_role { + my ($index) =3D @_; + + my $i; + my $start =3D find_starting_index($index); + my $end =3D find_ending_index($index); + + my $role =3D "unknown"; + my $subsystem =3D get_subsystem_name($index); =20 for ($i =3D $start + 1; $i < $end; $i++) { my $tv =3D $typevalue[$i]; @@ -943,16 +952,7 @@ sub get_maintainer_role { sub get_list_role { my ($index) =3D @_; =20 - my $i; - my $start =3D find_starting_index($index); - my $end =3D find_ending_index($index); - - my $subsystem =3D $typevalue[$start]; - if (length($subsystem) > 20) { - $subsystem =3D substr($subsystem, 0, 17); - $subsystem =3D~ s/\s*$//; - $subsystem =3D $subsystem . "..."; - } + my $subsystem =3D get_subsystem_name($index); =20 if ($subsystem eq "THE REST") { $subsystem =3D ""; @@ -1040,7 +1040,8 @@ sub add_categories { } } if ($email_reviewer) { - push_email_addresses($pvalue, 'reviewer'); + my $subsystem =3D get_subsystem_name($i); + push_email_addresses($pvalue, "reviewer:$subsystem"); } } elsif ($ptype eq "T") { push(@scm, $pvalue); --=20 2.12.2