fbdev: savage: fix -Wextra build warning
When 'SAVAGEFB_DEBUG' is not defined, modify the DBG() macro 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/savage/savagefb_driver.c:2411:13: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Antonino Daplas <adaplas@gmail.com> Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200315041002.24473-5-rdunlap@infradead.org
This commit is contained in:
parent
6ea16a0ba3
commit
5194480ce6
|
@ -21,7 +21,7 @@
|
||||||
#ifdef SAVAGEFB_DEBUG
|
#ifdef SAVAGEFB_DEBUG
|
||||||
# define DBG(x) printk (KERN_DEBUG "savagefb: %s\n", (x));
|
# define DBG(x) printk (KERN_DEBUG "savagefb: %s\n", (x));
|
||||||
#else
|
#else
|
||||||
# define DBG(x)
|
# define DBG(x) no_printk(x)
|
||||||
# define SavagePrintRegs(...)
|
# define SavagePrintRegs(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue