From patchwork Sat Feb 11 12:14:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13137045 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 43E9FC636CC for ; Sat, 11 Feb 2023 12:16:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Vm1Ehbq0+2PWe7ztglaDqOJai1TdXIgeKwbcUkWa5jg=; b=0csgphq/davDlu reiusd//VkfHxdlpz8gvh22vBXTx85tRQv344hNMJNhwRKXL6RH2Fo3mJwYesk81swlu2wdk7Isuc 7hf+c+1uCte6UUTqcKyjO/GazM7qTjPdBzeY6CZjl1rxXWuU5819ppPgQlbfTVdVVW2a6Cend95fO kVU85SWCJn2LSvk+Fn7RretGrsgq3H1wfmKVIPXWHoJjstl/7vSITuG0wp1Cwu/YBR4LXM4kqUMc0 Lxad8scJmHuRfGsNSGi7d5zl0DOkNwI1wtMeR1eQSJbRi4p+diABApI6GLlmN0g9Zw/jaZf+6dK27 hhIOTeZfqmRCW1QjyNOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQomT-009PfN-DA; Sat, 11 Feb 2023 12:15:01 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pQomP-009Pew-Ea for linux-arm-kernel@lists.infradead.org; Sat, 11 Feb 2023 12:14:59 +0000 Received: by mail-wr1-x429.google.com with SMTP id bk16so7685618wrb.11 for ; Sat, 11 Feb 2023 04:14:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Yx4QveUkxsZ076CSy140ixdXzrbrRAsprIFkOwOHph8=; b=frRGdTqBZv/KsdKobxihqMiDzGE6yzyL6O4P/bithC+kcSrWbWHlVRvVaCcWtI47ie PsYGjy56QaKtblrUA7PFmyb57yZvWPzJ/i03UJrBVa5OWkyRcpfA71u97ZAu4OfVSHaV GNdnS8f80DPjyK5Tf6qb1K0KBuOlciDjx7u3VaqevispGEWgy3L5IvqF7jqT9+S6sdjl 2HlSJlqy0XgTo5SVNUHyANUzLH5D7woVFh6jD14llKkOk0wiMFHwlPWD9qnEjJX/eJSM hRCthdwnTN0RnmKnDurb+ybb4lQfVVowQgOmrF1jD8dm03rDYcP/1axGjKa1Q5SUx2Px ZtIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Yx4QveUkxsZ076CSy140ixdXzrbrRAsprIFkOwOHph8=; b=KckGgasV7jZZExQqP/Bt1Xi8qMxxlP60y5MnOgLDqda0V894Xi9mq/W3QMPP3b4Lvq /1bG8osubU9lTsTtlrc+sfSluJV6FmLdnaJcifFVnTdlNO4jTi4Q5ij5i5f5n7CcEdlL ceH5AJnx3PY065XBXJsYaP1xLeqehupdN9D3kGNAKNnXZ5H1FQUHlXaGulYXRI7KTK3V uL+A+GDyxKpQsOcHM6csY8M1+xmFxZURev3Rh4RbRixSvVOLyFjzLR1G7jwMkrFSjJKH dAZHIm5f9FPZVfpBGysRDiKzh95q2nOKmxKTKxPwTScKCEro5JlNRLq6FZRgu/H9qI3F mlbQ== X-Gm-Message-State: AO0yUKXRtKZgiW6Y4C6ZR0okLR/GalCOt7AGFUej+AnGY0gYhDJtJIvG V6/oMkjzkSFbX55PuyvVv9ldAA== X-Google-Smtp-Source: AK7set/Aj2QihFd7CLc49bJP+9LWC9eUVOuAma/o3Sf7yPxUcDQ0gUmtylPSPvsMTGJoLzFpyH2x+w== X-Received: by 2002:adf:cf0d:0:b0:2c5:4ccc:a770 with SMTP id o13-20020adfcf0d000000b002c54ccca770mr3055463wrj.7.1676117695014; Sat, 11 Feb 2023 04:14:55 -0800 (PST) Received: from krzk-bin.. ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id h12-20020adff4cc000000b002be505ab59asm6041645wrp.97.2023.02.11.04.14.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 04:14:54 -0800 (PST) From: Krzysztof Kozlowski To: Arnd Bergmann , Olof Johansson , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Joe Perches , linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Shawn Guo , Krzysztof Kozlowski Subject: [PATCH] get_maintainer: add email addresses from dts files Date: Sat, 11 Feb 2023 13:14:41 +0100 Message-Id: <20230211121441.64359-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230211_041457_561556_A09143A5 X-CRM114-Status: GOOD ( 12.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The DTS/DTSI files represent hardware description for Linux kernel, which is necessary to properly recognize and configure hardware by Linux. DTS is usually created by people having the actual hardware and having interest in keeping it in good shape. Such people can provide review (they might have board schematics) and testing. Unfortunately they mostly do not appear in MAINTAINERS file. Adding per-DTS entries to MAINTAINERS would quickly make it bloated (hundreds of new per-DTS entries). On the other hand there is no point in CC-ing every Copyright email appearing in files, because it might be outdated. Add new in-file pattern for storing maintainers dedicated to specific boards: Maintainer: John Smith Suggested-by: Joe Perches Suggested-by: Shawn Guo Reviewed-by: Krzysztof Kozlowski Signed-off-by: Krzysztof Kozlowski --- This is rework of earlier approach: Link: https://lore.kernel.org/r/20210809080204.8381-1-shawnguo@kernel.org --- scripts/get_maintainer.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index ab123b498fd9..f02a2a80c3bc 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -445,6 +445,17 @@ sub maintainers_in_file { my @poss_addr = $text =~ m$[A-Za-zÀ-ÿ\"\' \,\.\+-]*\s*[\,]*\s*[\(\<\{]{0,1}[A-Za-z0-9_\.\+-]+\@[A-Za-z0-9\.-]+\.[A-Za-z0-9]+[\)\>\}]{0,1}$g; push(@file_emails, clean_file_emails(@poss_addr)); } + + # Match "Maintainer: email" entries only in DTS sources + if (-f $file && ($email_file_emails || $file =~ /\.dtsi?$/)) { + open(my $f, '<', $file) + or die "$P: Can't open $file: $!\n"; + my $text = do { local($/) ; <$f> }; + close($f); + + my @poss_addr = $text =~ m$Maintainer: [A-Za-zÀ-ÿ\"\' \,\.\+-]*\s*[\,]*\s*[\(\<\{]{0,1}[A-Za-z0-9_\.\+-]+\@[A-Za-z0-9\.-]+\.[A-Za-z0-9]+[\)\>\}]{0,1}$g; + push(@file_emails, clean_file_emails(@poss_addr)); + } } #