|WARNING| pw106611 [PATCH 4/5] examples/fips_validation: allow json file as input

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Jan 27 15:52:38 CET 2022


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

_coding style issues_


ERROR:TRAILING_STATEMENTS: trailing statements should be on next line
#138: FILE: examples/fips_validation/main.c:447:
+		if (use_json) json_decref(json_info.json_root);

ERROR:TRAILING_STATEMENTS: trailing statements should be on next line
#171: FILE: examples/fips_validation/main.c:1259:
+	if (info.file_type != FIPS_TYPE_JSON) fips_test_write_one_case();

ERROR:TRAILING_STATEMENTS: trailing statements should be on next line
#188: FILE: examples/fips_validation/main.c:1294:
+	if (info.file_type != FIPS_TYPE_JSON) fprintf(info.fp_wr, "
");

ERROR:SWITCH_CASE_INDENT_LEVEL: switch and case should be at the same indent
#257: FILE: examples/fips_validation/main.c:1951:
+	switch (info.algo) {
+		case FIPS_TEST_ALGO_AES_GCM:
[...]
+		default:

ERROR:TRAILING_STATEMENTS: trailing statements should be on next line
#264: FILE: examples/fips_validation/main.c:1958:
+	if (ret < 0) return ret;

ERROR:TRAILING_STATEMENTS: trailing statements should be on next line
#267: FILE: examples/fips_validation/main.c:1961:
+	if (ret < 0) return ret;

ERROR:TRAILING_STATEMENTS: trailing statements should be on next line
#270: FILE: examples/fips_validation/main.c:1964:
+	if (ret < 0) return ret;

total: 7 errors, 0 warnings, 252 lines checked


More information about the test-report mailing list