From patchwork Tue Jul 25 07:06:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Costa Shulyupin X-Patchwork-Id: 125375 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2298633vqg; Tue, 25 Jul 2023 00:35:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlFSpWD/td30wQdlZ63MBaNsexcjM38G3PKvvx7omF6uT/Q9AhHJU74G+moB4jebnfRm8LXt X-Received: by 2002:a17:906:74cc:b0:98d:e7e3:5ab7 with SMTP id z12-20020a17090674cc00b0098de7e35ab7mr12074148ejl.11.1690270505128; Tue, 25 Jul 2023 00:35:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690270505; cv=none; d=google.com; s=arc-20160816; b=t0YekxUpHll7mFvBn9q66ryUTfazBpT+93qL9N3KTmn1/Ie2cokwca3FL7BbEWUbUw rS7pbKxv7ToSuO1OIsuFUxxSDeiSlTJAaJeBZzRuJ/nkg+haa4yxAje1mXBl4XYT9ZUT MSgRnAk0tjVQCm2TwU2zizI7D3hT7nkxNEKhgklx/c+Ir9/Hbmf/blOmgWWM07NJ7jdy tDj7nkMwGSk93o1RuBcm8hKBS3aVC/TYBARUIEuNPXXzbbURp4Tx+3sLHa9AoeWH63iQ Do5utitcMMcTFucClrgLZ90R3JD4aF/fXC/j94/2eoqQ/uJ8fs9OeRNwlnGzqhu8rv8G xSTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=yPXbPq7UJNuXZs4NkhlcqVblqJBzPRRpcv9Sz5K3wL8=; fh=b/8pCjSeROIfWUNFv7v1YXTPm/n4wkCPn1nUui3iU8I=; b=Kr2p8cjA0txKREnxL/WsuSohazveHQXH+1SrkzbdGh+LZoQIDFOz3K938ZHp2+JlY7 a1j1LTu8xB4zmViYYFNbOdx9hQ+R7IGhJP/Pz0TgcyblI43ZP4mF4XT4BlVGGvom2xWk gDAhbviZWi70G4pWqWZfcfAnSWbLRm0lmMxTusQl8h1XHdpWTyFxfn10tW2D2OhBNl5C magtex1esoyw8X2ME9uUlkoECZhtiQP6A/MJFmwF/lyh1RVkeF+5rbONj6IkRXqp7Kmg HXRMv2xZImT2UAeY0HI2ZlzYje6i0vtDW2v8hBFO0DK1DJ6Z9BBpFkrhlYcjxBT9DtWp jfFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kg14-20020a17090776ee00b00992ca650b77si7344000ejc.416.2023.07.25.00.34.39; Tue, 25 Jul 2023 00:35:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231670AbjGYHHb (ORCPT + 99 others); Tue, 25 Jul 2023 03:07:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231783AbjGYHHL (ORCPT ); Tue, 25 Jul 2023 03:07:11 -0400 Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DECA783 for ; Tue, 25 Jul 2023 00:07:10 -0700 (PDT) Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-765ae938b1bso470382185a.0 for ; Tue, 25 Jul 2023 00:07:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690268830; x=1690873630; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yPXbPq7UJNuXZs4NkhlcqVblqJBzPRRpcv9Sz5K3wL8=; b=l8gMKYbquK7SXf1tgwe8R46+d2a9kE3r2Ch9uI66c/i1NUBEVmpreuPonDOu27qjCT 2mIIGBBb3KcL2FxekF3ekrUrQNyyOwNCwOYWNZbvKYepwvwXJhiHVSX9bROIylz4wn0a 57qBgnVSD/SVfC0HRDKMHKwkqIfwiaDMiwqUk1LDs8guHvuWwKey+C+XN7C35hQYssL7 Ir+ylxCKYZUL5vLwW+sH4CpqIfxFsB3Npx2+128J+V9x9nkbPrrqkz1OS+SqP/7KEKZT 66CldQy27RsSHChLZXfN6Wk/6kk6CnWlYEZYg+hdSu0alAa3e8YshcoL3MtENEJTCgGg FPng== X-Gm-Message-State: ABy/qLbF1h98+AqpWMr6cSFK1m1sBAu5MSpSMX2l/kwMLf7QugrK5Kje 6l3//G4q4zCq3b6jtWc1eTA= X-Received: by 2002:a05:620a:318b:b0:76a:dad9:8889 with SMTP id bi11-20020a05620a318b00b0076adad98889mr2441772qkb.43.1690268829790; Tue, 25 Jul 2023 00:07:09 -0700 (PDT) Received: from costa-tp.bos2.lab ([2a00:a040:199:8930:2c90:cb9e:b154:73dc]) by smtp.gmail.com with ESMTPSA id p9-20020a05620a112900b00767b24f68edsm3504384qkk.62.2023.07.25.00.07.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 00:07:09 -0700 (PDT) From: Costa Shulyupin To: Joe Perches , linux-kernel@vger.kernel.org (open list) Cc: Costa Shulyupin Subject: [PATCH] get_maintainer: strip long text in brackets from mail description Date: Tue, 25 Jul 2023 10:06:42 +0300 Message-ID: <20230725070642.2270207-1-costa.shul@redhat.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772376293413730850 X-GMAIL-MSGID: 1772377085530826918 assuming this text is optional, because truncated bracket causes error of git send-email: git send-email --to-cmd=get_maintainer.pl .... Unmatched () '(open list:CXLFLASH (IBM Coherent Accelerator Processor In...)' '' at /usr/libexec/git-core/git-send-email line 652. error: unable to extract a valid address from: linux-scsi@vger.kernel.org (open list:CXLFLASH (IBM Coherent Accelerator Processor In...) Signed-off-by: Costa Shulyupin --- scripts/get_maintainer.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index ab123b498fd9..8319694a9c2f 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -1252,6 +1252,7 @@ sub get_subsystem_name { my $start = find_starting_index($index); my $subsystem = $typevalue[$start]; + $subsystem =~ s/\(....*\)\s*//; if ($output_section_maxlen && length($subsystem) > $output_section_maxlen) { $subsystem = substr($subsystem, 0, $output_section_maxlen - 3); $subsystem =~ s/\s*$//;