Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4110165rwo; Tue, 25 Jul 2023 00:17:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlHRTVDO29inob/3cnsbr3oGd3pDAFO1Exbv/L4F1HqlXoAH34evMvm1p+5v7wek/TraIkWp X-Received: by 2002:a17:907:2bd7:b0:94e:4489:f24d with SMTP id gv23-20020a1709072bd700b0094e4489f24dmr12905790ejc.61.1690269460763; Tue, 25 Jul 2023 00:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690269460; cv=none; d=google.com; s=arc-20160816; b=Sa9JLtKTFwTIv8sGW4cUjgcgwA2D0cXVk+6ojAAVe1QutpGnNGwJXCkg8CnHnCRp1i dxA1brfHYI2QQF/cpGIxMmotttBoEPR1LIrVS1yUN4r9fnyOk4DJNo1193hfA/V7TiTc xaTydK6/hXjtEyDRZHTU2E6GS0WboX1h5A61hFmOiIZIz0eoR6E4HBN4wgzTpTNmMl/A 2tvAgs39wdscpG+L8aiPvb+dOXZBhi6UFvhyG/mYUIijCTig4tBkgLqtYm3rYBU9mnB3 WBdkNrJ7AdtPLg/K/38BcXNEbQHlSOxF3kaErdbXzfy9UJWxBGLk/KsxbMaS+UKE2onc trjw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a19-20020a1709066d5300b0098debb6fa67si7343041ejt.495.2023.07.25.00.17.16; Tue, 25 Jul 2023 00:17:40 -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 S231381AbjGYHHb (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 Content-Transfer-Encoding: 8bit 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 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*$//; -- 2.41.0