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 93E63A328D
	for <public@inbox.dpdk.org>; Tue, 22 Oct 2019 11:33:22 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 38E5E1BEC1;
	Tue, 22 Oct 2019 11:33:13 +0200 (CEST)
Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com
 [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 2171F1BEB8
 for <dev@dpdk.org>; Tue, 22 Oct 2019 11:33:10 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
 s=mimecast20190719; t=1571736789;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=OcXTvxCMrU2lMTlcxeViUI6FyPWdXnUAJ5C6XYBnmXs=;
 b=ZBfDQmYKb/AKEBb8AAxsyx+hKWWlfHToEAy1+sl6fpXDmXMJ/VK9Rf9T0SoX/Pwl9IS7/6
 UzK2OnNlRZ1WtPIZvoYGk1sSsxSBiW/7ecy71fPJD0Q0lZeJ/TAXhzJxYhRpIxX71xnvrI
 qwOc12SqljUkHN+xKu5G/NDxnom6XAg=
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
 [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
 us-mta-371-iPfX5fH2NL-dtIkjb0QJqw-1; Tue, 22 Oct 2019 05:33:08 -0400
Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com
 [10.5.11.11])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D1F6B800D53;
 Tue, 22 Oct 2019 09:33:06 +0000 (UTC)
Received: from dmarchan.remote.csb (ovpn-204-129.brq.redhat.com
 [10.40.204.129])
 by smtp.corp.redhat.com (Postfix) with ESMTP id 0C1EE6012C;
 Tue, 22 Oct 2019 09:33:03 +0000 (UTC)
From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org
Cc: stephen@networkplumber.org, anatoly.burakov@intel.com, thomas@monjalon.net,
 Neil Horman <nhorman@tuxdriver.com>,
 John McNamara <john.mcnamara@intel.com>,
 Marko Kovacevic <marko.kovacevic@intel.com>
Date: Tue, 22 Oct 2019 11:32:35 +0200
Message-Id: <1571736761-32134-3-git-send-email-david.marchand@redhat.com>
In-Reply-To: <1571736761-32134-1-git-send-email-david.marchand@redhat.com>
References: <1571736761-32134-1-git-send-email-david.marchand@redhat.com>
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11
X-MC-Unique: iPfX5fH2NL-dtIkjb0QJqw-1
X-Mimecast-Spam-Score: 0
Content-Type: text/plain; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable
Subject: [dpdk-dev] [PATCH 2/8] eal: remove deprecated CPU flags check
	function
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>

Remove rte_cpu_check_supported as announced previously.

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 doc/guides/rel_notes/deprecation.rst                 |  3 ---
 doc/guides/rel_notes/release_19_11.rst               |  3 +++
 lib/librte_eal/common/eal_common_cpuflags.c          | 11 -----------
 lib/librte_eal/common/include/generic/rte_cpuflags.h |  9 ---------
 lib/librte_eal/rte_eal_version.map                   |  1 -
 5 files changed, 3 insertions(+), 24 deletions(-)

diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/de=
precation.rst
index e4a33e0..50ac348 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -34,9 +34,6 @@ Deprecation Notices
=20
     + ``rte_eal_devargs_type_count``
=20
-* eal: The ``rte_cpu_check_supported`` function has been deprecated since
-  v17.08 and will be removed.
-
 * eal: The ``rte_malloc_virt2phy`` function has been deprecated and replac=
ed
   by ``rte_malloc_virt2iova`` since v17.11 and will be removed.
=20
diff --git a/doc/guides/rel_notes/release_19_11.rst b/doc/guides/rel_notes/=
release_19_11.rst
index d7e14b4..8bf2437 100644
--- a/doc/guides/rel_notes/release_19_11.rst
+++ b/doc/guides/rel_notes/release_19_11.rst
@@ -204,6 +204,9 @@ ABI Changes
=20
 * eal: made the ``lcore_config`` struct and global symbol private.
=20
+* eal: removed the ``rte_cpu_check_supported`` function, replaced by
+  ``rte_cpu_is_supported`` since dpdk v17.08.
+
=20
 Shared Library Versions
 -----------------------
diff --git a/lib/librte_eal/common/eal_common_cpuflags.c b/lib/librte_eal/c=
ommon/eal_common_cpuflags.c
index 3a055f7..dc5f75d 100644
--- a/lib/librte_eal/common/eal_common_cpuflags.c
+++ b/lib/librte_eal/common/eal_common_cpuflags.c
@@ -7,17 +7,6 @@
 #include <rte_common.h>
 #include <rte_cpuflags.h>
=20
-/**
- * Checks if the machine is adequate for running the binary. If it is not,=
 the
- * program exits with status 1.
- */
-void
-rte_cpu_check_supported(void)
-{
-=09if (!rte_cpu_is_supported())
-=09=09exit(1);
-}
-
 int
 rte_cpu_is_supported(void)
 {
diff --git a/lib/librte_eal/common/include/generic/rte_cpuflags.h b/lib/lib=
rte_eal/common/include/generic/rte_cpuflags.h
index 156ea00..872f0eb 100644
--- a/lib/librte_eal/common/include/generic/rte_cpuflags.h
+++ b/lib/librte_eal/common/include/generic/rte_cpuflags.h
@@ -49,15 +49,6 @@ rte_cpu_get_flag_enabled(enum rte_cpu_flag_t feature);
 /**
  * This function checks that the currently used CPU supports the CPU featu=
res
  * that were specified at compile time. It is called automatically within =
the
- * EAL, so does not need to be used by applications.
- */
-__rte_deprecated
-void
-rte_cpu_check_supported(void);
-
-/**
- * This function checks that the currently used CPU supports the CPU featu=
res
- * that were specified at compile time. It is called automatically within =
the
  * EAL, so does not need to be used by applications.  This version returns=
 a
  * result so that decisions may be made (for instance, graceful shutdowns)=
.
  */
diff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_ve=
rsion.map
index aeedf39..0887549 100644
--- a/lib/librte_eal/rte_eal_version.map
+++ b/lib/librte_eal/rte_eal_version.map
@@ -8,7 +8,6 @@ DPDK_2.0 {
 =09per_lcore__rte_errno;
 =09rte_calloc;
 =09rte_calloc_socket;
-=09rte_cpu_check_supported;
 =09rte_cpu_get_flag_enabled;
 =09rte_cycles_vmware_tsc_map;
 =09rte_delay_us;
--=20
1.8.3.1