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 23C7EA00C2 for ; Thu, 10 Feb 2022 16:43:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 180F742755; Thu, 10 Feb 2022 16:43:07 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 5B676426ED; Thu, 10 Feb 2022 16:43:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644507785; x=1676043785; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mniVCn9k5i1gPUhp/5Epowbf2EvwvceUaEu1OsgzmG0=; b=kEL2TsEeC+2zpADWE74aqHkeSXy19XKc7rTz7r31ERaDV8xDUj+fJTYN 7MxzKAD6w99kfmYc8jesNugsyC0gMvCHspU0opEKF6u3ud5bPqbYG46hH 1fB8fGCaDxKazYQ8rm+yE9L+OdwVjgw+YQrN2B8r9spC6PFsuwWgU+2AH 8MnppNkSa1ak4p5wpOywHxfYTvs+dBLedKc7o93F7sHmMjrfUTos+mp22 PNBASAy6VuqY03C/RohmguER2l5JamyiMlaRH3YS2hrUw7uRvE8rlhacL yWG2ZHqNO4sNds+u1+AFkmWHwb88PuLP91SWzKjdUCZAElOt75HBSsb2a g==; X-IronPort-AV: E=McAfee;i="6200,9189,10254"; a="247101118" X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="247101118" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 07:42:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="485723401" Received: from silpixa00399126.ir.intel.com ([10.237.223.162]) by orsmga006.jf.intel.com with ESMTP; 10 Feb 2022 07:42:52 -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 v4 2/7] eventdev: fix header build with C++ Date: Thu, 10 Feb 2022 15:42:34 +0000 Message-Id: <20220210154239.587185-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220210154239.587185-1-bruce.richardson@intel.com> References: <20220204174209.440207-1-bruce.richardson@intel.com> <20220210154239.587185-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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