[dpdk-test-report] |WARNING| pw59847 [PATCH 09/11] examples/l3fwd: add event em main loop

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Sep 27 14:05:52 CEST 2019


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

_coding style issues_


ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#43: FILE: examples/l3fwd/l3fwd.h:224:
+#define L3FWD_EM_EVENT_MODE						  \
+EM_FP(tx_d,		0, 0, L3FWD_EVENT_TX_DIRECT | L3FWD_EVENT_SINGLE) \
+EM_FP(tx_d_burst,	0, 1, L3FWD_EVENT_TX_DIRECT | L3FWD_EVENT_BURST)  \
+EM_FP(tx_q,		1, 0, L3FWD_EVENT_TX_ENQ | L3FWD_EVENT_SINGLE)	  \
+EM_FP(tx_q_burst,	1, 1, L3FWD_EVENT_TX_ENQ | L3FWD_EVENT_BURST)	  \
+

WARNING:TRAILING_SEMICOLON: macros should not use a trailing semicolon
#49: FILE: examples/l3fwd/l3fwd.h:230:
+#define EM_FP(_name, _f2, _f1, flags)					\
+int									\
+em_event_main_loop_ ## _name(__attribute__((unused)) void *dummy);

total: 1 errors, 1 warnings, 579 lines checked


More information about the test-report mailing list