[dpdk-test-report] |WARNING| pw39379 [PATCH v5 1/8] bpf: add BPF loading and execution framework

checkpatch at dpdk.org checkpatch at dpdk.org
Fri May 4 14:47:52 CEST 2018


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

_coding style issues_


WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE:
#68: FILE: MAINTAINERS:1053:
+M: Konstantin Ananyev <konstantin.ananyev at intel.com>

WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE:
#69: FILE: MAINTAINERS:1054:
+F: lib/librte_bpf/

WARNING:MAINTAINERS_STYLE: MAINTAINERS entries use one tab after TYPE:
#70: FILE: MAINTAINERS:1055:
+F: doc/guides/prog_guide/bpf_lib.rst

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#376: FILE: lib/librte_bpf/bpf_exec.c:25:
+		((type)(reg)[(ins)->dst_reg] op (type)(reg)[(ins)->src_reg]) ? \

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#381: FILE: lib/librte_bpf/bpf_exec.c:30:
+		((type)(reg)[(ins)->dst_reg] op (type)(ins)->imm) ? \

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#392: FILE: lib/librte_bpf/bpf_exec.c:41:
+		(type)(reg)[(ins)->dst_reg] op (type)(reg)[(ins)->src_reg])

WARNING:SPACING: space prohibited between function name and open parenthesis '('
#399: FILE: lib/librte_bpf/bpf_exec.c:48:
+		(type)(reg)[(ins)->dst_reg] op (type)(ins)->imm)

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#401: FILE: lib/librte_bpf/bpf_exec.c:50:
+#define BPF_DIV_ZERO_CHECK(bpf, reg, ins, type) do { \
+	if ((type)(reg)[(ins)->src_reg] == 0) { \
+		RTE_BPF_LOG(ERR, \
+			"%s(%p): division by 0 at pc: %#zx;
", \
+			__func__, bpf, \
+			(uintptr_t)(ins) - (uintptr_t)(bpf)->prm.ins); \
+		return 0; \
+	} \
+} while (0)

total: 0 errors, 8 warnings, 1420 lines checked


More information about the test-report mailing list