Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751281AbdHWXQJ (ORCPT ); Wed, 23 Aug 2017 19:16:09 -0400 Received: from smtprelay0187.hostedemail.com ([216.40.44.187]:36913 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751085AbdHWXQH (ORCPT ); Wed, 23 Aug 2017 19:16:07 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:355:379:541:599:601:857:946:968:973:982:988:989:1260:1277:1311:1313:1314:1345:1358:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2551:2553:2559:2562:2828:3027:3138:3139:3140:3141:3142:3353:3622:3865:3867:3868:3869:3871:3872:4184:4321:4605:5007:8879:8957:9010:10004:10400:10848:11658:11914:12050,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: spoon53_180964e5d5e4a X-Filterd-Recvd-Size: 2484 Message-ID: <1503523962.6933.15.camel@perches.com> Subject: Re: [PATCH] drivers: video: Fix 80 character limit and remove unnecessary space From: Joe Perches To: Bartlomiej Zolnierkiewicz , Himanshu Jha Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org In-Reply-To: <5135691.E4iXgiitH9@amdc3058> References: <1503324231-10675-1-git-send-email-himanshujha199640@gmail.com> <5135691.E4iXgiitH9@amdc3058> Content-Type: text/plain; charset="ISO-8859-1" Date: Wed, 23 Aug 2017 14:32:42 -0700 Mime-Version: 1.0 X-Mailer: Evolution 3.22.6-1ubuntu1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1485 Lines: 45 On Wed, 2017-08-23 at 18:12 +0200, Bartlomiej Zolnierkiewicz wrote: > Hi, > > Please use a more descriptive patch subject, i.e. > "fbdev: vgastate: fix checkpatch.pl reported warnings". > > Please also cc: fbdev mailing list (linux-fbdev@vger.kernel.org > on fbdev patches). > > On Monday, August 21, 2017 07:33:51 PM Himanshu Jha wrote: > > Fixes the following checkpatch warnings: > > WARNING: line over 80 characters > > WARNING: space prohibited between function name and open parenthesis '(' > > WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable [] > > diff --git a/drivers/video/vgastate.c b/drivers/video/vgastate.c [] > > @@ -31,8 +31,9 @@ struct regstate { > > __u8 misc; > > }; > > > > -static inline unsigned char vga_rcrtcs(void __iomem *regbase, unsigned short iobase, > > - unsigned char reg) > > +static inline unsigned char vga_rcrtcs(void __iomem *regbase, > > + unsigned short iobase, > > + unsigned char reg) > > This is not an improvement and doesn't conform to the kernel CodingStyle. > > It should be: > > static inline unsigned char vga_rcrtcs(void __iomem *regbase, > unsigned short iobase, > unsigned char reg) > > > { > > vga_w(regbase, iobase + 0x4, reg); > > return vga_r(regbase, iobase + 0x5); Better to remove the inline and let the compiler decide too. Perhaps: static unsigned char vga_rcrtcs(void __iomem *regbase, unsigned short iobase, unsigned char reg)