[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200614140531.GA2661398@kroah.com>
Date: Sun, 14 Jun 2020 16:05:31 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Ricardo Ferreira <rikajff@...il.com>
Cc: Larry Finger <Larry.Finger@...inger.net>,
devel@...verdev.osuosl.org,
Florian Schilhabel <florian.c.schilhabel@...glemail.com>,
linux-kernel@...r.kernel.org,
Nishka Dasgupta <nishkadg.linux@...il.com>,
Dan Carpenter <dan.carpenter@...cle.com>
Subject: Re: [PATCH] Staging: rtl8712: Addressed checkpatch.pl issues related
to macro parameter wrapping in parentheses.
On Sun, Jun 14, 2020 at 02:51:25PM +0100, Ricardo Ferreira wrote:
> #define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \
> do {\
> - INIT_LIST_HEAD(&pcmd->list);\
> - pcmd->cmdcode = code;\
> - pcmd->parmbuf = (u8 *)(pparm);\
> - pcmd->cmdsz = sizeof(*pparm);\
> - pcmd->rsp = NULL;\
> - pcmd->rspsz = 0;\
> + INIT_LIST_HEAD(&(pcmd)->list);\
> + (pcmd)->cmdcode = code;\
> + (pcmd)->parmbuf = (u8 *)((pparm));\
> + (pcmd)->cmdsz = sizeof(*(pparm));\
> + (pcmd)->rsp = NULL;\
> + (pcmd)->rspsz = 0;\
> } while (0)
Does that change really make any sense? checkpatch is a nice hint,
sometimes it is not correct...
Powered by blists - more mailing lists