]> git.baikalelectronics.ru Git - kernel.git/commit
fbdev: savage: fix -Wextra build warning
authorRandy Dunlap <rdunlap@infradead.org>
Sun, 15 Mar 2020 04:10:00 +0000 (21:10 -0700)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 20 Mar 2020 13:29:10 +0000 (14:29 +0100)
commit7a25d9e6879e2bdf450fe6bf2a69888cfd5680d5
treecb2fe712ed2e7706dc09ac22b088802df34acae7
parentddbd3f0c72d91f539d9b8f80ed910831f0ff43dc
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
drivers/video/fbdev/savage/savagefb.h