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 38C2FA00C2 for ; Sun, 22 May 2022 12:52:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 353B240156; Sun, 22 May 2022 12:52:38 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 0082940040 for ; Sun, 22 May 2022 12:52:37 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id F0850120945; Sun, 22 May 2022 12:52:36 +0200 (CEST) Subject: |WARNING| pw111582 [PATCH v2 3/4] ethdev: get meter profile/policy objects In-Reply-To: <20220522105102.1692526-4-akozyrev@nvidia.com> References: <20220522105102.1692526-4-akozyrev@nvidia.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Alexander Kozyrev Message-Id: <20220522105236.F0850120945@dpdk.org> Date: Sun, 22 May 2022 12:52:36 +0200 (CEST) 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 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/111582 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #198: FILE: lib/ethdev/rte_mtr.c:60: +#define RTE_MTR_HNDL_FUNC(port_id, func) \ +({ \ + const struct rte_mtr_ops *ops = \ + rte_mtr_ops_get(port_id, error); \ + if (ops == NULL) \ + return NULL; \ + \ + if (ops->func == NULL) { \ + rte_mtr_error_set(error, \ + ENOSYS, \ + RTE_MTR_ERROR_TYPE_UNSPECIFIED, \ + NULL, \ + rte_strerror(ENOSYS)); \ + return NULL; \ + } \ + \ + ops->func; \ +}) total: 0 errors, 1 warnings, 189 lines checked