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 5BD84A00C2; Thu, 10 Feb 2022 13:03:40 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D5A4426E2; Thu, 10 Feb 2022 13:03:40 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 4CA624013F; Thu, 10 Feb 2022 13:03:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644494618; x=1676030618; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mniVCn9k5i1gPUhp/5Epowbf2EvwvceUaEu1OsgzmG0=; b=G+JU8eQw77pMk8BFJfVp70diroOgxqL7r0o+1mr0F/sQ/eJGhSJiqR5Z ru2RVhVk7/kqnQk0GcSJJiXsJDQ6FE59505808RLeL9qgLVQ3nB09K4Bk 8FSZG12QUVYQP6hCsPfNGSczlgNZHsx5AXDO5LH95dZsx/I/saYBdrPRs 5qLdWhm7IgLUWq53isfewy4ayh7H/KCWMP54A235IjrGyGiSWntKT5Q7G yb+OhEvMDxWYl/0cGhS7J8rEiIrtcUR75AlnMmqa+5qaPBDK+hALXMr9f p+tHPGUBXUmRPt9HyEJG+v6r32gtwyLAph7krXMCmZOzT4l7PqK6YDRiF Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10253"; a="230121039" X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="230121039" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 04:03:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,358,1635231600"; d="scan'208";a="622658272" Received: from silpixa00399126.ir.intel.com ([10.237.223.162]) by FMSMGA003.fm.intel.com with ESMTP; 10 Feb 2022 04:03:35 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , erik.g.carrillo@intel.com, skori@marvell.com, stable@dpdk.org, Jerin Jacob , Jerin Jacob , Pavan Nikhilesh , David Marchand Subject: [PATCH v2 2/7] eventdev: fix header build with C++ Date: Thu, 10 Feb 2022 12:02:52 +0000 Message-Id: <20220210120257.585822-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220210120257.585822-1-bruce.richardson@intel.com> References: <20220204174209.440207-1-bruce.richardson@intel.com> <20220210120257.585822-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The eventdev headers had issues when used from C++ * Missing closing "}" for the extern "C" block * No automatic casting to/from void * Fixes: a6562f6d6f8e ("eventdev: introduce event timer adapter") Fixes: 32e326869ed6 ("eventdev: add tracepoints") Cc: erik.g.carrillo@intel.com Cc: skori@marvell.com Cc: stable@dpdk.org Signed-off-by: Bruce Richardson Acked-by: Jerin Jacob --- lib/eventdev/rte_event_timer_adapter.h | 3 +++ lib/eventdev/rte_eventdev.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/eventdev/rte_event_timer_adapter.h b/lib/eventdev/rte_event_timer_adapter.h index 1551741820..1fe4dd8e8f 100644 --- a/lib/eventdev/rte_event_timer_adapter.h +++ b/lib/eventdev/rte_event_timer_adapter.h @@ -678,4 +678,7 @@ rte_event_timer_cancel_burst(const struct rte_event_timer_adapter *adapter, return adapter->cancel_burst(adapter, evtims, nb_evtims); } +#ifdef __cplusplus +} +#endif #endif /* __RTE_EVENT_TIMER_ADAPTER_H__ */ diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h index eef47d8acc..25fb7c89dd 100644 --- a/lib/eventdev/rte_eventdev.h +++ b/lib/eventdev/rte_eventdev.h @@ -1805,7 +1805,7 @@ __rte_event_enqueue_burst(uint8_t dev_id, uint8_t port_id, return 0; } #endif - rte_eventdev_trace_enq_burst(dev_id, port_id, ev, nb_events, fn); + rte_eventdev_trace_enq_burst(dev_id, port_id, ev, nb_events, (void *)fn); /* * Allow zero cost non burst mode routine invocation if application * requests nb_events as const one -- 2.32.0