From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 1017) id 1C7E11C650; Fri, 13 Apr 2018 16:44:48 +0200 (CEST) In-Reply-To: <1523630598-24606-3-git-send-email-konstantin.ananyev@intel.com> References: <1523630598-24606-3-git-send-email-konstantin.ananyev@intel.com> To: test-report@dpdk.org Cc: Konstantin Ananyev Message-Id: <20180413144448.1C7E11C650@dpdk.org> Date: Fri, 13 Apr 2018 16:44:48 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw38044 [PATCH v4 02/10] bpf: add BPF loading and execution framework X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2018 14:44:48 -0000 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/38044 _coding style issues_ WARNING:SPACING: space prohibited between function name and open parenthesis '(' #212: 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 '(' #217: 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 '(' #228: 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 '(' #235: 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 #237: 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, 5 warnings, 1255 lines checked