linux-stable/drivers/video/fbdev/omap2/omapfb
Arnd Bergmann 84c41184cf fbdev: omapfb: avoid -Wempty-body warning
Building with 'make W=1' shows a few harmless warnings:

drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_calc_addr':
drivers/video/fbdev/omap2/omapfb/omapfb-main.c:823:56: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
  823 |                     var->xoffset, var->yoffset, offset);
      |                                                        ^
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c: In function 'omapfb_ioctl':
drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c:911:45: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
  911 |                 DBG("ioctl failed: %d\n", r);

Avoid these by using no_printk(), which adds format string checking as
well.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210322105307.1291840-1-arnd@kernel.org
2021-03-22 15:02:14 +01:00
..
displays - New Functionality 2021-02-22 09:27:18 -08:00
dss drm-misc-next for 5.13: 2021-03-16 17:08:46 +10:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile omapfb: rename omap2 module to omap2fb.ko 2018-07-24 19:11:27 +02:00
omapfb-ioctl.c fbdev: Use fallthrough pseudo-keyword 2020-08-03 21:38:37 +02:00
omapfb-main.c fbdev: Use fallthrough pseudo-keyword 2020-08-03 21:38:37 +02:00
omapfb-sysfs.c video: omap2: Use scnprintf() for avoiding potential buffer overflow 2020-03-20 14:29:05 +01:00
omapfb.h fbdev: omapfb: avoid -Wempty-body warning 2021-03-22 15:02:14 +01:00
vrfb.c fbdev: omapfb: use devm_platform_ioremap_resource() to simplify code 2020-01-03 14:27:44 +01:00