From patchwork Wed Mar 4 21:50:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Marchand X-Patchwork-Id: 3859 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id AA79F9A8F; Wed, 4 Mar 2015 22:50:34 +0100 (CET) Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 572875A9A for ; Wed, 4 Mar 2015 22:50:33 +0100 (CET) Received: by wghl2 with SMTP id l2so5710858wgh.8 for ; Wed, 04 Mar 2015 13:50:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=PCkS/Oz2lZ7K7Dt84HdoBQg3EezM35uQDPpo2H+EZQg=; b=FiL4E2yMcbDOpnw0bGdhHuZdhUBwtTRvmA5P7qDve43F+68VPob93uD9yOg6NWAHpB 202lHgmIb1ZlRrRx7U97dgbG5/ZPEK0sDHMh/PosBccf1SOybT2lWHh/jMe5yPQ67mRR rK3yhY9XTB96+ciOw3jJ4j6PNnSsqfcA49FV1leL3+LbGgfyHspIE8A9y9oo/8/2ljJS woo0FCN11Yr6d3wemNv2jzlbr/m7Vi5DDtGIqJ85m4gYG+2JnhGYDn8d7FB4zoZNBs6i 8gypmNTtpl3LNZv6i8vYBIODwRfWy5x6Q+2OWu0sl5FR1tMxUQS3wJJXByUCNnfKKpI+ vE7Q== X-Gm-Message-State: ALoCoQlSRX+EL5U9Cc8kFWoU9UhPg+ueSNtmzxWDwvfauOTngR4jJhNyBgyodV7KvgAzlG3QULUQ X-Received: by 10.180.208.74 with SMTP id mc10mr60074179wic.38.1425505833250; Wed, 04 Mar 2015 13:50:33 -0800 (PST) Received: from alcyon.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id bf8sm6037947wjb.37.2015.03.04.13.50.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Mar 2015 13:50:31 -0800 (PST) From: David Marchand To: dev@dpdk.org Date: Wed, 4 Mar 2015 22:50:10 +0100 Message-Id: <1425505810-9269-11-git-send-email-david.marchand@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1425505810-9269-1-git-send-email-david.marchand@6wind.com> References: <1425505810-9269-1-git-send-email-david.marchand@6wind.com> Subject: [dpdk-dev] [PATCH 10/10] eal: no need for E_RTE_NO_TAILQ anymore X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" There is no remaining reference to this errno. Signed-off-by: David Marchand --- app/test/test_errno.c | 2 +- lib/librte_eal/common/eal_common_errno.c | 2 -- lib/librte_eal/common/include/rte_errno.h | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/test/test_errno.c b/app/test/test_errno.c index c903b19..f221eac 100644 --- a/app/test/test_errno.c +++ b/app/test/test_errno.c @@ -58,7 +58,7 @@ test_errno(void) /* use a small selection of standard errors for testing */ int std_errs[] = {EAGAIN, EBADF, EACCES, EINTR, EINVAL}; /* test ALL registered RTE error codes for overlap */ - int rte_errs[] = {E_RTE_SECONDARY, E_RTE_NO_CONFIG, E_RTE_NO_TAILQ}; + int rte_errs[] = {E_RTE_SECONDARY, E_RTE_NO_CONFIG}; unsigned i; rte_errno = 0; diff --git a/lib/librte_eal/common/eal_common_errno.c b/lib/librte_eal/common/eal_common_errno.c index 259f895..de48d8e 100644 --- a/lib/librte_eal/common/eal_common_errno.c +++ b/lib/librte_eal/common/eal_common_errno.c @@ -64,8 +64,6 @@ rte_strerror(int errnum) return "Invalid call in secondary process"; case E_RTE_NO_CONFIG: return "Missing rte_config structure"; - case E_RTE_NO_TAILQ: - return "No TAILQ initialised"; default: strerror_r(errnum, RTE_PER_LCORE(retval), RETVAL_SZ); } diff --git a/lib/librte_eal/common/include/rte_errno.h b/lib/librte_eal/common/include/rte_errno.h index 45910cd..2e5cc45 100644 --- a/lib/librte_eal/common/include/rte_errno.h +++ b/lib/librte_eal/common/include/rte_errno.h @@ -84,7 +84,6 @@ enum { E_RTE_SECONDARY, /**< Operation not allowed in secondary processes */ E_RTE_NO_CONFIG, /**< Missing rte_config */ - E_RTE_NO_TAILQ, /**< Uninitialised TAILQ */ RTE_MAX_ERRNO /**< Max RTE error number */ };