OpenCloudOS-Kernel/drivers/video/fbdev/via
Randy Dunlap 6ce2fc42db 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 <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-7-rdunlap@infradead.org
2020-03-20 14:29:12 +01:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
accel.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
accel.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
chip.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
debug.h fbdev: via: fix -Wextra build warning and format warning 2020-03-20 14:29:12 +01:00
dvi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
dvi.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
global.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
global.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
hw.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
hw.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
ioctl.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
ioctl.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
lcd.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
lcd.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
share.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
tblDPASetting.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
tblDPASetting.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via-core.c remove ioremap_nocache and devm_ioremap_nocache 2020-01-06 09:45:59 +01:00
via-gpio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 260 2019-06-05 17:30:27 +02:00
via_aux.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_aux.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_aux_ch7301.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_aux_edid.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_aux_sii164.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_aux_vt1621.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_aux_vt1622.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_aux_vt1625.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_aux_vt1631.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_aux_vt1632.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_aux_vt1636.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_clock.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_clock.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_i2c.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_modesetting.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_modesetting.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_utility.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
via_utility.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
viafbdev.c fbdev: via: fix -Wextra build warning and format warning 2020-03-20 14:29:12 +01:00
viafbdev.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
viamode.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
viamode.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
vt1636.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00
vt1636.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 50 2019-05-24 17:27:13 +02:00