* [PATCH] staging: fbtft: Fix checkpatch ERROR: space prohibited before that close parenthesis ')'
@ 2019-06-14 2:32 Shobhit Kukreti
2019-06-15 17:33 ` Greg Kroah-Hartman
2019-06-17 8:06 ` Geert Uytterhoeven
0 siblings, 2 replies; 4+ messages in thread
From: Shobhit Kukreti @ 2019-06-14 2:32 UTC (permalink / raw)
To: Greg Kroah-Hartman, dri-devel, linux-fbdev; +Cc: shobhitkukreti
Cleaned up code to resolve the checkpatch error
ERROR: space prohibited before that close parenthesis ')'
from the file:
fbtft/fbtft-bus.c
Signed-off-by: Shobhit Kukreti <shobhitkukreti@gmail.com>
---
drivers/staging/fbtft/fbtft-bus.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c
index 2ea814d..2b43bc2 100644
--- a/drivers/staging/fbtft/fbtft-bus.c
+++ b/drivers/staging/fbtft/fbtft-bus.c
@@ -62,9 +62,9 @@ out: \
} \
EXPORT_SYMBOL(func);
-define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8, )
+define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8,)
define_fbtft_write_reg(fbtft_write_reg16_bus8, __be16, u16, cpu_to_be16)
-define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16, )
+define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16,)
void fbtft_write_reg8_bus9(struct fbtft_par *par, int len, ...)
{
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: fbtft: Fix checkpatch ERROR: space prohibited before that close parenthesis ')'
2019-06-14 2:32 [PATCH] staging: fbtft: Fix checkpatch ERROR: space prohibited before that close parenthesis ')' Shobhit Kukreti
@ 2019-06-15 17:33 ` Greg Kroah-Hartman
2019-06-16 5:54 ` Shobhit Kukreti
2019-06-17 8:06 ` Geert Uytterhoeven
1 sibling, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2019-06-15 17:33 UTC (permalink / raw)
To: Shobhit Kukreti; +Cc: linux-fbdev, dri-devel
On Thu, Jun 13, 2019 at 07:32:28PM -0700, Shobhit Kukreti wrote:
> Cleaned up code to resolve the checkpatch error
> ERROR: space prohibited before that close parenthesis ')'
> from the file:
>
> fbtft/fbtft-bus.c
>
> Signed-off-by: Shobhit Kukreti <shobhitkukreti@gmail.com>
> ---
> drivers/staging/fbtft/fbtft-bus.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c
> index 2ea814d..2b43bc2 100644
> --- a/drivers/staging/fbtft/fbtft-bus.c
> +++ b/drivers/staging/fbtft/fbtft-bus.c
> @@ -62,9 +62,9 @@ out: \
> } \
> EXPORT_SYMBOL(func);
>
> -define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8, )
> +define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8,)
> define_fbtft_write_reg(fbtft_write_reg16_bus8, __be16, u16, cpu_to_be16)
> -define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16, )
> +define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16,)
Will this still build? I thought I remember some old versions of gcc
not liking this...
Did you test this patch out?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: fbtft: Fix checkpatch ERROR: space prohibited before that close parenthesis ')'
2019-06-15 17:33 ` Greg Kroah-Hartman
@ 2019-06-16 5:54 ` Shobhit Kukreti
0 siblings, 0 replies; 4+ messages in thread
From: Shobhit Kukreti @ 2019-06-16 5:54 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-fbdev, dri-devel
On Sat, Jun 15, 2019 at 07:33:02PM +0200, Greg Kroah-Hartman wrote:
> On Thu, Jun 13, 2019 at 07:32:28PM -0700, Shobhit Kukreti wrote:
> > Cleaned up code to resolve the checkpatch error
> > ERROR: space prohibited before that close parenthesis ')'
> > from the file:
> >
> > fbtft/fbtft-bus.c
> >
> > Signed-off-by: Shobhit Kukreti <shobhitkukreti@gmail.com>
> > ---
> > drivers/staging/fbtft/fbtft-bus.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c
> > index 2ea814d..2b43bc2 100644
> > --- a/drivers/staging/fbtft/fbtft-bus.c
> > +++ b/drivers/staging/fbtft/fbtft-bus.c
> > @@ -62,9 +62,9 @@ out: \
> > } \
> > EXPORT_SYMBOL(func);
> >
> > -define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8, )
> > +define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8,)
> > define_fbtft_write_reg(fbtft_write_reg16_bus8, __be16, u16, cpu_to_be16)
> > -define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16, )
> > +define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16,)
>
> Will this still build? I thought I remember some old versions of gcc
> not liking this...
I was able to build it with Ubuntu/Linaro GCC-5.4.0
>
> Did you test this patch out?
I booted the kernel on qemu-2.12 and insmod of fbtft drivers did not
return any errors. I did not test on actual display hardware.
If that is mandatory, I can drop the patch.
>
> thanks,
>
> greg k-h
Thank you for your patience and feedback.
Shobhit Kukreti
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] staging: fbtft: Fix checkpatch ERROR: space prohibited before that close parenthesis ')'
2019-06-14 2:32 [PATCH] staging: fbtft: Fix checkpatch ERROR: space prohibited before that close parenthesis ')' Shobhit Kukreti
2019-06-15 17:33 ` Greg Kroah-Hartman
@ 2019-06-17 8:06 ` Geert Uytterhoeven
1 sibling, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2019-06-17 8:06 UTC (permalink / raw)
To: Shobhit Kukreti
Cc: Andy Whitcroft, Greg Kroah-Hartman, Linux Fbdev development list,
Joe Perches, DRI Development
Hi Shobhit,
Thanks for your patch!
On Fri, Jun 14, 2019 at 4:34 AM Shobhit Kukreti
<shobhitkukreti@gmail.com> wrote:
> Cleaned up code to resolve the checkpatch error
> ERROR: space prohibited before that close parenthesis ')'
> from the file:
>
> fbtft/fbtft-bus.c
IMHO that is a bogus checkpatch error...
> Signed-off-by: Shobhit Kukreti <shobhitkukreti@gmail.com>
> ---
> drivers/staging/fbtft/fbtft-bus.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c
> index 2ea814d..2b43bc2 100644
> --- a/drivers/staging/fbtft/fbtft-bus.c
> +++ b/drivers/staging/fbtft/fbtft-bus.c
> @@ -62,9 +62,9 @@ out: \
> } \
> EXPORT_SYMBOL(func);
>
> -define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8, )
> +define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, u8,)
> define_fbtft_write_reg(fbtft_write_reg16_bus8, __be16, u16, cpu_to_be16)
> -define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16, )
> +define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, u16,)
... as the space is the (mandatory) separator between the comma and the
(empty) last parameter value.
Checkpatch has some limitations when parsing the C preprocessor macro
languagage.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-06-17 8:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-14 2:32 [PATCH] staging: fbtft: Fix checkpatch ERROR: space prohibited before that close parenthesis ')' Shobhit Kukreti
2019-06-15 17:33 ` Greg Kroah-Hartman
2019-06-16 5:54 ` Shobhit Kukreti
2019-06-17 8:06 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).