Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753496AbdCAWJ4 (ORCPT ); Wed, 1 Mar 2017 17:09:56 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33605 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753292AbdCAWJv (ORCPT ); Wed, 1 Mar 2017 17:09:51 -0500 Subject: Re: [PATCH] hid: usbhid: usbkbd: fix checkpatch.pl issues To: Joe Perches , Dmitry Torokhov References: <48d55583-6f2d-cfda-c6dd-0e789f4bf6f1@gmail.com> <20170301181628.GD30349@dtor-ws> <3c67c4db-9b59-82f1-9406-3dfdb2ac0a48@gmail.com> <1488401182.20731.11.camel@perches.com> Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org From: Avraham Shukron Message-ID: Date: Wed, 1 Mar 2017 22:55:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1488401182.20731.11.camel@perches.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1680 Lines: 51 On 01/03/17 22:46, Joe Perches wrote: > On Wed, 2017-03-01 at 21:59 +0200, Avraham Shukron wrote: >>> >>> This kind of change is definitely not helpful. The original table was >>> Nx16, you converted it to Nx14. Why do you think original table used 16 >>> columns? >>> >>> Regardless, it's a very old driver, just let it be. >>> >>> Thanks. >>> >> >> I can make it Nx8 :) >> >> Seriously now - I don't understand what is so wrong with checkpatch fixes? > > Some say is makes following logical changes more difficult. > git blame, etc... I'm not a big adherent of that though. > >> I'm a new to kernel development, and the natural place to start is to do some >> coding style fixes. >> I thought fixing a driver that I actually use daily will be more satisfying. >> Why driver being old is a good reason to ignore the coding style conventions? > > The space after comma rule _should_ be broken when > alignment is more obvious. The existing code is just fine. > > Conventions are just that. It's OK to be unconventional. > > It's better to know when to follow and when not to follow > those conventions. > > checkpatch messages should be considered guides and not > dicta that must be followed to the last letter. > > To me, the rest of the patch was OK though. > > If you want to learn the kernel patch process, modifying files > in drivers/staging is a good place to start. > > Otherwise, it's probably best to find/fix some actual defect > and suggest actual logical changes that reduce code size, > improve performance, expand test coverage, better document > the code, etc.. > > cheers, Joe > Thanks you very much for the the answer. That explains the matter.