Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751511AbdFFPwd (ORCPT ); Tue, 6 Jun 2017 11:52:33 -0400 Received: from smtprelay0037.hostedemail.com ([216.40.44.37]:34531 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751388AbdFFPwc (ORCPT ); Tue, 6 Jun 2017 11:52:32 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:1801:2393:2553:2559:2562:2692:2828:3138:3139:3140:3141:3142:3353:3622:3743:3865:3866:3867:3870:3871:3872:3873:3874:4250:4321:4605:4823:5007:6742:10004:10400:10848:11026:11232:11473:11658:11914:12043:12296:12438:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21067:21080:21433:21627:30012:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: heart48_32c36dba78031 X-Filterd-Recvd-Size: 2654 Message-ID: <1496764347.1968.22.camel@perches.com> Subject: Re: [PATCH 0/3] move visorbus out of staging to drivers/virt/visorbus From: Joe Perches To: Greg KH Cc: David Kershner , Andy Whitcroft , corbet@lwn.net, tglx@linutronix.de, mingo@kernel.org, akpm@linux-foundation.org, jes.sorensen@gmail.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, driverdev-devel@linuxdriverproject.org, sparmaintainer@unisys.com Date: Tue, 06 Jun 2017 08:52:27 -0700 In-Reply-To: <20170606153907.GA3243@kroah.com> References: <1496693252-4349-1-git-send-email-david.kershner@unisys.com> <20170606144909.GA31938@kroah.com> <20170606145322.GA32397@kroah.com> <1496763229.1968.20.camel@perches.com> <20170606153907.GA3243@kroah.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 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: 1443 Lines: 39 On Tue, 2017-06-06 at 17:39 +0200, Greg KH wrote: > On Tue, Jun 06, 2017 at 08:33:49AM -0700, Joe Perches wrote: > > On Tue, 2017-06-06 at 16:53 +0200, Greg KH wrote: > > > On Tue, Jun 06, 2017 at 04:49:09PM +0200, Greg KH wrote: > > > > I noticed that in drivers/staging/unisys/visorbus/visorbus_main.c, you > > > > have 2 tabs for your 'struct attribute' variables, which is really odd. > > > > [] > > > Also, many of the attribute callbacks in that file seem to all have > > > their leading '{' in the wrong place. Odd that checkpatch.pl doesn't > > > catch that... [] > the following code in that file should be caught, right: > > static ssize_t partition_handle_show(struct device *dev, > struct device_attribute *attr, > char *buf) { > struct visor_device *vdev = to_visor_device(dev); > u64 handle = visorchannel_get_clientpartition(vdev->visorchannel); > > return sprintf(buf, "0x%llx\n", handle); > } > static DEVICE_ATTR_RO(partition_handle); Not really. > The initial { is in the wrong place... True. Please understand that checkpatch looks at patches one line at a time. It's not very smart about function definitions or context. checkpatch's function definition code is pretty limited. It can miss a lot of style misuses. Single line function definitions brace tests work well. Multiple line function definitions do not.