lkml.org 
[lkml]   [2015]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] octeon-usb:Fix coding style issue with space between function name and opening bracket
On Mon, Mar 23, 2015 at 08:53:19AM -0400, Nicholas Krause wrote:
>
>
> On March 23, 2015 6:40:06 AM EDT, Dan Carpenter <dan.carpenter@oracle.com> wrote:
> >On Sun, Mar 22, 2015 at 08:04:35PM -0400, Nicholas Krause wrote:
> >> Fixes the checkpath.pl error where the opening bracket has a unneeded
> >space between
> >> it and the function name for a if statement in the
> >marco,VMX_WAIT_FOR_FIELD32.
> >>
> >> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
> >> ---
> >> drivers/staging/octeon-usb/octeon-hcd.c | 2 +-
> >> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/drivers/staging/octeon-usb/octeon-hcd.c
> >b/drivers/staging/octeon-usb/octeon-hcd.c
> >> index 1daeb31..0408a12 100644
> >> --- a/drivers/staging/octeon-usb/octeon-hcd.c
> >> +++ b/drivers/staging/octeon-usb/octeon-hcd.c
> >> @@ -412,7 +412,7 @@ struct octeon_hcd {
> >> type c; \
> >> while (1) { \
> >> c.u32 = __cvmx_usb_read_csr32(usb, address); \
> >> - if (c.s.field op (value)) { \
> >> + if (c.s.field op(value)) { \
> >
> >"op" is not a function here. This is macro and top is an operation
> >like
> >"+" or "*". So checkpatch.pl is wrong.
> >
> >regards,
> >dan carpenter
> Very well then, I wasn't sure if we did the same spacing style for marcos.

We do but this is a very unusual case.

regards,
dan carpenter



\
 
 \ /
  Last update: 2015-03-23 14:41    [W:0.103 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site