aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_sched.h
diff options
context:
space:
mode:
authorRandy Dunlap <[email protected]>2020-03-15 04:10:01 +0000
committerBartlomiej Zolnierkiewicz <[email protected]>2020-03-20 13:29:11 +0000
commit1a56b9fa3275abceca96aa0a6061a3eda9859bb2 (patch)
tree54e158c01b69f921b735273ff9939587ef4134d9 /drivers/gpu/drm/lima/lima_sched.h
parentfbdev: savage: fix -Wextra build warning (diff)
downloadkernel-1a56b9fa3275abceca96aa0a6061a3eda9859bb2.tar.gz
kernel-1a56b9fa3275abceca96aa0a6061a3eda9859bb2.zip
fbdev: pm[23]fb.c: fix -Wextra build warnings and errors
When 'DEBUG' is not defined, modify the DPRINTK() macro to use the no_printk() macro instead of using <empty>. This fixes build warnings when -Wextra is used and provides printk format checking: ../drivers/video/fbdev/pm2fb.c:227:38: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] ../drivers/video/fbdev/pm3fb.c:1039:33: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] Also drop one argument in two DPRINTK() macro uses to provide the correct number of arguments and use the correct field in one case to fix a build error: ../drivers/video/fbdev/pm3fb.c:353:9: error: ‘struct fb_info’ has no member named ‘current_par’ info->current_par->depth); 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