From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B225CA0C41 for ; Thu, 16 Sep 2021 02:16:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ADDAF4003F; Thu, 16 Sep 2021 02:16:05 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 689184003C for ; Thu, 16 Sep 2021 02:16:04 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 5B013122EE7; Thu, 16 Sep 2021 02:16:04 +0200 (CEST) In-Reply-To: <20210916001416.39998-5-stephen@networkplumber.org> References: <20210916001416.39998-5-stephen@networkplumber.org> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Stephen Hemminger Message-Id: <20210916001604.5B013122EE7@dpdk.org> Date: Thu, 16 Sep 2021 02:16:04 +0200 (CEST) Subject: [dpdk-test-report] |WARNING| pw98965 [PATCH v9 04/12] bpf: add function to convert classic BPF to DPDK BPF X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Sender: "test-report" Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/98965 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #461: FILE: lib/bpf/bpf_convert.c:348: +#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, 623 lines checked