Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1573601 > unrolled thread

[PATCH] staging: fbtft: fbtft-bus.c: Fix checkpatch error

Started byYoungdo Lee <paul.ydlee@gmail.com>
First post2017-02-04 05:50 +0100
Last post2017-02-05 11:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging: fbtft: fbtft-bus.c: Fix checkpatch error Youngdo Lee <paul.ydlee@gmail.com> - 2017-02-04 05:50 +0100
    Re: [PATCH] staging: fbtft: fbtft-bus.c: Fix checkpatch error Greg KH <gregkh@linuxfoundation.org> - 2017-02-05 11:40 +0100

#1573601 — [PATCH] staging: fbtft: fbtft-bus.c: Fix checkpatch error

FromYoungdo Lee <paul.ydlee@gmail.com>
Date2017-02-04 05:50 +0100
Subject[PATCH] staging: fbtft: fbtft-bus.c: Fix checkpatch error
Message-ID<t70sp-3HZ-5@gated-at.bofh.it>
Fix checkpatch error:
ERROR: space prohibited before that close parenthesis ')'

Signed-off-by: Youngdo Lee <paul.ydlee@gmail.com>
---
 drivers/staging/fbtft/fbtft-bus.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c
index ec45043..3ce265d 100644
--- a/drivers/staging/fbtft/fbtft-bus.c
+++ b/drivers/staging/fbtft/fbtft-bus.c
@@ -10,6 +10,7 @@
  *
  *****************************************************************************/
 
+#define	nop_modifier(expr)		(expr)
 #define define_fbtft_write_reg(func, type, modifier)                          \
 void func(struct fbtft_par *par, int len, ...)                                \
 {                                                                             \
@@ -68,9 +69,9 @@ void func(struct fbtft_par *par, int len, ...)                                \
 }                                                                             \
 EXPORT_SYMBOL(func);
 
-define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, )
+define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, nop_modifier)
 define_fbtft_write_reg(fbtft_write_reg16_bus8, u16, cpu_to_be16)
-define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, )
+define_fbtft_write_reg(fbtft_write_reg16_bus16, u16, nop_modifier)
 
 void fbtft_write_reg8_bus9(struct fbtft_par *par, int len, ...)
 {
-- 
1.9.1

[toc] | [next] | [standalone]


#1573863

FromGreg KH <gregkh@linuxfoundation.org>
Date2017-02-05 11:40 +0100
Message-ID<t7soF-66H-1@gated-at.bofh.it>
In reply to#1573601
On Sat, Feb 04, 2017 at 01:42:48PM +0900, Youngdo Lee wrote:
> Fix checkpatch error:
> ERROR: space prohibited before that close parenthesis ')'
> 
> Signed-off-by: Youngdo Lee <paul.ydlee@gmail.com>
> ---
>  drivers/staging/fbtft/fbtft-bus.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/fbtft/fbtft-bus.c
> index ec45043..3ce265d 100644
> --- a/drivers/staging/fbtft/fbtft-bus.c
> +++ b/drivers/staging/fbtft/fbtft-bus.c
> @@ -10,6 +10,7 @@
>   *
>   *****************************************************************************/
>  
> +#define	nop_modifier(expr)		(expr)

What?

>  #define define_fbtft_write_reg(func, type, modifier)                          \
>  void func(struct fbtft_par *par, int len, ...)                                \
>  {                                                                             \
> @@ -68,9 +69,9 @@ void func(struct fbtft_par *par, int len, ...)                                \
>  }                                                                             \
>  EXPORT_SYMBOL(func);
>  
> -define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, )
> +define_fbtft_write_reg(fbtft_write_reg8_bus8, u8, nop_modifier)

That's really odd.  Don't do crazy things like this to fix odd code.
Fix up the code to not do such looney things in the first place.

thanks,

greg k-h

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web