Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932498AbdHWQMt (ORCPT ); Wed, 23 Aug 2017 12:12:49 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:10164 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932251AbdHWQMq (ORCPT ); Wed, 23 Aug 2017 12:12:46 -0400 X-AuditID: b6c32a35-f798c6d000005940-6f-599da97bed3b From: Bartlomiej Zolnierkiewicz To: Himanshu Jha Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH] drivers: video: Fix 80 character limit and remove unnecessary space Date: Wed, 23 Aug 2017 18:12:41 +0200 Message-id: <5135691.E4iXgiitH9@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-reply-to: <1503324231-10675-1-git-send-email-himanshujha199640@gmail.com> MIME-version: 1.0 Content-transfer-encoding: 7Bit Content-type: text/plain; charset="us-ascii" X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAIsWRmVeSWpSXmKPExsWy7bCmnm71yrmRBhNemVlMW9PCanGi7wOr xeVdc9gcmD12zrrL7vF5k1wAUxSXTUpqTmZZapG+XQJXxrsXEgVLBSqe3b3C1sD4jaeLkZND QsBE4k73fGYIW0ziwr31bCC2kMAORolHMwS6GLmA7O+MEq//TmWCafjxvpEJIrGbUeJw51Oo jq+MEl3Pa0FsNgEriYntqxhBbBEBPYlHLZ0sIDazgK3Ev/c7weLCAlESk7dsAtvMIqAqMbO7 HWgoBwevgKbEh9tZIGFRAS+JLfvawfZyCvhI7J73kxXE5hUQlPgx+R7USHmJffunskLYOhJn j61jBLlNQqCHTeLmnR5WiKNdJN5P/gtlC0u8Or6FHWSXhIC0xKWjthDh6YwS239LQPRuZpRY tXsCO0TCWuLw8YtQC/gk3n0FmQnSyyvR0SYEYXpINOyDmu4ocfIMyGmg4JnPKDF1xwrGCYxy s5CcPQ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+0XLlNiKc5INNRiLipOBADQGBj9 QwIAAA== X-CMS-MailID: 20170823161243epcas1p4ff52a35feb66208c269587a3f76bea95 X-Msg-Generator: CA X-Sender-IP: 182.195.42.142 X-Local-Sender: =?UTF-8?B?QmFydGxvbWllaiBab2xuaWVya2lld2ljehtTUlBPTC1LZXJu?= =?UTF-8?B?ZWwgKFRQKRvsgrzshLHsoITsnpAbU2VuaW9yIFNvZnR3YXJlIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?QmFydGxvbWllaiBab2xuaWVya2lld2ljehtTUlBPTC1LZXJu?= =?UTF-8?B?ZWwgKFRQKRtTYW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBF?= =?UTF-8?B?bmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 101P X-CMS-RootMailID: 20170821140419epcas1p44df6f964a3977e1305cd4845cfcef783 X-RootMTR: 20170821140419epcas1p44df6f964a3977e1305cd4845cfcef783 References: <1503324231-10675-1-git-send-email-himanshujha199640@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2014 Lines: 71 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 > > Signed-off-by: Himanshu Jha > --- > drivers/video/vgastate.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/video/vgastate.c b/drivers/video/vgastate.c > index 548c751..a52283d 100644 > --- 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); > @@ -454,8 +455,9 @@ int save_vga(struct vgastate *state) > } > return 0; > } > +EXPORT_SYMBOL(save_vga); > > -int restore_vga (struct vgastate *state) > +int restore_vga(struct vgastate *state) > { > if (state->vidstate == NULL) > return 1; > @@ -480,8 +482,6 @@ int restore_vga (struct vgastate *state) > vga_cleanup(state); > return 0; > } > - > -EXPORT_SYMBOL(save_vga); > EXPORT_SYMBOL(restore_vga); > > MODULE_AUTHOR("James Simmons "); Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics