From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from out5-smtp.messagingengine.com ([66.111.4.29]:40008 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752851AbcKSWc3 (ORCPT ); Sat, 19 Nov 2016 17:32:29 -0500 Date: Sat, 19 Nov 2016 22:32:24 +0000 From: Andrey Utkin To: Mauro Carvalho Chehab Cc: Linux Media Mailing List , Mauro Carvalho Chehab , Mauro Carvalho Chehab , Hans Verkuil , Andrew Morton , Andrey Utkin , Julia Lawall , Laurent Pinchart , Seung-Woo Kim , Geunyoung Kim , Inki Dae , Junghak Sung , Markus Elfring , Wei Yongjun , Sean Young Subject: Re: [PATCH v2] [media] cx88: make checkpatch.pl happy Message-ID: <20161119223224.GB11418@dell-m4800.home> References: <451cfbe8b2a968992c49edac0fad57a6425caad6.1479590802.git.mchehab@s-opensource.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <451cfbe8b2a968992c49edac0fad57a6425caad6.1479590802.git.mchehab@s-opensource.com> Sender: linux-media-owner@vger.kernel.org List-ID: Thanks for your hard work at beautification of this driver :) >>From reviewing the diff over v1, it looks good. Also thanks for deep explanations you gave me for my comments. On Sat, Nov 19, 2016 at 07:27:30PM -0200, Mauro Carvalho Chehab wrote: > > Suggested-by: Andrey Utkin > Fixes: 65bc2fe86e66 ("[media] cx88: convert it to use pr_foo() macros") > Fixes: 7b61ba8ff838 ("[media] cx88: make checkpatch happier") > Signed-off-by: Mauro Carvalho Chehab > --- Reviewed-by: Andrey Utkin > --- a/drivers/media/pci/cx88/cx88-input.c > +++ b/drivers/media/pci/cx88/cx88-input.c > @@ -62,11 +62,15 @@ static int ir_debug; > module_param(ir_debug, int, 0644); /* debug level [IR] */ > MODULE_PARM_DESC(ir_debug, "enable debug messages [IR]"); > > -#define ir_dprintk(fmt, arg...) if (ir_debug) \ > - printk(KERN_DEBUG "%s IR: " fmt, ir->core->name, ##arg) > +#define ir_dprintk(fmt, arg...) do { \ > + if (ir_debug) \ > + printk(KERN_DEBUG "%s IR: " fmt, ir->core->name, ##arg);\ > +} while (0) Oh ok, so when the patch is applied, the backslash doesn't stand out, it just looks this way in the diff.