automatic DPDK test reports
 help / color / mirror / Atom feed
* |WARNING| pw121268 [PATCH v4 1/6] eal: trace: add trace point emit for array
       [not found] <20221222063306.3383695-2-adwivedi@marvell.com>
@ 2022-12-22  6:38 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2022-12-22  6:38 UTC (permalink / raw)
  To: test-report; +Cc: Ankur Dwivedi

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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#201: FILE: lib/eal/include/rte_trace_point.h:381:
+#define rte_trace_point_emit_char_array(in, len) \
+do { \
+	if (unlikely(in == NULL)) \
+		return; \
+	if (len > __RTE_TRACE_EMIT_ARRAY_LEN_MAX) \
+		return; \
+	memcpy(mem, in, len); \
+	mem = RTE_PTR_ADD(mem, len); \
+} while (0)

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#234: FILE: lib/eal/include/rte_trace_point_register.h:50:
+#define rte_trace_point_emit_char_array(in, len) \
+do { \
+	RTE_SET_USED(in); \
+	if (len > __RTE_TRACE_EMIT_ARRAY_LEN_MAX) \
+		return; \
+	__rte_trace_point_emit_field(len, RTE_STR(in)"[32]", "uint8_t"); \
+} while (0)

total: 0 errors, 2 warnings, 93 lines checked

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

only message in thread, other threads:[~2022-12-22  6:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20221222063306.3383695-2-adwivedi@marvell.com>
2022-12-22  6:38 ` |WARNING| pw121268 [PATCH v4 1/6] eal: trace: add trace point emit for array 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).