automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw60117 [PATCH 4/9] net/qede/base: rename HSI datatypes and funcs
       [not found] <20190930024921.21818-5-rmody@marvell.com>
@ 2019-09-30  2:50 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2019-09-30  2:50 UTC (permalink / raw)
  To: test-report; +Cc: Rasesh Mody

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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'map' - possible side-effects?
#2957: FILE: drivers/net/qede/base/ecore_init_fw_funcs.c:163:
+#define QM_INIT_TX_PQ_MAP(p_hwfn, map, pq_id, vp_pq_id, \
+			   rl_valid, rl_id, voq, wrr) \
+	do { \
+	OSAL_MEMSET(&map, 0, sizeof(map)); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_PQ_VALID, 1); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_RL_VALID, rl_valid ? 1 : 0); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_RL_ID, rl_id); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_VP_PQ_ID, vp_pq_id); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_VOQ, voq); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_WRR_WEIGHT_GROUP, wrr); \
+	STORE_RT_REG(p_hwfn, QM_REG_TXPQMAP_RT_OFFSET + pq_id, *((u32 *)&map));\
 	} while (0)

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'map' may be better as '(map)' to avoid precedence issues
#2957: FILE: drivers/net/qede/base/ecore_init_fw_funcs.c:163:
+#define QM_INIT_TX_PQ_MAP(p_hwfn, map, pq_id, vp_pq_id, \
+			   rl_valid, rl_id, voq, wrr) \
+	do { \
+	OSAL_MEMSET(&map, 0, sizeof(map)); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_PQ_VALID, 1); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_RL_VALID, rl_valid ? 1 : 0); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_RL_ID, rl_id); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_VP_PQ_ID, vp_pq_id); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_VOQ, voq); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_WRR_WEIGHT_GROUP, wrr); \
+	STORE_RT_REG(p_hwfn, QM_REG_TXPQMAP_RT_OFFSET + pq_id, *((u32 *)&map));\
 	} while (0)

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'pq_id' may be better as '(pq_id)' to avoid precedence issues
#2957: FILE: drivers/net/qede/base/ecore_init_fw_funcs.c:163:
+#define QM_INIT_TX_PQ_MAP(p_hwfn, map, pq_id, vp_pq_id, \
+			   rl_valid, rl_id, voq, wrr) \
+	do { \
+	OSAL_MEMSET(&map, 0, sizeof(map)); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_PQ_VALID, 1); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_RL_VALID, rl_valid ? 1 : 0); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_RL_ID, rl_id); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_VP_PQ_ID, vp_pq_id); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_VOQ, voq); \
+	SET_FIELD(map.reg, QM_RF_PQ_MAP_WRR_WEIGHT_GROUP, wrr); \
+	STORE_RT_REG(p_hwfn, QM_REG_TXPQMAP_RT_OFFSET + pq_id, *((u32 *)&map));\
 	} while (0)

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 8)
#2959: FILE: drivers/net/qede/base/ecore_init_fw_funcs.c:165:
+	do { \
+	OSAL_MEMSET(&map, 0, sizeof(map)); \

total: 0 errors, 1 warnings, 3 checks, 3176 lines checked

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

only message in thread, other threads:[~2019-09-30  2:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20190930024921.21818-5-rmody@marvell.com>
2019-09-30  2:50 ` [dpdk-test-report] |WARNING| pw60117 [PATCH 4/9] net/qede/base: rename HSI datatypes and funcs 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).