mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] vidio: Clean up errors in serial.h
@ 2023-09-27  6:32 chenguohua
  2023-09-27  8:22 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: chenguohua @ 2023-09-27  6:32 UTC (permalink / raw)
  To: linux, prathubaronia2011; +Cc: gregkh, linux-kernel

Fix the following errors reported by checkpatch:

ERROR: space required after that ',' (ctx:VxV)

Signed-off-by: GuoHua Cheng <chenguohua@jari.cn>
---
 include/linux/amba/clcd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/amba/clcd.h b/include/linux/amba/clcd.h
index b6e0cbeaf533..64df8235d9cc 100644
--- a/include/linux/amba/clcd.h
+++ b/include/linux/amba/clcd.h
@@ -244,7 +244,7 @@ static inline int clcdfb_check(struct clcd_fb *fb, struct fb_var_screeninfo *var
 	var->xres_virtual = var->xres = (var->xres + 15) & ~15;
 	var->yres_virtual = var->yres = (var->yres + 1) & ~1;
 
-#define CHECK(e,l,h) (var->e < l || var->e > h)
+#define CHECK(e, l, h) (var->e < l || var->e > h)
 	if (CHECK(right_margin, (5+1), 256) ||	/* back porch */
 	    CHECK(left_margin, (5+1), 256) ||	/* front porch */
 	    CHECK(hsync_len, (5+1), 256) ||
-- 
2.17.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] vidio: Clean up errors in serial.h
  2023-09-27  6:32 [PATCH] vidio: Clean up errors in serial.h chenguohua
@ 2023-09-27  8:22 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2023-09-27  8:22 UTC (permalink / raw)
  To: chenguohua; +Cc: linux, prathubaronia2011, linux-kernel

On Wed, Sep 27, 2023 at 02:32:23PM +0800, chenguohua@jari.cn wrote:
> Fix the following errors reported by checkpatch:
> 
> ERROR: space required after that ',' (ctx:VxV)
> 
> Signed-off-by: GuoHua Cheng <chenguohua@jari.cn>

Your subject line is very odd.

> ---
>  include/linux/amba/clcd.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/amba/clcd.h b/include/linux/amba/clcd.h
> index b6e0cbeaf533..64df8235d9cc 100644
> --- a/include/linux/amba/clcd.h
> +++ b/include/linux/amba/clcd.h
> @@ -244,7 +244,7 @@ static inline int clcdfb_check(struct clcd_fb *fb, struct fb_var_screeninfo *var
>  	var->xres_virtual = var->xres = (var->xres + 15) & ~15;
>  	var->yres_virtual = var->yres = (var->yres + 1) & ~1;
>  
> -#define CHECK(e,l,h) (var->e < l || var->e > h)
> +#define CHECK(e, l, h) (var->e < l || var->e > h)

There is nothing wrong with the original code here, please do not run
checkpatch on code that is NOT in drivers/staging/ unless you get the
approval of the maintainer to do so.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-27  8:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27  6:32 [PATCH] vidio: Clean up errors in serial.h chenguohua
2023-09-27  8:22 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®