automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw55439 [PATCH v6 01/15] net/hinic/base: add HW registers definition
       [not found] <c0cbd9b663372436657927ce35eb766233ca56e8.1561620219.git.xuanziyang2@huawei.com>
@ 2019-06-27  8:00 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2019-06-27  8:00 UTC (permalink / raw)
  To: test-report; +Cc: Ziyang Xuan

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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q_id' - possible side-effects?
#111: FILE: drivers/net/hinic/base/hinic_csr.h:79:
+#define HINIC_EQ_HI_PHYS_ADDR_REG(type, q_id, pg_num)	\
+		((u32)((type == HINIC_AEQ) ? \
+		HINIC_AEQ_HI_PHYS_ADDR_REG(q_id, pg_num) : \
+		HINIC_CEQ_HI_PHYS_ADDR_REG(q_id, pg_num)))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pg_num' - possible side-effects?
#111: FILE: drivers/net/hinic/base/hinic_csr.h:79:
+#define HINIC_EQ_HI_PHYS_ADDR_REG(type, q_id, pg_num)	\
+		((u32)((type == HINIC_AEQ) ? \
+		HINIC_AEQ_HI_PHYS_ADDR_REG(q_id, pg_num) : \
+		HINIC_CEQ_HI_PHYS_ADDR_REG(q_id, pg_num)))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q_id' - possible side-effects?
#116: FILE: drivers/net/hinic/base/hinic_csr.h:84:
+#define HINIC_EQ_LO_PHYS_ADDR_REG(type, q_id, pg_num)	\
+		((u32)((type == HINIC_AEQ) ? \
+		HINIC_AEQ_LO_PHYS_ADDR_REG(q_id, pg_num) : \
+		HINIC_CEQ_LO_PHYS_ADDR_REG(q_id, pg_num)))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pg_num' - possible side-effects?
#116: FILE: drivers/net/hinic/base/hinic_csr.h:84:
+#define HINIC_EQ_LO_PHYS_ADDR_REG(type, q_id, pg_num)	\
+		((u32)((type == HINIC_AEQ) ? \
+		HINIC_AEQ_LO_PHYS_ADDR_REG(q_id, pg_num) : \
+		HINIC_CEQ_LO_PHYS_ADDR_REG(q_id, pg_num)))

total: 0 errors, 0 warnings, 4 checks, 160 lines checked

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-27  8:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <c0cbd9b663372436657927ce35eb766233ca56e8.1561620219.git.xuanziyang2@huawei.com>
2019-06-27  8:00 ` [dpdk-test-report] |WARNING| pw55439 [PATCH v6 01/15] net/hinic/base: add HW registers definition checkpatch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).