From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 1DDC2A00C2;
	Sat, 25 Apr 2020 13:02:28 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id DA1271C1D4;
	Sat, 25 Apr 2020 13:02:18 +0200 (CEST)
Received: from mga18.intel.com (mga18.intel.com [134.134.136.126])
 by dpdk.org (Postfix) with ESMTP id AF5DC1C1BD
 for <dev@dpdk.org>; Sat, 25 Apr 2020 13:02:15 +0200 (CEST)
IronPort-SDR: hO3UhKGSl1ydpBOyrmY2aN9iv/Z4oCIoz7XNZ1GYn+TKsvwC8Tbyos2HqnPSKevF+vK/e4Vw+V
 GwvPPsscGiAQ==
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from fmsmga005.fm.intel.com ([10.253.24.32])
 by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;
 25 Apr 2020 04:02:15 -0700
IronPort-SDR: qCqp2bBInVSlWz0Rj6YLeNFs2tld6dZowgKOM7XXyK47xd8y0csmk4qEdIJMZbcN3tc7Myux2B
 MjaWqIEhup2A==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.73,315,1583222400"; d="scan'208";a="457729291"
Received: from npg-dpdk-haiyue-3.sh.intel.com ([10.67.119.46])
 by fmsmga005.fm.intel.com with ESMTP; 25 Apr 2020 04:02:13 -0700
From: Haiyue Wang <haiyue.wang@intel.com>
To: dev@dpdk.org, thomas@monjalon.net, david.marchand@redhat.com,
 bruce.richardson@intel.com, ferruh.yigit@intel.com, nhorman@tuxdriver.com,
 mdr@ashroe.eu
Cc: Haiyue Wang <haiyue.wang@intel.com>
Date: Sat, 25 Apr 2020 18:56:15 +0800
Message-Id: <20200425105620.73021-2-haiyue.wang@intel.com>
X-Mailer: git-send-email 2.26.2
In-Reply-To: <20200425105620.73021-1-haiyue.wang@intel.com>
References: <20190613142344.9188-1-nhorman@tuxdriver.com>
 <20200425105620.73021-1-haiyue.wang@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [PATCH v7 1/6] eal: add internal ABI tag definition
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
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>

Introduce the __rte_internal tag to mark internal ABI function which is
used only by the drivers or other libraries.

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
---
 lib/librte_eal/include/rte_compat.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/lib/librte_eal/include/rte_compat.h b/lib/librte_eal/include/rte_compat.h
index 3eb33784b..4cd8f68d6 100644
--- a/lib/librte_eal/include/rte_compat.h
+++ b/lib/librte_eal/include/rte_compat.h
@@ -19,4 +19,17 @@ __attribute__((section(".text.experimental")))
 
 #endif
 
+#ifndef ALLOW_INTERNAL_API
+
+#define __rte_internal \
+__attribute__((error("Symbol is not public ABI"), \
+section(".text.internal")))
+
+#else
+
+#define __rte_internal \
+__attribute__((section(".text.internal")))
+
+#endif
+
 #endif /* _RTE_COMPAT_H_ */
-- 
2.26.2