WSL2-Linux-Kernel/drivers/media/usb/dvb-usb
Arnd Bergmann be8cd6cccf media: dvb-usb: avoid -Wempty-body warnings
Building with 'make W=1' shows many warnings -Wempty-body warnings like

drivers/media/usb/dvb-usb/vp702x-fe.c: In function 'vp702x_fe_set_frontend':
drivers/media/usb/dvb-usb/vp702x-fe.c:190:46: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body]
  190 |                 deb_fe("tuning succeeded.\n");
drivers/media/usb/dvb-usb/dtt200u.c: In function 'dtt200u_rc_query':
drivers/media/usb/dvb-usb/dtt200u.c:124:58: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
  124 |                 deb_info("st->data: %*ph\n", 5, st->data);
drivers/media/usb/dvb-usb/m920x.c: In function 'm920x_rc_query':
drivers/media/usb/dvb-usb/m920x.c:207:58: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
  207 |                 deb("Unknown rc key %02x\n", rc_state[1]);

Change the empty dprintk() macros to no_printk(), which avoids this
warning and adds format string checking.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-04-09 13:05:25 +02:00
..
Kconfig media: dvb_usb_pctv452e: use ISL6423 voltage regulator per default 2020-09-03 16:14:59 +02:00
Makefile media: cxusb: add analog mode support for Medion MD95700 2019-05-28 16:03:12 -04:00
a800.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
af9005-fe.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
af9005-remote.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
af9005-script.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
af9005.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
af9005.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
az6027.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
az6027.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cinergyT2-core.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
cinergyT2-fe.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
cinergyT2.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
cxusb-analog.c media: media/usb: use vb2_video_unregister_device() 2020-08-28 15:02:52 +02:00
cxusb.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
cxusb.h media: cxusb: Revert "media: cxusb: add raw mode support for, Medion MD95700" 2019-06-05 15:26:40 -04:00
dib07x0.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dib0700.h media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
dib0700_core.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
dib0700_devices.c media: dib0700: use semicolons rather than commas to separate statements 2020-11-16 10:31:07 +01:00
dibusb-common.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dibusb-mb.c media: dvb: return -EREMOTEIO on i2c transfer failure. 2020-04-21 12:55:07 +02:00
dibusb-mc-common.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dibusb-mc.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dibusb.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
digitv.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
digitv.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dtt200u-fe.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dtt200u.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dtt200u.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dtv5100.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
dtv5100.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
dvb-usb-common.h media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
dvb-usb-dvb.c media: cxusb: implement Medion MD95700 digital / analog coexistence 2019-05-28 15:59:19 -04:00
dvb-usb-firmware.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
dvb-usb-i2c.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
dvb-usb-init.c media: dvb-usb: fix memory leak in dvb_usb_adapter_init 2021-04-09 13:02:20 +02:00
dvb-usb-remote.c media updates for v4.15-rc1 2017-11-15 20:30:12 -08:00
dvb-usb-urb.c media: dvb-usb/dvb-usb-urb.c: initialize actlen to 0 2019-12-13 09:17:42 +01:00
dvb-usb.h media: dvb-usb: avoid -Wempty-body warnings 2021-04-09 13:05:25 +02:00
dw2102.c media: dvb-usb: Add Hauppauge MAX S2's USB-IDs 2020-11-26 14:26:43 +01:00
dw2102.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gp8psk.c media: gp8psk: initialize stats at power control logic 2020-11-27 07:40:21 +01:00
gp8psk.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
m920x.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
m920x.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nova-t-usb2.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
opera1.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
pctv452e.c media: dvb_usb_pctv452e: use ISL6423 voltage regulator per default 2020-09-03 16:14:59 +02:00
technisat-usb2.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
ttusb2.c media: dvb-usb: make dvb_usb_device_properties const 2020-04-21 12:56:10 +02:00
ttusb2.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
umt-010.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
usb-urb.c media: dvb-usb: fix spelling mistake: "completition" -> "completion" 2018-08-03 16:08:55 -04:00
vp702x-fe.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
vp702x.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
vp702x.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vp7045-fe.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
vp7045.c media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
vp7045.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00