Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751917AbdCAUvN (ORCPT ); Wed, 1 Mar 2017 15:51:13 -0500 Received: from smtprelay0215.hostedemail.com ([216.40.44.215]:52777 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750707AbdCAUvM (ORCPT ); Wed, 1 Mar 2017 15:51:12 -0500 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2110:2194:2198:2199:2200:2376:2393:2559:2562:2692:2693:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4250:4321:5007:6119:6691:8531:8603:9108:10004:10400:10848:11232:11658:11914:12663:12740:12760:12895:13069:13161:13229:13311:13357:13439:14096:14097:14659:21080:21324:21433:30012:30054:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: seat61_1aad6a18a2c13 X-Filterd-Recvd-Size: 2533 Message-ID: <1488401182.20731.11.camel@perches.com> Subject: Re: [PATCH] hid: usbhid: usbkbd: fix checkpatch.pl issues From: Joe Perches To: Avraham Shukron , Dmitry Torokhov Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 01 Mar 2017 12:46:22 -0800 In-Reply-To: <3c67c4db-9b59-82f1-9406-3dfdb2ac0a48@gmail.com> References: <48d55583-6f2d-cfda-c6dd-0e789f4bf6f1@gmail.com> <20170301181628.GD30349@dtor-ws> <3c67c4db-9b59-82f1-9406-3dfdb2ac0a48@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.3-0ubuntu0.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1512 Lines: 45 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