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 5ED56A054A for ; Mon, 5 Sep 2022 10:41:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4BFCF42B72; Mon, 5 Sep 2022 10:41:00 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 4999F42B70 for ; Mon, 5 Sep 2022 10:40:59 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 4367F121F02; Mon, 5 Sep 2022 10:40:59 +0200 (CEST) Subject: |WARNING| pw115849 [PATCH v5 08/27] eal: deprecate RTE_FUNC_PTR_* macros In-Reply-To: <20220905083933.2506819-9-david.marchand@redhat.com> References: <20220905083933.2506819-9-david.marchand@redhat.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: David Marchand Message-Id: <20220905084059.4367F121F02@dpdk.org> Date: Mon, 5 Sep 2022 10:40:59 +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/115849 _coding style issues_ ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #950: FILE: lib/eal/include/rte_dev.h:41: +#define RTE_FUNC_PTR_OR_ERR_RET(func, retval) RTE_DEPRECATED(RTE_FUNC_PTR_OR_ERR_RET) \ +do { \ if ((func) == NULL) \ return retval; \ } while (0) WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #950: FILE: lib/eal/include/rte_dev.h:41: +#define RTE_FUNC_PTR_OR_ERR_RET(func, retval) RTE_DEPRECATED(RTE_FUNC_PTR_OR_ERR_RET) \ +do { \ if ((func) == NULL) \ return retval; \ } while (0) ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #957: FILE: lib/eal/include/rte_dev.h:47: +#define RTE_FUNC_PTR_OR_RET(func) RTE_DEPRECATED(RTE_FUNC_PTR_OR_RET) \ +do { \ if ((func) == NULL) \ return; \ } while (0) WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #957: FILE: lib/eal/include/rte_dev.h:47: +#define RTE_FUNC_PTR_OR_RET(func) RTE_DEPRECATED(RTE_FUNC_PTR_OR_RET) \ +do { \ if ((func) == NULL) \ return; \ } while (0) total: 2 errors, 2 warnings, 2281 lines checked