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 9AC56A034C for ; Thu, 22 Dec 2022 07:38:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6AAFA42D31; Thu, 22 Dec 2022 07:38:32 +0100 (CET) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 3CC5042D21 for ; Thu, 22 Dec 2022 07:38:31 +0100 (CET) Received: by dpdk.org (Postfix, from userid 65534) id 37308122EC0; Thu, 22 Dec 2022 07:38:31 +0100 (CET) Subject: |WARNING| pw121268 [PATCH v4 1/6] eal: trace: add trace point emit for array In-Reply-To: <20221222063306.3383695-2-adwivedi@marvell.com> References: <20221222063306.3383695-2-adwivedi@marvell.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Ankur Dwivedi Message-Id: <20221222063831.37308122EC0@dpdk.org> Date: Thu, 22 Dec 2022 07:38:31 +0100 (CET) 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/121268 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #201: FILE: lib/eal/include/rte_trace_point.h:381: +#define rte_trace_point_emit_char_array(in, len) \ +do { \ + if (unlikely(in == NULL)) \ + return; \ + if (len > __RTE_TRACE_EMIT_ARRAY_LEN_MAX) \ + return; \ + memcpy(mem, in, len); \ + mem = RTE_PTR_ADD(mem, len); \ +} while (0) WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #234: FILE: lib/eal/include/rte_trace_point_register.h:50: +#define rte_trace_point_emit_char_array(in, len) \ +do { \ + RTE_SET_USED(in); \ + if (len > __RTE_TRACE_EMIT_ARRAY_LEN_MAX) \ + return; \ + __rte_trace_point_emit_field(len, RTE_STR(in)"[32]", "uint8_t"); \ +} while (0) total: 0 errors, 2 warnings, 93 lines checked