From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753333AbdIDIDH (ORCPT ); Mon, 4 Sep 2017 04:03:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:49837 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753259AbdIDIDF (ORCPT ); Mon, 4 Sep 2017 04:03:05 -0400 Date: Mon, 4 Sep 2017 10:03:01 +0200 From: Jean Delvare To: Joe Perches Cc: Andy Whitcroft , Andrew Morton , LKML Subject: Re: [PATCH 0/3] Add missing types to checkpatch.pl --list-types Message-ID: <20170904100301.4e7b1907@endymion> In-Reply-To: <1504393085.31325.3.camel@perches.com> References: <20170902175111.2fcd9e85@endymion> <1504369529.31325.1.camel@perches.com> <20170902211358.560ab0dc@endymion> <20170902230315.724835b5@endymion> <1504393085.31325.3.camel@perches.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 02 Sep 2017 15:58:05 -0700, Joe Perches wrote: > On Sat, 2017-09-02 at 23:03 +0200, Jean Delvare wrote: > > Oh, btw, is there any purpose in listing a number in front of each > > type? > > Not really. I did that because I wanted a header > and because I had no idea how many of those types > existed and I was too lazy to count. Given the intended audience of the script, I think "| wc -l" is the way to answer that question. > > It makes it look like one can pass that number instead of the > > type name, however it doesn't work, and I don't think it should as the > > numbering isn't stable and could change with any update of the script. > > True. > > > Can't we simplify the output and simply print the list of type names? > > If you want. Patch coming. -- Jean Delvare SUSE L3 Support