Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755555Ab2BUUiU (ORCPT ); Tue, 21 Feb 2012 15:38:20 -0500 Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]:55950 "EHLO mail-lpp01m010-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753424Ab2BUUiS convert rfc822-to-8bit (ORCPT ); Tue, 21 Feb 2012 15:38:18 -0500 MIME-Version: 1.0 In-Reply-To: <20120221.144417.1445117001833888214.davem@davemloft.net> References: <20120220203740.GD6740@tuxdriver.com> <20120220.192324.498901675497866305.davem@davemloft.net> <20120221151435.GA19354@tuxdriver.com> <20120221.144417.1445117001833888214.davem@davemloft.net> Date: Tue, 21 Feb 2012 22:38:16 +0200 Message-ID: Subject: Re: pull request: wireless 2012-02-20 From: Andrei Emeltchenko To: David Miller Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3171 Lines: 84 Hi David, On Tue, Feb 21, 2012 at 9:44 PM, David Miller wrote: > From: "John W. Linville" > Date: Tue, 21 Feb 2012 10:14:36 -0500 > >> On Mon, Feb 20, 2012 at 07:23:24PM -0500, David Miller wrote: >>> From: "John W. Linville" >>> Date: Mon, 20 Feb 2012 15:37:40 -0500 >>> >>> > Here is another batch of fixes intended for 3.3. ?Most of the fixes >>> > this time are for Bluetooth. >>> >>> Pulled, but please read the bluetooth changes more carefully in the >>> future, there were a lot of coding style errors introduced this >>> time around. >> >> I pinged Johan about this, and he tells me that he spoke to Marcel >> as well. ?They were a bit unsure about the issue. ?Is your concern >> primarily about some excessive tabbing for indentation of parameters >> and such? > > So you actually looked at the changes you pushed to me and you are > telling me you personally can't find anything that looks like garbage? > > Really? ?Do I really have to point out such obvious stuff like this? > Are you serious? > > Look at ca0d6c7ece0e78268cd7c5c378d6b1b610625085 ("Bluetooth: Add > missing QUIRK_NO_RESET test to hci_dev_do_close") > > You tell me what the heck you think of this thing. > > - ? ? ? if (!test_bit(HCI_RAW, &hdev->flags)) { > + ? ? ? if (!test_bit(HCI_RAW, &hdev->flags) && > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? test_bit(HCI_QUIRK_NO_RESET, &hdev->quirks)) { > > That's disgusting, it jumps off the screen and says "Hello, I am ugly > as sin". ?How in the world can you miss something like this? ?Four > TABs on the second line? ?Why? ?I can't believe we even have to discuss > something like this, seriously. Sorry did we understand wrong text of Linux coding style? Or do we need right interpretation of it? http://www.kernel.org/doc/Documentation/CodingStyle Statements longer than 80 columns will be broken into sensible chunks. Descendants are always substantially shorter than the parent and are placed substantially to the right. The same applies to function headers with a long argument list. Long strings are as well broken into shorter strings. The only exception to this is where exceeding 80 columns significantly increases readability and does not hide information. void fun(int a, int b, int c) { if (condition) printk(KERN_WARNING "Warning this is a long printk with " "3 parameters a: %u b: %u " "c: %u \n", a, b, c); else next_statement; } > > Commit 6e1da683f79a22fafaada62d547138daaa9e3456 ("Bluetooth: l2cap_set_timer > needs jiffies as timeout value"): > > - ? ? ? ? ? ? ? __set_chan_timer(chan, L2CAP_DISC_REJ_TIMEOUT); > + ? ? ? ? ? ? ? __set_chan_timer(chan, > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? msecs_to_jiffies(L2CAP_DISC_REJ_TIMEOUT)); > > You can't see that mis-tabbed thing on the second new line? ?Really? Are those lines longer then 80 characters? Otherwise same applies here. Regards, Andrei -- 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/