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 D65D3A0546 for ; Thu, 27 May 2021 10:26:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C559940150; Thu, 27 May 2021 10:26:28 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id A4CFD40143 for ; Thu, 27 May 2021 10:26:27 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 88F2D122E1E; Thu, 27 May 2021 10:26:27 +0200 (CEST) In-Reply-To: <20210527082504.3495-1-ivan.malov@oktetlabs.ru> References: <20210527082504.3495-1-ivan.malov@oktetlabs.ru> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Ivan Malov Message-Id: <20210527082627.88F2D122E1E@dpdk.org> Date: Thu, 27 May 2021 10:26:27 +0200 (CEST) Subject: [dpdk-test-report] |WARNING| pw93473 [RFC PATCH] ethdev: add support for testpmd-compliant flow rule dumping 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/93473 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #233: FILE: lib/ethdev/rte_flow_snprint.c:77: +#define SNPRINT(_type, _fmt) \ + do { \ + const _type *vp = value_ptr; \ + size_t write_size_max; \ + int retv; \ + \ + write_size_max = buf_size - \ + RTE_MIN(buf_size, *nb_chars_total); \ + retv = snprintf(buf + *nb_chars_total, write_size_max, \ + _fmt, *vp); \ + if (retv < 0) \ + return -EFAULT; \ + \ + *nb_chars_total += retv; \ + \ + return 0; \ + } while (0) total: 0 errors, 1 warnings, 1736 lines checked