From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761741AbcKDLDQ (ORCPT ); Fri, 4 Nov 2016 07:03:16 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:56876 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761484AbcKDLDO (ORCPT ); Fri, 4 Nov 2016 07:03:14 -0400 Subject: Re: Coding Style: Reverse XMAS tree declarations ? (was Re: [PATCH net-next v6 02/10] dpaa_eth: add support for DPAA Ethernet) To: Joe Perches , David Miller , , Andrew Morton , "Jonathan Corbet" References: <1478117854-8952-1-git-send-email-madalin.bucur@nxp.com> <1478117854-8952-3-git-send-email-madalin.bucur@nxp.com> <20161103.155816.642712588084106823.davem@davemloft.net> <1478242438.1924.31.camel@perches.com> CC: , , , , , , From: Lino Sanfilippo Message-ID: <581C6A7D.8030704@marvell.com> Date: Fri, 4 Nov 2016 12:01:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <1478242438.1924.31.camel@perches.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-04_02:,, signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611040209 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 04.11.2016 07:53, Joe Perches wrote: > > CHECK:REVERSE_XMAS_TREE: Prefer ordering declarations longest to shortest > #446: FILE: drivers/net/ethernet/ethoc.c:446: > + int size = bd.stat >> 16; > + struct sk_buff *skb; > should not this case be valid? Optically the longer line is already before the shorter. I think that the whole point in using this reverse xmas tree ordering is to have the code optically tidied up and not to enforce ordering between variable name lengths. Regards, Lino