From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 02550A00C2;
	Wed, 17 Mar 2021 17:14:18 +0100 (CET)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id A2F234069F;
	Wed, 17 Mar 2021 17:14:18 +0100 (CET)
Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182])
 by mails.dpdk.org (Postfix) with ESMTP id 594AD4067E;
 Wed, 17 Mar 2021 17:14:17 +0100 (CET)
Received: from
 linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net
 (linux.microsoft.com [13.77.154.182])
 by linux.microsoft.com (Postfix) with ESMTPSA id 7A8A520B26C5;
 Wed, 17 Mar 2021 09:14:16 -0700 (PDT)
DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7A8A520B26C5
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;
 s=default; t=1615997656;
 bh=9IaGevHq/+DtQYEMNuu2u0YzNlyUiSbPTpNfiQ85MhU=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
 b=W6VTkrcc5RbXeYC9U2DIoRv9rn8LoReZrNObTepoijE+DxkPK4NYfa77kXk1MuUjB
 vYqWuZPW9ndME+l74wAkK3hCAs/tDKJDO86RToe7p7a969Bp1LYe2dHnjyvMWPv6mI
 Fc5/R7EpLy+t8iGfBTAymmM/pc0xYnUEFx6ph1Hg=
From: Tyler Retzlaff <roretzla@linux.microsoft.com>
To: dev@dpdk.org
Cc: stable@dpdk.org, thomas@monjalon.net, david.marchand@redhat.com,
 bruce.richardson@intel.com, stephen@networkplumber.org,
 dmitry.kozliuk@gmail.com
Date: Wed, 17 Mar 2021 09:14:12 -0700
Message-Id: <1615997652-2646-1-git-send-email-roretzla@linux.microsoft.com>
X-Mailer: git-send-email 1.8.3.1
In-Reply-To: <1615959198-22128-1-git-send-email-roretzla@linux.microsoft.com>
References: <1615959198-22128-1-git-send-email-roretzla@linux.microsoft.com>
Subject: [dpdk-dev] [PATCH v2] eal: declare extern "C" linkage when building
 with __cplusplus
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Add missing extern "C" linkage for rte_reciprocal.h consistent with
other eal headers.

Fixes: ffe3ec811ef5 ("sched: introduce reciprocal divide")
Cc: stable@dpdk.org

Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---

* fixed commit title line link->linkage
* added Fixes and Cc from dmitryk feedback

 lib/librte_eal/include/rte_reciprocal.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/librte_eal/include/rte_reciprocal.h b/lib/librte_eal/include/rte_reciprocal.h
index 735adb029..fa1cb4854 100644
--- a/lib/librte_eal/include/rte_reciprocal.h
+++ b/lib/librte_eal/include/rte_reciprocal.h
@@ -29,6 +29,10 @@
 
 #include <rte_common.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct rte_reciprocal {
 	uint32_t m;
 	uint8_t sh1, sh2;
@@ -89,4 +93,8 @@ rte_reciprocal_divide_u64(uint64_t a, const struct rte_reciprocal_u64 *R)
 struct rte_reciprocal rte_reciprocal_value(uint32_t d);
 struct rte_reciprocal_u64 rte_reciprocal_value_u64(uint64_t d);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _RTE_RECIPROCAL_H_ */
-- 
2.30.0.vfs.0.2