[dpdk-test-report] |WARNING| pw44639 [03/10] crypto/caam_jr: add HW config for job rings

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Sep 13 08:10:01 CEST 2018


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#1093: FILE: drivers/crypto/caam_jr/caam_jr_hw_specific.h:37:
+#define SEC_ASSERT(cond, altRet, ...) {\
+	if (unlikely(!(cond))) {\
+		CAAM_JR_ERR(__VA_ARGS__); \
+			return altRet; \
+	} \
+}

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#1100: FILE: drivers/crypto/caam_jr/caam_jr_hw_specific.h:44:
+#define SEC_DP_ASSERT(cond, altRet, ...) {\
+	if (unlikely(!(cond))) {\
+		CAAM_JR_DP_ERR(__VA_ARGS__); \
+			return altRet; \
+	} \
+}

WARNING:NAKED_SSCANF: unchecked sscanf return value
#1978: FILE: drivers/crypto/caam_jr/caam_jr_uio.c:122:
+	sscanf(filename + strlen(match), "%d", number);

total: 0 errors, 3 warnings, 2276 lines checked


More information about the test-report mailing list