Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp612253imu; Sat, 17 Nov 2018 06:13:24 -0800 (PST) X-Google-Smtp-Source: AJdET5fW6YziCgP1XQ1Y5q4j2a8Mx/N7WXoKbHAkwGSZw4GtURx3dP2VCf6rV6CG3WjJsZTrYHmy X-Received: by 2002:a17:902:1103:: with SMTP id d3-v6mr14580076pla.249.1542464004828; Sat, 17 Nov 2018 06:13:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542464004; cv=none; d=google.com; s=arc-20160816; b=dsqrz2qCkioaX+o1LfRZz+kIXMzkaNLjgarDqbq73GfUcb/qLRP1XcptgMk924STs2 uVUtGOs6rw2FRkSmWGBN66howRgW0jzy8kNFBEkH9Yok82gJ4AU1KRlgF5WUyU0IaYIy 4a+q7vkl3nI0zQhVEHGTRbv16/EmuIo7XWCtuqIFnF0hQh3K8VoZTi044/Rl71fKkOix qFNiLldcZjV5koJ0WqdJ/mznde28Lx1w7y864gdTKFlqIJwXYmwatx3+0/1Z45FviYnY IJLSVIHneUhkoCVnyWED2iqrYD4xwASuL6vOr3tbrnUf47LAsp50b0gnfJfu0UoQDtdr 0J3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ccE9KJ63SN5kg+nHsLCTq6PzFrS0a1qadxxtnarMB+A=; b=FV1eFKmLKEm1EFFS9LYgjslk4jfnmCKZZd17ihZRPqV+tDUaMIag/NqZDHQtjgqu73 G+h6xJD/ySLXu59E8Wim8dQM36+MVj7BsHFiJcxJdIdne7jASnBiLsXfzmaWKZ6eCUvy qit92e4FCAh+mzL5MSf181WHPW4PIWvMTDTtHNSu+xuYrQwGGa5fJbdbMhkR+T8ow/Y4 zYQu2Rp9z0rDU9eidIIzv3W27WZuuNwbtePQMid9nyP3sm732qEAqO5Tsvbl5GtFwLYr RCZKa/Ckj/zMe1R8tKR2n4h6qwJiS3w7KXgv9LyRcGRfl2k3HpFtBQPsl4BQCfvWKBbA NXzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KI0eiwqz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o69-v6si41404105pfo.78.2018.11.17.06.13.09; Sat, 17 Nov 2018 06:13:24 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KI0eiwqz; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726414AbeKRA3U (ORCPT + 99 others); Sat, 17 Nov 2018 19:29:20 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:43749 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbeKRA3U (ORCPT ); Sat, 17 Nov 2018 19:29:20 -0500 Received: by mail-qk1-f194.google.com with SMTP id r71so42000565qkr.10 for ; Sat, 17 Nov 2018 06:12:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ccE9KJ63SN5kg+nHsLCTq6PzFrS0a1qadxxtnarMB+A=; b=KI0eiwqzIO+H7KxZEBVrNGuiabyCb4vaNnUqb+7JZC5Dd8AiJXLENowfogC0B8lRji s8Avfx4WocujLaDX9BRZoKsGbmPma3pOFNDU8AkXWOpcoKgvN0eyQ6Ahfv4VD7JYgA61 XZJTlGx9+I9lnl/8r/k0dAcb4KFkS4Np0Lhp4Y177cau2rrEy7TsKiph76vgisAH0EMU u2MZD0DyJbd2nNZGUF8GfWP85WYH2Zj1wye8BdtFesImo1PnwZkH6iCUT478+eWHdhNk tf5LjXCqyUNiQE3gJLmWMaPxU2vnfL5SafZgf+Ft6/fKmd2iecF9tKsib7Yh9EKyGQMO QZHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ccE9KJ63SN5kg+nHsLCTq6PzFrS0a1qadxxtnarMB+A=; b=Igf4NA2nDSFssvwqfUF3c1df2Qg0KPV7KetLRtw0vQtFWcFlRGvSSi88Y9vNRuSKQV DSixAGFku1c1IEUyCocfmIpRBm20csD3SpWQEXmTS9LKAxl0PBDfKJha7g7rkVRFWBfC DwkX+OQLJeA1J6vT79QyrbDDoic2RDS1tikK+aMbiw2eLFL3Rn+a7sccBIddcK29uOuj 8iROBawHyLylZ7ysOgp9W0kKt7vhHWI4VnaiDfMN3X8q0o39WHVrtYXWAcuf9rpDDndP 4RXs7Gqr4sWhMz/EXTWMbBlODKojXT6IpA+qFnoDseBnJY8ed4v79qhuS+U2Ld+t+pO2 dvFA== X-Gm-Message-State: AGRZ1gITDXBIUCfxNS0iO89JC/ZKvDZ3S4wZUv+wB6kVSNMF2GaSva2i Hh1xJpURzJMJe+NubhLAnYeexFmYknlg7i+GsxZq X-Received: by 2002:aed:3ecf:: with SMTP id o15mr14327817qtf.26.1542463951543; Sat, 17 Nov 2018 06:12:31 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: From: Rob Herring Date: Sat, 17 Nov 2018 08:12:18 -0600 Message-ID: Subject: Re: [Ksummit-discuss] [RFC PATCH 2/3] MAINTAINERS, Handbook: Subsystem Profile To: Joe Perches Cc: Jani Nikula , Julia Lawall , 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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