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 D087EA00C3 for ; Wed, 14 Sep 2022 10:00:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 998EC42B73; Wed, 14 Sep 2022 10:00:10 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id BB2044282E for ; Wed, 14 Sep 2022 10:00:09 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id B2167121F02; Wed, 14 Sep 2022 10:00:09 +0200 (CEST) Subject: |WARNING| pw116280 [PATCH v6 08/27] eal: deprecate RTE_FUNC_PTR_* macros In-Reply-To: <20220914075841.51555-9-david.marchand@redhat.com> References: <20220914075841.51555-9-david.marchand@redhat.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: David Marchand Message-Id: <20220914080009.B2167121F02@dpdk.org> Date: Wed, 14 Sep 2022 10:00:09 +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/116280 _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