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 D8C92A0561 for ; Thu, 18 Mar 2021 09:59:35 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D514D140E19; Thu, 18 Mar 2021 09:59:35 +0100 (CET) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mails.dpdk.org (Postfix) with ESMTP id BB665140D3A for ; Thu, 18 Mar 2021 09:59:34 +0100 (CET) Received: by dpdk.org (Postfix, from userid 1017) id B89644C8B; Thu, 18 Mar 2021 09:59:34 +0100 (CET) In-Reply-To: <20210318085815.804896-2-lizh@nvidia.com> References: <20210318085815.804896-2-lizh@nvidia.com> To: test-report@dpdk.org Cc: Li Zhang Message-Id: <20210318085934.B89644C8B@dpdk.org> Date: Thu, 18 Mar 2021 09:59:34 +0100 (CET) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw89460 [PATCH 2/2] [RFC]: ethdev: manage meter API object handles by the drivers 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/89460 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #132: FILE: lib/librte_ethdev/rte_mtr.c:60: +#define RTE_MTR_FUNC_PTR(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) \ + return NULL; \ + \ + ops->func; \ +}) total: 0 errors, 1 warnings, 591 lines checked