summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/s1d13xxxfb.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2020-11-28 23:41:14 +0100
committerSam Ravnborg <sam@ravnborg.org>2020-11-29 22:51:07 +0100
commit6fdf38e61310b46e058d618e09e173a837e4c68e (patch)
treea8ecdae7f406e41f067c53c7dbce4c12d1e0b415 /drivers/video/fbdev/s1d13xxxfb.c
parentb1cba76de6c7cbf8f5fc9d66e7e7ef81293684dc (diff)
downloadlwn-6fdf38e61310b46e058d618e09e173a837e4c68e.tar.gz
lwn-6fdf38e61310b46e058d618e09e173a837e4c68e.zip
video: fbdev: s1d13xxxfb: Fix kernel-doc and set but not used warnings
Fix following W=1 warnings: - Fix set but not used variables that were used only for logging. Fixed by introducing no_printk() to trick compiler to think variables are used - Fix kernel-doc warning by deleting an empty comment line v3: - Fix grammar in commit message (Thomas) v2: - Subject updated (Lee) Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Cc: Kristoffer Ericson <kristoffer.ericson@gmail.com> Cc: Lee Jones <lee.jones@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20201128224114.1033617-29-sam@ravnborg.org
Diffstat (limited to 'drivers/video/fbdev/s1d13xxxfb.c')
-rw-r--r--drivers/video/fbdev/s1d13xxxfb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/fbdev/s1d13xxxfb.c b/drivers/video/fbdev/s1d13xxxfb.c
index 4541afcf9386..d1b5f965bc96 100644
--- a/drivers/video/fbdev/s1d13xxxfb.c
+++ b/drivers/video/fbdev/s1d13xxxfb.c
@@ -45,7 +45,7 @@
#if 0
#define dbg(fmt, args...) do { printk(KERN_INFO fmt, ## args); } while(0)
#else
-#define dbg(fmt, args...) do { } while (0)
+#define dbg(fmt, args...) do { no_printk(KERN_INFO fmt, ## args); } while (0)
#endif
/*
@@ -512,7 +512,6 @@ s1d13xxxfb_bitblt_copyarea(struct fb_info *info, const struct fb_copyarea *area)
}
/**
- *
* s1d13xxxfb_bitblt_solidfill - accelerated solidfill function
* @info : framebuffer structure
* @rect : fb_fillrect structure