Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp332955imu; Mon, 19 Nov 2018 23:29:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/VXKncIOcV5E6OixN8W3IV/xTHti4wIpFrBhYGcsyHD6JWCvwoPGLAdt0dnkuOO0foCrVUS X-Received: by 2002:a17:902:b401:: with SMTP id x1-v6mr1080416plr.237.1542698980519; Mon, 19 Nov 2018 23:29:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542698980; cv=none; d=google.com; s=arc-20160816; b=Rq5dBLo3OQapB0CadRQGPWFc5alTTxDvV9cUsOAgV0sZTKpyvYgwFdY3aJNnG5HqMN z84yPeSBZ5PidfHusfIjwoJZaZ66/yJ7KjlFEe0vwT2JX9HhkUDzslkM3UOYca7ecCCO eYf0MNIoIuOFMe9+KMRjdQvdBHESXBNO/nXDD9WibCAk/tYmhhUkF3BPtkx4MGbZTxFM NU2TpDE74AgSW6St0L23/vUqa3tIfNuG3y/vRfFxsN/caS1AwI4TrLN8gOyuPjVa+Hi4 YfPgPKi2lukEc4oDMqZlD1UJ4jhPUwYFXEs2Wb1MRzVbWYhoF4u7+xYITGoPJUdLxkuH xfnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=0/wg1dgndVKyb294UXjMdF8DhJl9r0LT0kWrOSoOVPs=; b=e9SUndCrG1oMw5/yh9z6/T6yzmUwqCH+k3BBtj0aK/Sn4CFDmHd23MIJeeZQcY2hZN 9qM3g5HecHTeGZgfpCpWZXiBKIPa4154aWZ5fAanjgkzMil1pc+6TRggjlzy9RI0VqkD VbzQsYJeENNBYCajuFzIfs5d759U3fX1EOq/jrC1qsLtCa1ggIe4F8J3cX4VfLaaG1KA yXL5MAWljR4ODSvt/6Vc6s2Nxu1MQmOXxSv9R1pfq4xwh/Bt5AJk2Fb/2eHn0kp9WSIs 2oI6/vyg+8bimpd8oHzyYEDa4h9SbTs94iPiSmNsM9UOBOtRFol9ysvWNL2vPba5A6aN 1bWg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c132si30136168pga.597.2018.11.19.23.29.24; Mon, 19 Nov 2018 23:29:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732842AbeKTRz5 (ORCPT + 99 others); Tue, 20 Nov 2018 12:55:57 -0500 Received: from mga07.intel.com ([134.134.136.100]:50623 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbeKTRz5 (ORCPT ); Tue, 20 Nov 2018 12:55:57 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Nov 2018 23:28:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,256,1539673200"; d="scan'208";a="109595786" Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.72.61]) by fmsmga001.fm.intel.com with ESMTP; 19 Nov 2018 23:28:14 -0800 From: Jani Nikula To: Joe Perches , Julia Lawall , Geert Uytterhoeven Cc: ksummit-discuss@lists.linuxfoundation.org, "linux-nvdimm\@lists.01.org" , vishal.l.verma@intel.com, Linux Kernel Mailing List , stfrench@microsoft.com, Greg KH , Mauro Carvalho Chehab , Dmitry Vyukov , "Tobin C. Harding" Subject: Re: [Ksummit-discuss] [RFC PATCH 2/3] MAINTAINERS, Handbook: Subsystem Profile In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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> Date: Tue, 20 Nov 2018 09:28:46 +0200 Message-ID: <875zwsgqc1.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 16 Nov 2018, 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 " |\ >> 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. *shrug* You can give it multiple files as argument, and it'll give you an approximation of what the prefix could be, whether you're way off or not. Close enough at least for the single driver case. Obviously not perfect, but hey, it took me all of five minutes to write that. ;) BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center