|WARNING| pw149145 [PATCH 13/21] drivers/net: use portable variadic macros

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Dec 11 03:09:43 CET 2024


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/149145

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q' - possible side-effects?
#774: FILE: drivers/net/qede/qede_logs.h:62:
+#define PMD_TX_LOG(level, q, fmt, ...) \
 	RTE_LOG(level, QEDE_DRIVER, "%s(): port=%u queue=%u " fmt "
", \
+		__func__, (q)->port_id, (q)->queue_id, ## __VA_ARGS__)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q' - possible side-effects?
#785: FILE: drivers/net/qede/qede_logs.h:70:
+#define PMD_RX_LOG(level, q, fmt, ...) \
 	RTE_LOG(level, QEDE_DRIVER, "%s(): port=%u queue=%u " fmt "
",	\
+		__func__, (q)->port_id, (q)->queue_id, ## __VA_ARGS__)

total: 0 errors, 0 warnings, 2 checks, 579 lines checked


More information about the test-report mailing list