Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp766386imu; Sat, 17 Nov 2018 09:06:00 -0800 (PST) X-Google-Smtp-Source: AJdET5f7cLDaZTD7mO1k77TutQI3s2mNu4RMbl/h3fLmA7MKC4cY0iQ7DSOIleryVtyJc3PpwsX2 X-Received: by 2002:a63:d604:: with SMTP id q4mr13999259pgg.175.1542474360150; Sat, 17 Nov 2018 09:06:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542474360; cv=none; d=google.com; s=arc-20160816; b=H58IpKPG3vg2w9aWXOfxa3ns2bmpJY58D+Drg48K1HDb3oT5r4Rh3eZ3WT9zDfDa7t xxqH17yjGLrNz/ACqpfvSzhxMvFGu3NO3FVWLxdHR5RsspINJaUPf+o0nFwIApAm8zE2 qXWCaMtQESfBHfeYbll92FrhBCA6T5Idw4pW/OdHPVqCFVoIlxBQgtQWT8Yw63lrJX6B qG34oJKM94WueaFO+pE6rPNhrDnqBXn5LKTU6T75tAz87Cy/NOr1oyjT/gmWMRZ9N/qb Atnq55yH27y817mJO7YH0vxE2OSZSMuOtSdiwkGvAXOkF/fMhdri62YxO3i2bie0DJEY 7oJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=oNT/vzVdPNl/I8fF6542p7Q6j7WCc+sUy06dfzGuAMA=; b=dVJPsgPq3EMJERnjQsUA9hUsKRgvRQZ7hzLvIfNbkJ/rrgaxvsly+46VrErwTH3cIf ybQp2ANrn6LqIeV+ym9vk6QAwrBeAkrU9J7Uhn9b6UsuHlUI2aS9nTp4H1IEV8sLjgFr 7OsyJrWo/n6525aT2rH1WQHVB5IMhN7+oLiUjKldPq7/1qsMICpPrn7SRtWIxSnJpeyb 7AJ6guV1DyWJG3Aa4VznYlCA4Ny6FgXWRzKTaGyIJldTq58+1liI8Qnke5eG9JaVJZ2f TvdN7eGGbwWY9CmcQhKP5MowQSELCI2UWxPq1FuyXCuXiEIFmb7l2QXQydO8arhn6e/D gxKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2si9842103pgh.474.2018.11.17.09.05.44; Sat, 17 Nov 2018 09:06:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726625AbeKRDVH (ORCPT + 99 others); Sat, 17 Nov 2018 22:21:07 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:23856 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726311AbeKRDVH (ORCPT ); Sat, 17 Nov 2018 22:21:07 -0500 X-IronPort-AV: E=Sophos;i="5.56,245,1539640800"; d="scan'208";a="285848619" Received: from abo-186-120-68.mrs.modulonet.fr (HELO hadrien) ([85.68.120.186]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Nov 2018 18:03:46 +0100 Date: Sat, 17 Nov 2018 09:03:46 -0800 (PST) From: Julia Lawall X-X-Sender: jll@hadrien To: Rob Herring cc: Joe Perches , Jani Nikula , Geert Uytterhoeven , ksummit-discuss@lists.linuxfoundation.org, linux-nvdimm , vishal.l.verma@intel.com, "linux-kernel@vger.kernel.org" , Dmitry Vyukov , Greg Kroah-Hartman , Mauro Carvalho Chehab , stfrench@microsoft.com, "Tobin C. Harding" Subject: Re: [Ksummit-discuss] [RFC PATCH 2/3] MAINTAINERS, Handbook: Subsystem Profile In-Reply-To: Message-ID: References: <154225759358.2499188.15268218778137905050.stgit@dwillia2-desk3.amr.corp.intel.com> <154225760492.2499188.14152986544451112930.stgit@dwillia2-desk3.amr.corp.intel.com> <878t1tgpk8.fsf@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 17 Nov 2018, Rob Herring wrote: > On Fri, Nov 16, 2018 at 11:57 AM Joe Perches wrote: > > > > On Fri, 2018-11-16 at 14:44 +0200, Jani Nikula wrote: > > > I quickly cooked up this script to produce the top-5 commit prefixes for > > > the given files over the arbitrary last 200 commits. It'll give you a > > > pretty good idea if you're even close. > > > > > > --- > > > #!/bin/sh > > > # usage: subject-prefix FILE [...] > > > # show top 5 subject prefixes for FILEs > > > > > > git log --format=%s -n 200 -- "$@" |\ > > > grep -v "^Merge " |\ > > --no-merges in git log can replace this line. > > > > sed 's/\(.*\):.*/\1/' |\ > > > sort | uniq -c | sort -nr | sed 's/ *[0-9]\+ //' |\ > > > head -n 5 > > > --- > > > > > > Someone who knows perl could turn that into a checkpatch check: See if > > > the patch subject prefix is one of the top-5 for all files changed by > > > the patch, and ask the user to double check if it isn't. Or some > > > heuristics thereof. > > > > This won't work when a patch contains multiple files > > from different paths, or even multiple files from a > > single driver. > > Different paths is often, but not always a sign that patches may need > to be split up. Maybe that is something checkpatch should point out. Between v4.0 and v4.19, 18% of commits touch multiple .c files. 35% of commits touch multiple files in general. julia > > > Perhaps it's better to use a generic mechanism like > > > > basename $(dirname $filename): > > > > with some exceptions and add an override patch subject > > grammar to appropriate various sections of MAINTAINERS. > > Perhaps just use the script as a starting point to populate > MAINTAINERS as it may never be that accurate. > > > I also think it's better to use a separate script like > > scripts/spdxcheck.py and tie any necessary checkpatch > > use to that script. > > Yes, checkpatch is getting pretty unwieldy. > > Rob >