From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37740C2D0E4 for ; Tue, 17 Nov 2020 04:26:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DA78124671 for ; Tue, 17 Nov 2020 04:26:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726929AbgKQE06 (ORCPT ); Mon, 16 Nov 2020 23:26:58 -0500 Received: from smtprelay0156.hostedemail.com ([216.40.44.156]:59708 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726598AbgKQE05 (ORCPT ); Mon, 16 Nov 2020 23:26:57 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id C47CF182CED28; Tue, 17 Nov 2020 04:26:56 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: shock35_5b1437b2732e X-Filterd-Recvd-Size: 1534 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf17.hostedemail.com (Postfix) with ESMTPA; Tue, 17 Nov 2020 04:26:55 +0000 (UTC) Message-ID: <1b9c5353c6318cc7a4e013886012739e6627d82d.camel@perches.com> Subject: Re: [PATCH v3] checkpatch: add fix option for MAINTAINERS_STYLE From: Joe Perches To: Aditya Srivastava Cc: linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, lukas.bulwahn@gmail.com Date: Mon, 16 Nov 2020 20:26:54 -0800 In-Reply-To: <20201117040501.21914-1-yashsri421@gmail.com> References: <20201117040501.21914-1-yashsri421@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-11-17 at 09:35 +0530, Aditya Srivastava wrote: > Checkpatch expects entries in MAINTAINERS file in a specific order and > warns if the changes made do not follow the specified order. > > E.g., running checkpatch on commit b33bc2b878e0 ("nexthop: Add entry to > MAINTAINERS") reports this warning: > > WARNING: Misordered MAINTAINERS entry - list file patterns in > alphabetic order > +F: include/uapi/linux/nexthop.h > +F: include/net/netns/nexthop.h > > Provide a simple fix by swapping the unordered lines, if both the lines > are additions (start with '+') On second thought, nak. This fails when there are 3 consecutive misordered lines. SECTION F: c F: b F: a