video: rockchip: iep: avoid -Wempty-body warning

Building with 'make W=1' shows a harmless -Wempty-body warning:

drivers/video/rockchip/iep/hw_iep_reg.c: In function 'iep_soft_rst':
drivers/video/rockchip/iep/hw_iep_reg.c:1313:49: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
 1313 |                 IEP_DBG("soft reset timeout.\n");
      |                                                 ^

Change the empty debug macros to no_printk(), which avoids the
warnings and adds useful format string checks.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifff86aeab7cc988d5af694d8709fb4b9c634b044
This commit is contained in:
Tao Huang
2025-03-03 14:20:59 +08:00
parent 9bcf86770a
commit cd2391de56

View File

@@ -75,7 +75,7 @@ struct IEP_CAP {
#if IEP_DEBUG
#define IEP_DBG(format, args...) printk("%s: " format, DRIVER_NAME, ## args)
#else
#define IEP_DBG(format, args...)
#define IEP_DBG(format, args...) no_printk("%s: " format, DRIVER_NAME, ## args)
#endif
#define IEP_INFORMATION 1