From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751397AbaCaWG2 (ORCPT ); Mon, 31 Mar 2014 18:06:28 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:50223 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751073AbaCaWG1 (ORCPT ); Mon, 31 Mar 2014 18:06:27 -0400 Date: Mon, 31 Mar 2014 15:06:25 -0700 From: Andrew Morton To: Joe Perches Cc: Dan Carpenter , Andy Whitcroft , linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 1/2] checkpatch: Expand parenthesis alignment test to declarations, functions and assignments Message-Id: <20140331150625.ca937ea946da5ce619efe2cf@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-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 Mon, 31 Mar 2014 14:58:07 -0700 Joe Perches wrote: > Currently the parenthesis alignment test works only on > misalignments of if statements like > > if (foo(bar, > baz) > > Expand the test to find misalignments like: > > static inline int foo(int bar, > int baz) > > and > > foo(bar, > baz); > > and > > foo = bar(baz, > qux); > > Expand the $Inline keyword for __inline and __inline__ too. > Add $Inline to $Declare so it also matches "static inline ". I'm having trouble understanding what this patch actually does. Some little examples would be nice. I typed in this to play with: void foo(int a, int b) { } but I experienced playus interruptus akpm3:/usr/src/25> perl scripts/checkpatch.pl -f t.c Global symbol "$c90_Keywords" requires explicit package name at scripts/checkpatch.pl line 2162. Execution of scripts/checkpatch.pl aborted due to compilation errors. System is Ubuntu 12.04.4 (ish).