mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-04 04:44:37 +08:00
d6bed580eb
Building with 'make W=1' shows many warnings -Wempty-body warnings like drivers/media/common/b2c2/flexcop-misc.c: In function 'flexcop_determine_revision': drivers/media/common/b2c2/flexcop-misc.c:35:85: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body] 35 | deb_info("this FlexCop has the 6 basic main hardware pid filter.\n"); drivers/media/usb/b2c2/flexcop-usb.c: In function 'flexcop_usb_process_frame': drivers/media/usb/b2c2/flexcop-usb.c:357:79: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body] 357 | deb_ts("not ts packet %*ph\n", 4, b+2); | ^ drivers/media/common/b2c2/flexcop-misc.c: In function 'flexcop_determine_revision': drivers/media/common/b2c2/flexcop-misc.c:35:85: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body] 35 | deb_info("this FlexCop has the 6 basic main hardware pid filter.\n"); | ^ 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>
32 lines
922 B
C
32 lines
922 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III
|
|
* flexcop.h - private header file for all flexcop-chip-source files
|
|
* see flexcop.c for copyright information
|
|
*/
|
|
#ifndef __FLEXCOP_H__
|
|
#define __FLEXCOP_H__
|
|
|
|
#define FC_LOG_PREFIX "b2c2-flexcop"
|
|
#include "flexcop-common.h"
|
|
|
|
extern int b2c2_flexcop_debug;
|
|
|
|
/* debug */
|
|
#ifdef CONFIG_DVB_B2C2_FLEXCOP_DEBUG
|
|
#define dprintk(level, args...) \
|
|
do { if ((b2c2_flexcop_debug & (level))) printk(args); } while (0)
|
|
#else
|
|
#define dprintk(level, args...) no_printk(args)
|
|
#endif
|
|
|
|
#define deb_info(args...) dprintk(0x01, args)
|
|
#define deb_tuner(args...) dprintk(0x02, args)
|
|
#define deb_i2c(args...) dprintk(0x04, args)
|
|
#define deb_ts(args...) dprintk(0x08, args)
|
|
#define deb_sram(args...) dprintk(0x10, args)
|
|
#define deb_rdump(args...) dprintk(0x20, args)
|
|
#define deb_i2c_dump(args...) dprintk(0x40, args)
|
|
|
|
#endif
|