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 4AA6343D00; Fri, 22 Mar 2024 14:53:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D44D4402A7; Fri, 22 Mar 2024 14:53:28 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id C7DC440284 for ; Fri, 22 Mar 2024 14:53:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711115606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KmU0Zxq0/mTmD/Nan9EaVvq/as2cXaXMZeubzdcJKp8=; b=W/lBYkqHegkWRbkH0Xg21KMRpXYC32BMJdNh6jLkbLxfh3i2FAONEYGE10aYBMHkqOfgBk 3DmhVWX/4ouFcZa23MqNzk8j6aqsAXi24Qgvl1+mot1tyOoUgsVlVPevaz36coQwMHUT+F KfwkRJwMKTtrsoUfBQCLRBd8BM63eQM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-605-jMBNb9t2PiaHrvctmm_7Fg-1; Fri, 22 Mar 2024 09:53:22 -0400 X-MC-Unique: jMBNb9t2PiaHrvctmm_7Fg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A8410185A786; Fri, 22 Mar 2024 13:53:21 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.224.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id C310D3C54; Fri, 22 Mar 2024 13:53:20 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Vamsi Attunuru , Amit Prakash Shukla , Pavan Nikhilesh Subject: [PATCH] dma/cnxk: fix driver header Date: Fri, 22 Mar 2024 14:52:55 +0100 Message-ID: <20240322135255.393511-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 Add missing 'extern "C"' to file. Using __rte_internal requires including rte_compat.h. Fixes: 1693345b6a33 ("dma/cnxk: support DMA event enqueue/dequeue") Signed-off-by: David Marchand --- drivers/dma/cnxk/cnxk_dma_event_dp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/dma/cnxk/cnxk_dma_event_dp.h b/drivers/dma/cnxk/cnxk_dma_event_dp.h index 85374792a6..06b5ca8279 100644 --- a/drivers/dma/cnxk/cnxk_dma_event_dp.h +++ b/drivers/dma/cnxk/cnxk_dma_event_dp.h @@ -5,9 +5,14 @@ #ifndef _CNXK_DMA_EVENT_DP_H_ #define _CNXK_DMA_EVENT_DP_H_ +#ifdef __cplusplus +extern "C" { +#endif + #include #include +#include #include __rte_internal @@ -21,4 +26,9 @@ uint16_t cn9k_dma_adapter_dual_enqueue(void *ws, struct rte_event ev[], uint16_t __rte_internal uintptr_t cnxk_dma_adapter_dequeue(uintptr_t get_work1); + +#ifdef __cplusplus +} +#endif + #endif /* _CNXK_DMA_EVENT_DP_H_ */ -- 2.44.0