aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_sched.h
diff options
context:
space:
mode:
authorRandy Dunlap <[email protected]>2020-03-15 04:10:02 +0000
committerBartlomiej Zolnierkiewicz <[email protected]>2020-03-20 13:29:12 +0000
commit6ce2fc42dbda51495eec179c18baaf80801d57b4 (patch)
tree6bc604eb13ff911ea93f08c3f62629a64f4e521f /drivers/gpu/drm/lima/lima_sched.h
parentfbdev: pm[23]fb.c: fix -Wextra build warnings and errors (diff)
downloadkernel-6ce2fc42dbda51495eec179c18baaf80801d57b4.tar.gz
kernel-6ce2fc42dbda51495eec179c18baaf80801d57b4.zip
fbdev: via: fix -Wextra build warning and format warning
When 'VIAFB_DEBUG' and 'VIAFB_WARN' are not defined, modify the DEBUG_MSG() &WARN_MSG() macros to use the no_printk() macro instead of using <empty>. This fixes a build warning when -Wextra is used and provides printk format checking: ../drivers/video/fbdev/via/ioctl.c:88:47: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] Also use %lu to print an unsigned long instead of just %l, to fix a printk format warning: ../drivers/video/fbdev/via/viafbdev.c: In function ‘viafb_dvp0_proc_write’: ../drivers/video/fbdev/via/viafbdev.c:1148:14: warning: unknown conversion type character ‘]’ in format [-Wformat=] DEBUG_MSG("DVP0:reg_val[%l]=:%x\n", i, Signed-off-by: Randy Dunlap <[email protected]> Cc: Antonino Daplas <[email protected]> Cc: Florian Tobias Schandinat <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.h')
0 files changed, 0 insertions, 0 deletions