automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw66595 [PATCH 05/13] app/test: introduce librte_security tests
       [not found] <20200312151654.7218-6-l.wojciechow@partner.samsung.com>
@ 2020-03-12 15:19 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2020-03-12 15:19 UTC (permalink / raw)
  To: test-report; +Cc: Lukasz Wojciechowski

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

_coding style issues_


WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#311: FILE: app/test/test_security.c:129:
+#define TEST_ASSERT_MOCK_FUNCTION_CALL_RET(f_name, f_ret, exp_ret,			\
+		ret_spec) do {								\
+	TEST_ASSERT_EQUAL(exp_ret, f_ret, "Expecting " RTE_STR(f_name)			\
+			" to return " ret_spec ", but it returned " ret_spec "
",	\
+			exp_ret, f_ret);						\
+} while (0)

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 8)
#312: FILE: app/test/test_security.c:130:
+		ret_spec) do {								\
+	TEST_ASSERT_EQUAL(exp_ret, f_ret, "Expecting " RTE_STR(f_name)			\

WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#324: FILE: app/test/test_security.c:142:
+#define TEST_ASSERT_MOCK_FUNCTION_CALL_NOT_NULL(f_name, f_ret) do {	\
+	TEST_ASSERT_NOT_NULL(f_ret, "Expecting " RTE_STR(f_name)	\
+			" to return not NULL
");			\
+} while (0)

ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#403: FILE: app/test/test_security.c:221:
+static int
+mock_session_create(void *device,
+		struct rte_security_session_conf *conf,
+		struct rte_security_session *sess,
+		struct rte_mempool *mp) {

ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#434: FILE: app/test/test_security.c:252:
+static int
+mock_session_destroy(void *device,
+		struct rte_security_session *sess) {

ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#506: FILE: app/test/test_security.c:324:
+static int
+testsuite_setup(void) {

ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#523: FILE: app/test/test_security.c:341:
+static void
+testsuite_teardown(void) {

ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#537: FILE: app/test/test_security.c:355:
+static int
+ut_setup(void) {

ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#560: FILE: app/test/test_security.c:378:
+static int
+destroy_session_with_check(void) {

ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#587: FILE: app/test/test_security.c:405:
+static void
+ut_teardown(void) {

WARNING:BRACES: braces {} are not necessary for single statement blocks
#745: FILE: app/test/test_security.c:563:
+	for (i = 0; i < SECURITY_TEST_MEMPOOL_SIZE; ++i) {
+		rte_mempool_put(ts_params->session_mpool, (void *)(tmp[i]));
+	}

WARNING:LONG_LINE: line over 90 characters
#827: FILE: app/test/test_security.c:645:
+				test_rte_security_session_create_inv_param_context_ops_fun),

total: 7 errors, 5 warnings, 699 lines checked

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

only message in thread, other threads:[~2020-03-12 15:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200312151654.7218-6-l.wojciechow@partner.samsung.com>
2020-03-12 15:19 ` [dpdk-test-report] |WARNING| pw66595 [PATCH 05/13] app/test: introduce librte_security tests 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).