Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2809802rdh; Wed, 27 Sep 2023 13:27:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH48TJNZkSqZI19ig0BcV0gd50Qa0jZ8PTWpNzPtogFJ9oO21T1GjW5oGDtitSz+J6UqrJZ X-Received: by 2002:a17:90b:3846:b0:26d:14cd:fb1a with SMTP id nl6-20020a17090b384600b0026d14cdfb1amr2881541pjb.23.1695846452483; Wed, 27 Sep 2023 13:27:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695846452; cv=none; d=google.com; s=arc-20160816; b=J/nMc3iWo6Gala9cqyWonB53u66yqsXC/neywKm+K25vGPXAewDpKY2JlPp6xiSQZt Dd56KpYq9/Q7vS6TqMZkGRCxUKGPaoBBQ0AQrejHOkXEcHx0MkQ31GusKVMAB873p5Co +Iyrw3ZxrVoSbuM4mVykRGotZRyXHhjVFZjRheAJXZ3r8gTZdbSOhwHraMTeBlmMvFKf x/tLllPZomnsHFhPG+cdGjvWZXz2L6VQidZRHV9WBT8y8HLaa0UzF0v/uai71L5wG5Ac KzgTVKH+YLNVsI3tComCjWYRrimPLIIZKxEKMOlUMS5CAjt75IXkxmkvzyOMloYVgHwU 5Tbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=YW9LmQzhv8QN0eCMLvE0yw4U//iJqrEhXez2aVsYhvg=; fh=UMTCO6+dYwdpm3SWA6lKrSboi+6n0870mqpORabAgy4=; b=oujWfNsr4C52DocvzRj3GCoWnPsH9syMKGaXIWno7oPR9V+pKNup26HBlzAduXWeTT 6TdPh4ijqq7CDyczB8uPwahqVDh+5raCNd6G+RaXvQU2SqXM4ocFaFMYNJkT784eEGqR lYrSuvWAYU2Q88XoZFvfX/4xNEucpNZBnR/UJk4HkgRJvTKs1553dwJFBKk6O20YEmd9 /JdkORTTdhMaF0Zu85q8dKP/HYVvkSmhxJsL2eVW/HEZhh47+dk/O3a9947oqksiI0tx IW51uZBce4VlhkW9kJtZRVCGVg23XZjtQ57/bOb0rfGlTbsXLFZNnIzTOsIliY12zzvF nTZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id mu16-20020a17090b389000b002764afcf7a1si11285977pjb.106.2023.09.27.13.27.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 13:27:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 164EA80E8FED; Wed, 27 Sep 2023 12:34:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbjI0TeC convert rfc822-to-8bit (ORCPT + 99 others); Wed, 27 Sep 2023 15:34:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbjI0Tdz (ORCPT ); Wed, 27 Sep 2023 15:33:55 -0400 Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D1E0198; Wed, 27 Sep 2023 12:33:53 -0700 (PDT) Received: from omf10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 3FDD240E1A; Wed, 27 Sep 2023 19:33:51 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA id 4324135; Wed, 27 Sep 2023 19:33:47 +0000 (UTC) Message-ID: <60df84ba0615a26b1d0523037961fb1e5154fb43.camel@perches.com> Subject: Re: [PATCH 3/3] get_maintainer: add patch-only pattern matching type From: Joe Perches To: Kees Cook , Justin Stitt Cc: linux-kernel@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , Jakub Kicinski , Krzysztof Kozlowski , geert@linux-m68k.org, gregkh@linuxfoundation.org, workflows@vger.kernel.org, mario.limonciello@amd.com Date: Wed, 27 Sep 2023 12:33:45 -0700 In-Reply-To: <202309270913.911E51C@keescook> References: <20230927-get_maintainer_add_d-v1-0-28c207229e72@google.com> <20230927-get_maintainer_add_d-v1-3-28c207229e72@google.com> <202309270913.911E51C@keescook> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Stat-Signature: wzzjqh7dki85yc9js1zi79rtajcecaoj X-Rspamd-Server: rspamout04 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Rspamd-Queue-Id: 4324135 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1+AdXi6X+8sFMUeeQydWXCeSqTe2H6e5M4= X-HE-Tag: 1695843227-82629 X-HE-Meta: U2FsdGVkX1/UULqkEz6aLDLy5IPrQ9XTIuN8jtw1LSnLV1B1wOA4djPYSikWYcSlAyjOySNHDvEbw1indOrjOIIWvvQ1KUIDFJpPsnnfrOi2JUIfb2bw/UQyknwzqXs837T62tM0FkaSKX94YDovP+ZrUtw9AHuPGjpxC5EGfkbSs/3N2/OnoRS/MX8lASbhF0wwBUL443I/Yvcq02b3oufTzIBwdaylzKoyjZJLYbWGk9ai4h/8EcL5BNsb3Ooa4m5L8/RO0n7CQOl0wFVUQT27cssvFPw0NuTFRKOYaZLAv3xBXExg4N6+h9mAUKcWH8x0LVXgNBmYsoVXyT+hknfFnQFMou6W7GWq8e+Cf2NQY2+e2egWHWM9O97AJl57mZeOoOWVDhZa9fdqUKifXgZtUU9wGUOzPHRNJJKPoWfYc2NJ6gUaG7fa0pqXb598 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 27 Sep 2023 12:34:08 -0700 (PDT) On Wed, 2023-09-27 at 09:15 -0700, Kees Cook wrote: > On Wed, Sep 27, 2023 at 03:19:16AM +0000, Justin Stitt wrote: > > Add the "D:" type which behaves the same as "K:" but will only match > > content present in a patch file. > > > > To illustrate: > > > > Imagine this entry in MAINTAINERS: > > > > NEW REPUBLIC > > M: Han Solo > > W: https://www.jointheresistance.org > > D: \bstrncpy\b > > > > Our maintainer, Han, will only be added to the recipients if a patch > > file is passed to get_maintainer (like what b4 does): > > $ ./scripts/get_maintainer.pl 0004-some-change.patch > > > > If the above patch has a `strncpy` present in the subject, commit log or > > diff then Han will be to/cc'd. > > > > However, in the event of a file from the tree given like: > > $ ./scripts/get_maintainer.pl ./lib/string.c > > > > Han will not be noisily to/cc'd (like a K: type would in this > > circumstance) > > > > Note that folks really shouldn't be using get_maintainer on tree files > > anyways [1]. > > > > [1]: https://lore.kernel.org/all/20230726151515.1650519-1-kuba@kernel.org/ > > As Greg suggested, please drop the above paragraph and link. Then this > looks good to me. > > I would immediately want to send this patch too, so please feel free to > add this to your series (and I bet many other hints on "git grep 'K:.\\b'" > would want to switch from K: to D: too): > > diff --git a/MAINTAINERS b/MAINTAINERS [] > @@ -5057,7 +5057,7 @@ F: Documentation/kbuild/llvm.rst > F: include/linux/compiler-clang.h > F: scripts/Makefile.clang > F: scripts/clang-tools/ > -K: \b(?i:clang|llvm)\b > +D: \b(?i:clang|llvm)\b etc... My assumption is that the K: --file use is just unnecessary and it'd be better to only use the K: lookup on patches. (and I've somehow stuffed up the receiving side of my email configuration so please ignore any emails to me that bounce for a while)