* [dpdk-test-report] |WARNING| pw35761 [PATCH RFC 1/5] bpf: add BPF loading and execution framework
[not found] <1520472602-1483-2-git-send-email-konstantin.ananyev@intel.com>
@ 2018-03-08 1:32 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2018-03-08 1:32 UTC (permalink / raw)
To: test-report; +Cc: Konstantin Ananyev
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/35761
_coding style issues_
WARNING:SPACING: space prohibited between function name and open parenthesis '('
#206: 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 '('
#211: 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 '('
#222: 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 '('
#229: 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
#231: 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_LOG(ERR, USER1, \
+ "%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, 5 warnings, 1164 lines checked
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-03-08 1:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1520472602-1483-2-git-send-email-konstantin.ananyev@intel.com>
2018-03-08 1:32 ` [dpdk-test-report] |WARNING| pw35761 [PATCH RFC 1/5] bpf: add BPF loading and execution framework 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).