[dpdk-test-report] |WARNING| pw98378 [PATCH v4 3/8] bpf: add function to convert classic BPF to DPDK BPF
    checkpatch at dpdk.org 
    checkpatch at dpdk.org
       
    Wed Sep  8 19:17:43 CEST 2021
    
    
  
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/98378
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#452: FILE: lib/bpf/bpf_convert.c:343:
+#define BPF_EMIT_JMP							\
+			do {						\
+				if (target >= len)			\
+					goto err;			\
+				insn->off = addrs ? addrs[target] - addrs[i] - 1 : 0; \
+				/* Adjust pc relative offset for 2nd or 3rd insn. */ \
+				insn->off -= insn - tmp_insns;		\
+			} while (0)
total: 0 errors, 1 warnings, 618 lines checked
    
    
More information about the test-report
mailing list