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 383B1A00C2 for ; Mon, 26 Sep 2022 17:00:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 368154114B; Mon, 26 Sep 2022 17:00:01 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 2AF3C4282D for ; Mon, 26 Sep 2022 16:59:58 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 25E2A12231E; Mon, 26 Sep 2022 16:59:58 +0200 (CEST) Subject: |WARNING| pw116893 [PATCH v5 3/7] ethdev: get meter profile/policy objects In-Reply-To: <20220926145745.3962600-4-akozyrev@nvidia.com> References: <20220926145745.3962600-4-akozyrev@nvidia.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Alexander Kozyrev Message-Id: <20220926145958.25E2A12231E@dpdk.org> Date: Mon, 26 Sep 2022 16:59:58 +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/116893 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #209: FILE: lib/ethdev/rte_mtr.c:59: +#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, 198 lines checked