From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stephen@networkplumber.org>
Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com
 [209.85.220.54]) by dpdk.org (Postfix) with ESMTP id 27E875A87
 for <dev@dpdk.org>; Mon, 15 Jun 2015 18:51:26 +0200 (CEST)
Received: by padev16 with SMTP id ev16so69111084pad.0
 for <dev@dpdk.org>; Mon, 15 Jun 2015 09:51:25 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references;
 bh=FfAOwlCfUE6dQ9OlS7hH58bA/9d9OYOMjv/5mOlLoaI=;
 b=d4v/5Li8E/akm8uL9fS1JP4bWmn277Pcd3kOInQb129EY8A9XtcHORn6nt+FX2m4R6
 MPbBY3eO2Zx4pm8KwV0m/VO0V7PKDMqcr4l+3PTQxq0k0kPUBhnUR340rZVc389+V6gF
 3qZ1BUQkz8n2+WLeL8dHsySDg35GxblxaiAM2S2ZCJ/lIyfYmH8aaaO8PGqZIMtvv5Jh
 lwoZ6++DZRVKsQQtYtS2JHxkMFXQUIUlmwD/6kFXt61n1yFzX3HBk13eoSuZVIaUiBN6
 UP456FXAJAamVFTpC2S0NJRofJsUodzhDCDkQCwfiohNxbmfBT9afCRFrbqYH9nFK+MQ
 6i4w==
X-Gm-Message-State: ALoCoQnqGopfCiHTAg4cicOQ+XIgW1e5LxLLISQnnFQBH/OaDEm9LguwYSR7jT6YMfttAtqT4lFN
X-Received: by 10.66.147.4 with SMTP id tg4mr51050815pab.69.1434387085470;
 Mon, 15 Jun 2015 09:51:25 -0700 (PDT)
Received: from urahara.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net.
 [50.53.82.155])
 by mx.google.com with ESMTPSA id pc9sm12790145pdb.6.2015.06.15.09.51.24
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
 Mon, 15 Jun 2015 09:51:24 -0700 (PDT)
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Date: Mon, 15 Jun 2015 09:51:13 -0700
Message-Id: <1434387073-16951-4-git-send-email-stephen@networkplumber.org>
X-Mailer: git-send-email 2.1.4
In-Reply-To: <1434387073-16951-1-git-send-email-stephen@networkplumber.org>
References: <1434387073-16951-1-git-send-email-stephen@networkplumber.org>
Cc: Stephen Hemminger <shemming@brocade.com>
Subject: [dpdk-dev] [PATCH 3/3] acl: mark deprecated functions
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Jun 2015 16:51:26 -0000

From: Stephen Hemminger <shemming@brocade.com>

To allow for compatiablity with later releases, any functions
to be removed should be marked as deprecated for one release.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 app/test/Makefile        | 8 +++++++-
 lib/librte_acl/rte_acl.h | 4 ++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/app/test/Makefile b/app/test/Makefile
index 81bd226..061a83d 100644
--- a/app/test/Makefile
+++ b/app/test/Makefile
@@ -141,9 +141,15 @@ SRCS-$(CONFIG_RTE_LIBRTE_KVARGS) += test_kvargs.c
 
 CFLAGS += -O3
 CFLAGS += $(WERROR_FLAGS)
-
 CFLAGS += -D_GNU_SOURCE
 
+# Disable warnings of deprecated-declarations in test_acl.c
+ifeq ($(CC), icc)
+CFLAGS_test_acl.o += -wd1478
+else
+CFLAGS_test_acl.o += -Wno-deprecated-declarations
+endif
+
 # Disable VTA for memcpy test
 ifeq ($(CC), gcc)
 ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1)
diff --git a/lib/librte_acl/rte_acl.h b/lib/librte_acl/rte_acl.h
index 3a93730..0c32df0 100644
--- a/lib/librte_acl/rte_acl.h
+++ b/lib/librte_acl/rte_acl.h
@@ -456,7 +456,7 @@ enum {
 int
 rte_acl_ipv4vlan_add_rules(struct rte_acl_ctx *ctx,
 	const struct rte_acl_ipv4vlan_rule *rules,
-	uint32_t num);
+	uint32_t num) __attribute__((deprecated));
 
 /**
  * Analyze set of ipv4vlan rules and build required internal
@@ -478,7 +478,7 @@ rte_acl_ipv4vlan_add_rules(struct rte_acl_ctx *ctx,
 int
 rte_acl_ipv4vlan_build(struct rte_acl_ctx *ctx,
 	const uint32_t layout[RTE_ACL_IPV4VLAN_NUM],
-	uint32_t num_categories);
+	uint32_t num_categories) __attribute__((deprecated));
 
 
 #ifdef __cplusplus
-- 
2.1.4