From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 01AA9A04F9 for ; Thu, 9 Jan 2020 14:34:51 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E9BFD1DD88; Thu, 9 Jan 2020 14:34:50 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by dpdk.org (Postfix) with ESMTP id 84E411DD80 for ; Thu, 9 Jan 2020 14:34:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578576889; 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: in-reply-to:in-reply-to:references:references; bh=9PsUPtJWQCx76ZRN+MGK51l3x3+yhP0lTz25VqXuLoE=; b=So+reYuVPflcp+gyeuezsKJYVRcMTGneuZNs5a+yX3hV3u76fW3e7H6HTNLJSBMp2fC3aV QoJhDImihyC3TjL9yQ/E438EArzZm5nsc1hkLBF2ljgkLX60z4TTJtQrTkGoBf+8rcz/D5 meIzWJz11PuEczHbGyVFJB+BgDxol1Y= 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-140-Aidp_NygNVSyxKCXUtHICA-1; Thu, 09 Jan 2020 08:34:47 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2DA6A1005502; Thu, 9 Jan 2020 13:34:46 +0000 (UTC) Received: from rh.redhat.com (unknown [10.36.118.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id F42257C3CF; Thu, 9 Jan 2020 13:34:44 +0000 (UTC) From: Kevin Traynor To: stable@dpdk.org Cc: ktraynor@redhat.com, Stephen Hemminger , Ferruh Yigit Date: Thu, 9 Jan 2020 13:34:27 +0000 Message-Id: <20200109133433.12494-2-ktraynor@redhat.com> In-Reply-To: <20200109133433.12494-1-ktraynor@redhat.com> References: <20200109133433.12494-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: Aidp_NygNVSyxKCXUtHICA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] [18.11 1/7] eal: drop unused macros for primary process check X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: Stephen Hemminger [ upstream commit e37aad5ed3f52be57a8b6e20809994c803578b13 ] No usage in current DPDK code base. Signed-off-by: Stephen Hemminger Reviewed-by: Ferruh Yigit --- lib/librte_eal/common/include/rte_dev.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/commo= n/include/rte_dev.h index 24e637d27..850b03e13 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -77,19 +77,4 @@ rte_pmd_debug_trace(const char *func_name, const char *f= mt, ...) #endif =20 -/* Macros for checking for restricting functions to primary instance only = */ -#define RTE_PROC_PRIMARY_OR_ERR_RET(retval) do { \ -=09if (rte_eal_process_type() !=3D RTE_PROC_PRIMARY) { \ -=09=09RTE_PMD_DEBUG_TRACE("Cannot run in secondary processes\n"); \ -=09=09return retval; \ -=09} \ -} while (0) - -#define RTE_PROC_PRIMARY_OR_RET() do { \ -=09if (rte_eal_process_type() !=3D RTE_PROC_PRIMARY) { \ -=09=09RTE_PMD_DEBUG_TRACE("Cannot run in secondary processes\n"); \ -=09=09return; \ -=09} \ -} while (0) - /* Macros to check for invalid function pointers */ #define RTE_FUNC_PTR_OR_ERR_RET(func, retval) do { \ --=20 2.21.1