From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753827Ab2D1RH6 (ORCPT ); Sat, 28 Apr 2012 13:07:58 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:42883 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752447Ab2D1RH4 (ORCPT ); Sat, 28 Apr 2012 13:07:56 -0400 Message-ID: <1335632874.4191.8.camel@joe2Laptop> Subject: Re: [PATCH EDACv16 1/2] edac: Change internal representation to work with layers From: Joe Perches To: Borislav Petkov Cc: Mauro Carvalho Chehab , Linux Edac Mailing List , Linux Kernel Mailing List , Aristeu Rozanski , Doug Thompson , Mark Gross , Jason Uhlenkott , Tim Small , Ranganathan Desikan , "Arvind R." , Olof Johansson , Egor Martovetsky , Chris Metcalf , Michal Marek , Jiri Kosina , Dmitry Eremin-Solenikov , Benjamin Herrenschmidt , Hitoshi Mitake , Andrew Morton , Niklas =?ISO-8859-1?Q?S=F6derlund?= , Shaohui Xie , Josh Boyer , linuxppc-dev@lists.ozlabs.org Date: Sat, 28 Apr 2012 13:07:54 -0400 In-Reply-To: <20120428091621.GE26065@aftab.osrc.amd.com> References: <1335289087-11337-1-git-send-email-mchehab@redhat.com> <1335291342-14922-1-git-send-email-mchehab@redhat.com> <20120427133304.GE9626@aftab.osrc.amd.com> <4F9ADCE3.2030506@redhat.com> <20120428091621.GE26065@aftab.osrc.amd.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 On Sat, 2012-04-28 at 11:16 +0200, Borislav Petkov wrote: > On Fri, Apr 27, 2012 at 02:52:35PM -0300, Mauro Carvalho Chehab wrote: > > > All those local variables should be sorted in a reverse christmas tree > > > order: > > > > > > u32 this_is_the_longest_array_name[LENGTH]; > > > void *shorter_named_variable; > > > unsigned long size; > > > int i; > > > > > > ... > > > > Why? There's nothing at the CodingStyle saying about how the vars should > > be ordered. If you want to enforce some particular order, please do it > > yourself, but apply it consistently among the entire subsystem. > > First of all, this way it is more readable. Not in my opinion, and blindly using "reverse christmas tree" can separate variables that should be declared together.