Skip to contentSkip to conversation

Fix checkpatch warnings in goldfishfb.c

PATCH In review [email protected] 2 participants 3 messages May 18, 2018 – May 24, 2018 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix checkpatch warnings in goldfishfb.c

From: Roman Kiryanov <[email protected]>

---
 drivers/video/fbdev/goldfishfb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/video/fbdev/goldfishfb.c +3 -1
index 3b70044773b6..de29c4ff77e5 100644
@@ -124,6 +124,7 @@ static int goldfish_fb_check_var(struct fb_var_screeninfo *var,
 static int goldfish_fb_set_par(struct fb_info *info)
 {
 	struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb);
+
 	if (fb->rotation != fb->fb.var.rotate) {
 		info->fix.line_length = info->var.xres * 2;
 		fb->rotation = fb->fb.var.rotate;
@@ -148,13 +149,14 @@ static int goldfish_fb_pan_display(struct fb_var_screeninfo *var,
 	wait_event_timeout(fb->wait,
 			fb->base_update_count != base_update_count, HZ / 15);
 	if (fb->base_update_count = base_update_count)
-		pr_err("goldfish_fb_pan_display: timeout waiting for base update\n");
+		pr_err("%s: timeout waiting for base update\n", __func__);
 	return 0;
 }
 
 static int goldfish_fb_blank(int blank, struct fb_info *info)
 {
 	struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb);
+
 	switch (blank) {
 	case FB_BLANK_NORMAL:
 		writel(1, fb->reg_base + FB_SET_BLANK);
Signature · 1 line
2.17.0.441.gb46fe60e1d-goog
#1 lore raw

Hi,

could you please confirm you received the patch?

Regards,
Roman.

Review

Quoted 8 lines · On Fri, May 18, 2018 at 4:32 PM <[email protected]> wrote:

From: Roman Kiryanov <[email protected]>

---
  drivers/video/fbdev/goldfishfb.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/video/fbdev/goldfishfb.c

drivers/video/fbdev/goldfishfb.c static int goldfish_fb_check_var(struct

Quoted 4 lines

index 3b70044773b6..de29c4ff77e5 100644

drivers/video/fbdev/goldfishfb.c +0 -0
@@ -124,6 +124,7 @@ static int goldfish_fb_check_var(struct

fb_var_screeninfo *var,

drivers/video/fbdev/goldfishfb.c static int goldfish_fb_check_var(struct fb_var_screeninfo *var,

Quoted 3 lines
drivers/video/fbdev/goldfishfb.c +0 -0
  static int goldfish_fb_set_par(struct fb_info *info)
  {
         struct goldfish_fb *fb = container_of(info, struct goldfish_fb,

fb);

drivers/video/fbdev/goldfishfb.c static int goldfish_fb_pan_display(struct

Quoted 5 lines
drivers/video/fbdev/goldfishfb.c +1 -0
+
         if (fb->rotation != fb->fb.var.rotate) {
                 info->fix.line_length = info->var.xres * 2;
                 fb->rotation = fb->fb.var.rotate;
@@ -148,13 +149,14 @@ static int goldfish_fb_pan_display(struct

fb_var_screeninfo *var,

drivers/video/fbdev/goldfishfb.c static int goldfish_fb_pan_display(struct · line 150

Quoted 2 lines
drivers/video/fbdev/goldfishfb.c +0 -0
         wait_event_timeout(fb->wait,
                         fb->base_update_count != base_update_count, HZ /

15);

drivers/video/fbdev/goldfishfb.c static int goldfish_fb_pan_display(struct · line 151

Quoted 2 lines
drivers/video/fbdev/goldfishfb.c +0 -1
         if (fb->base_update_count = base_update_count)
-               pr_err("goldfish_fb_pan_display: timeout waiting for base

update\n");

drivers/video/fbdev/goldfishfb.c static int goldfish_fb_pan_display(struct fb_var_screeninfo *var,

Quoted 7 lines
drivers/video/fbdev/goldfishfb.c +1 -0
+               pr_err("%s: timeout waiting for base update\n", __func__);
         return 0;
  }
 
  static int goldfish_fb_blank(int blank, struct fb_info *info)
  {
         struct goldfish_fb *fb = container_of(info, struct goldfish_fb,

fb);

Quoted 6 lines
drivers/video/fbdev/goldfishfb.c +1 -1
+
         switch (blank) {
         case FB_BLANK_NORMAL:
                 writel(1, fb->reg_base + FB_SET_BLANK);
--

2.17.0.441.gb46fe60e1d-goog

#2 lore raw
In reply to [email protected]

Hi Roman,

Quoted 1 line · On Sat, May 19, 2018 at 1:31 AM, <[email protected]> wrote:

From: Roman Kiryanov <[email protected]>

Usually you want a non-empty commit message. Also you did not send the patch to anyone, you need to use get_maintainer script to find someone to send it to. Since it is a trivial patch, you may want to include [email protected]

https://www.kernel.org/doc/html/v4.16/process/submitting-patches.html

Quoted 40 lines
---
 drivers/video/fbdev/goldfishfb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/video/fbdev/goldfishfb.c +3 -2
index 3b70044773b6..de29c4ff77e5 100644
@@ -124,6 +124,7 @@ static int goldfish_fb_check_var(struct fb_var_screeninfo *var,
 static int goldfish_fb_set_par(struct fb_info *info)
 {
        struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb);
+
        if (fb->rotation != fb->fb.var.rotate) {
                info->fix.line_length = info->var.xres * 2;
                fb->rotation = fb->fb.var.rotate;
@@ -148,13 +149,14 @@ static int goldfish_fb_pan_display(struct fb_var_screeninfo *var,
        wait_event_timeout(fb->wait,
                        fb->base_update_count != base_update_count, HZ / 15);
        if (fb->base_update_count = base_update_count)
-               pr_err("goldfish_fb_pan_display: timeout waiting for base update\n");
+               pr_err("%s: timeout waiting for base update\n", __func__);
        return 0;
 }
 
 static int goldfish_fb_blank(int blank, struct fb_info *info)
 {
        struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb);
+
        switch (blank) {
        case FB_BLANK_NORMAL:
                writel(1, fb->reg_base + FB_SET_BLANK);
--

2.17.0.441.gb46fe60e1d-goog

--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html