From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D99B3ED11B for ; Thu, 23 Jul 2026 10:55:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784804156; cv=none; b=RYy6IidGX0ANHxpf52ODy4L2h1j+lK4zMPScytp/GzPPx4vRWglxtGS/EulLopj7W1cQy/60L/iPFc1IKyqSCXN1W8jTTgq136ACNQA7ib43ya2Fa9Uv8fnfTtq/knp3RTFV6jgfrYM5A5694L/JhScNQCR7h1srfTpSFBtHvfI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784804156; c=relaxed/simple; bh=LkJu75nS7fdfLZdzTq8ozYeFrZLGF8BAhpT+HeFfRRs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sIa587OxONYkO9LwMwgHT/RYB2lddishjRcKQ5wyi9KhpoiPPVNrbYYpa58qsRgNw78Qt9+5CSsxvf2C56p98/S5hwiGrKeAkTqtAV+q2fFOJefIp9NObE3RYqv4FvVf7ulRTHqmHOVE2nS15dKTtb+h9FM3y4sByVBV/KBl+uA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Qq25YHlY; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Qq25YHlY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1784804154; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=95MyjK0GyoZijC85UAudvwJkXvnIwrwTSuvQ/adz3WM=; b=Qq25YHlYxgjqfNbiJ7GEnGhBvPp98qs7kdLDWtRa9L4OS/rkk+OVHFvSxDd12lInw+iI63 wwiNha+T3dDqYXHeWJLSKoxXWbjHqPxMJsj+jOW++iyv6H7bSdjXxr+stRYQ3sdbFMbt06 zYANH+EMU0p3lnUuYzArjuvyk4K0GIw= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-455-7FiRxdKAN6qWvT75a6oRJg-1; Thu, 23 Jul 2026 06:55:50 -0400 X-MC-Unique: 7FiRxdKAN6qWvT75a6oRJg-1 X-Mimecast-MFC-AGG-ID: 7FiRxdKAN6qWvT75a6oRJg_1784804149 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 334331805F09; Thu, 23 Jul 2026 10:55:49 +0000 (UTC) Received: from thuth-p1g4.redhat.com (unknown [10.44.32.74]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 531D01956053; Thu, 23 Jul 2026 10:55:46 +0000 (UTC) From: Thomas Huth To: Joe Perches Cc: linux-kernel@vger.kernel.org Subject: [PATCH] get_maintainer: Don't spam others in fallback mode if there is a maintainer Date: Thu, 23 Jul 2026 12:55:45 +0200 Message-ID: <20260723105545.294045-1-thuth@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 From: Thomas Huth The get_maintainer.pl script currently suggests to CC: people who contributed to a subfolder of a maintained subsystem, e.g.: $ scripts/get_maintainer.pl -f arch/arm64/include/asm/smp.h Catalin Marinas (maintainer:ARM64 PORT (AARCH64 ARCHITECTURE),commit_signer:1/1=100%) Will Deacon (maintainer:ARM64 PORT (AARCH64 ARCHITECTURE)) Thomas Huth (commit_signer:1/1=100%,authored:1/1=100%,added_lines:2/2=100%,removed_lines:2/2=100%) linux-arm-kernel@lists.infradead.org (moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)) linux-kernel@vger.kernel.org (open list) So if you contributed a single line to a subfolder of a maintained and active subsystem, you get regularly CC:-ed for all other changes to the corresponding file during the next year. That's quite excessive. Limit the fallback mode to files that are not maintained at all by removing the check for subfolders in the corresponding part of the code. Signed-off-by: Thomas Huth --- scripts/get_maintainer.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 16b80a700d4ac..ded73b9673eb9 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -938,8 +938,7 @@ sub get_maintainers { my $file_pd = ($file =~ tr@/@@); $value_pd++ if (substr($value,-1,1) ne "/"); $value_pd = -1 if ($value =~ /^(\.\*|\(\?:\.\*\))/); - if ($value_pd >= $file_pd && - range_is_maintained($start, $end) && + if (range_is_maintained($start, $end) && range_has_maintainer($start, $end)) { $exact_pattern_match_hash{$file} = 1; } -- 2.55.0