From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] cryptodev: fix RTE_PMD_DEBUG_TRACE redefinition Date: Thu, 10 Mar 2016 19:23:25 +0100 Message-ID: <1894237.OM5rSysoGp@xps13> References: <1456961677-1116-1-git-send-email-marcdevel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Marc Sune Return-path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 9F07A2BC9 for ; Thu, 10 Mar 2016 19:25:07 +0100 (CET) Received: by mail-wm0-f49.google.com with SMTP id l68so40099275wml.1 for ; Thu, 10 Mar 2016 10:25:07 -0800 (PST) In-Reply-To: <1456961677-1116-1-git-send-email-marcdevel@gmail.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-03-03 00:34, Marc Sune: > RTE_PMD_DEBUG_TRACE used RTE_FUNC_PTR_OR_ERR_RET was redefined > in rte_cryptodev_pmd.h which produced MACRO redefinition warnings > when including both rte_cryptodev_pmd.h and rte_ethdev.h. > > This commit moves MACRO definition to rte_cryptodev.c to prevent > this warning. It is not the right fix. This macro should probably be renamed with a crypto prefix or defined only once (same thing for ethdev). The function rte_pmd_debug_trace() and the macros RTE_PROC_PRIMARY_OR_ERR_RET, RTE_PROC_PRIMARY_OR_RET, RTE_FUNC_PTR_OR_ERR_RET, RTE_FUNC_PTR_OR_RET should not be in lib/librte_eal/common/include/rte_dev.h. The macros call RTE_PMD_DEBUG_TRACE which is defined elsewhere. The rte_log.h is probably a better place. But why these macros have no PMD prefix?