Skip to contentSkip to conversation

fbdev: Use /* */ comment in initializer macro

PATCH In review Thomas Zimmermann 2 participants 2 messages Jun 14, 2023 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbdev: Use /* */ comment in initializer macro

Use /* */ in initializer macro to avoid out-commenting the comma at the end of the line.

---
 include/linux/fb.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/fb.h +2 -2
index ce6823e157e6b..ce7d588edc3e6 100644
@@ -552,7 +552,7 @@ extern ssize_t fb_io_write(struct fb_info *info, const char __user *buf,
 	.fb_imageblit	= cfb_imageblit
 
 #define __FB_DEFAULT_IO_OPS_MMAP \
-	.fb_mmap	= NULL // default implementation
+	.fb_mmap	= NULL /* default implementation */
 
 #define FB_DEFAULT_IO_OPS \
 	__FB_DEFAULT_IO_OPS_RDWR, \
@@ -585,7 +585,7 @@ extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf,
 	.fb_imageblit	= sys_imageblit
 
 #define __FB_DEFAULT_SYS_OPS_MMAP \
-	.fb_mmap	= NULL // default implementation
+	.fb_mmap	= NULL /* default implementation */
 
 #define FB_DEFAULT_SYS_OPS \
 	__FB_DEFAULT_SYS_OPS_RDWR, \
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw

Am 14.06.23 um 15:12 schrieb Thomas Zimmermann:

Quoted 11 lines

Use /* */ in initializer macro to avoid out-commenting the comma at the end of the line.

Quoted 26 lines
---
  include/linux/fb.h | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/fb.h +2 -2
index ce6823e157e6b..ce7d588edc3e6 100644
@@ -552,7 +552,7 @@ extern ssize_t fb_io_write(struct fb_info *info, const char __user *buf,
  	.fb_imageblit	= cfb_imageblit
 
  #define __FB_DEFAULT_IO_OPS_MMAP \
-	.fb_mmap	= NULL // default implementation
+	.fb_mmap	= NULL /* default implementation */
 
  #define FB_DEFAULT_IO_OPS \
  	__FB_DEFAULT_IO_OPS_RDWR, \
@@ -585,7 +585,7 @@ extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf,
  	.fb_imageblit	= sys_imageblit
 
  #define __FB_DEFAULT_SYS_OPS_MMAP \
-	.fb_mmap	= NULL // default implementation
+	.fb_mmap	= NULL /* default implementation */
 
  #define FB_DEFAULT_SYS_OPS \
  	__FB_DEFAULT_SYS_OPS_RDWR, \