Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756291Ab2BUXQQ (ORCPT ); Tue, 21 Feb 2012 18:16:16 -0500 Received: from perches-mx.perches.com ([206.117.179.246]:46175 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752337Ab2BUXQP (ORCPT ); Tue, 21 Feb 2012 18:16:15 -0500 Message-ID: <1329866171.5143.16.camel@joe2Laptop> Subject: RE: [PATCH] checkpatch: Add some --strict coding style checks From: Joe Perches To: "Allan, Bruce W" Cc: David Miller , Andy Whitcroft , Andrew Morton , "andrei.emeltchenko.news@gmail.com" , "linville@tuxdriver.com" , "linux-wireless@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Tue, 21 Feb 2012 15:16:11 -0800 In-Reply-To: <804857E1F29AAC47BF68C404FC60A18429B3EE@ORSMSX102.amr.corp.intel.com> References: <20120221151435.GA19354@tuxdriver.com> <20120221.144417.1445117001833888214.davem@davemloft.net> <20120221.154053.2103818562080068513.davem@davemloft.net> <1329857959.5143.11.camel@joe2Laptop> <804857E1F29AAC47BF68C404FC60A18429B3EE@ORSMSX102.amr.corp.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 949 Lines: 29 On Tue, 2012-02-21 at 22:09 +0000, Allan, Bruce W wrote: > This appears to falsely complain about parenthesis alignment in > conditional statements with multiple opening parentheses. For > example, these will report a check condition: > > if (test_and_set_bit(nr, > addr)) > baz(); > > if (!(func_a(x) && > func_b(y))) > baz(); > > Assuming my stupid mailer will screw up the indentation above, the 'a' > in addr in the first example is meant to be immediately below the 'n' > in nr, and the two 'f's in func_* are meant to be vertically lined up > in the second example. You're right, thanks for testing. The logic I used is too trivial. Andrew, please ditch this one for awhile. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/