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 6B0F9A0350; Fri, 4 Feb 2022 18:42:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55CF540687; Fri, 4 Feb 2022 18:42:36 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id BF26840041 for ; Fri, 4 Feb 2022 18:42:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643996554; x=1675532554; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ja0j57+SzFMUqGBDQIjVZ/OP3kKyWyL0J8SUPewu1zE=; b=nlMtGS3U+kI6DtdkXfwGQZP9dWiWrirHaVISl33KEkjFXh+eB/DcOivw 7DidNmJ0jJ9zRNFop4tdNCV2q6ii4LAkBuKEJZ2MGziMHv4/7IoAr0Ews r2qJax8rC+KYfx6TgfXeN1c0DclopTJhcozQ/qvKBpFjnF6iqJU9m3nT3 U3s7/rM5TGZAWnmjDjSYnxS42+UyQiJsEICeIRPNU1vZlqoRCKy7OxHyz 20tHawLKi1hTfmK+pQqHRlYmIPrV4+ZW8zre5rh7S7NXUq7mxkjs7eOBb VMpHuWgfXQiFsM/6+T+QK0hPcrSGQbt3Af2IoHIh5JF2qVJttk2cEQkRk Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10248"; a="334805442" X-IronPort-AV: E=Sophos;i="5.88,343,1635231600"; d="scan'208";a="334805442" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2022 09:42:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,343,1635231600"; d="scan'208";a="620890324" Received: from silpixa00399126.ir.intel.com ([10.237.223.162]) by FMSMGA003.fm.intel.com with ESMTP; 04 Feb 2022 09:42:31 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Erik Gabriel Carrillo , Jerin Jacob Subject: [PATCH 2/7] eventdev: fix header build with C++ Date: Fri, 4 Feb 2022 17:42:04 +0000 Message-Id: <20220204174209.440207-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220204174209.440207-1-bruce.richardson@intel.com> References: <20220204174209.440207-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 * Signed-off-by: Bruce Richardson --- 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