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 E9596A0350; Wed, 1 Jul 2020 22:28:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C4591D649; Wed, 1 Jul 2020 22:24:45 +0200 (CEST) Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by dpdk.org (Postfix) with ESMTP id 5BD881D539 for ; Wed, 1 Jul 2020 22:24:43 +0200 (CEST) Received: by mail-pj1-f66.google.com with SMTP id gc15so3407307pjb.0 for ; Wed, 01 Jul 2020 13:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HVxhS9CDT6vcCZ3vdHAapIoebNGTFRveRuUj4bTdETQ=; b=aBndz1XsgaO5mWlWphp4PF+WWZFm8ZF1rReeXs+ZWEClfWVmAzF+rlMQwKIzdpcijA yl2TEDf7z8Hs9A9xWIr86DYhZPeSV+hgErTh1iW18DS/8FVmGd2k3PK0wlvAynaq50QO scAdCkSVm1FVsXe3RBgAJ7CybEEujMFFv6vkNr9jTfZGUl1ElEd9mWJJcZ88QJnBpEzk OEhvxrhDf9f9Hcq7+fpjUXJ/3jLsozPELu6eNjJhLm7Jgd5SC0UZE7VRr2xOxX8kxLOd IzSXtIeNOM9IzBo+m0CBsJK24bi3xMKRlfEtUyuyMpJjfLiGGOfThpN0RMarHZpQijnm ZQyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HVxhS9CDT6vcCZ3vdHAapIoebNGTFRveRuUj4bTdETQ=; b=p+MhUKHdWP3WC4x0DUti52AqmrRMCiXLggdzfPWu0pBabeYROgsAUSSJeESQB/WXvF frxCMGrVpOcv3sya9a1D4GCNA5BmkkWs6EHOSsrW163h5XuTMeVYM7KSgCoBYiMFGI0d CzeBBw29gBwdhqZCOW1QySmKDpW/H/kgyFoJtPVh3/Ys9N8JN678gVpGV61Y1UY/1J9n d1UQccFhq+SPMedflh0V8MbPlutwZIfFSqnJRXSYk2Pn7TJpOgx0s1WOHpduRP/AT0Rf psG/LkhjoOLxs7cw+PTuJE4noUxlQUOCC/95Z8doQia1Sg/EBU4Sh9josRBZ8UxSr5dv 9r4Q== X-Gm-Message-State: AOAM5321LSZlzdjYoR4uSyb+dDNxvpNpp+0ZMhxlUxWYN4BBoy+o2yJ3 3DC8q9tPwaVHAHJDzOhn7gIQBPdagN8= X-Google-Smtp-Source: ABdhPJyD3Y5ByYuYsCTuFUhe4sJMAPt5t5HMxBP3+eG6Samwejvo9elu2COt833ReLDDBM1Ftin3yA== X-Received: by 2002:a17:90b:300d:: with SMTP id hg13mr18437427pjb.212.1593635082203; Wed, 01 Jul 2020 13:24:42 -0700 (PDT) Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id g8sm6584803pgr.70.2020.07.01.13.24.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 13:24:41 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 1 Jul 2020 13:23:57 -0700 Message-Id: <20200701202359.17006-26-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200701202359.17006-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200701202359.17006-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 25/27] eal: mark old naming as deprecated X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Use of old RTE_LCORE_FOREACH_SLAVE and rte_get_master_lcore_id() are marked as deprecated. All uses of these in DPDK itself is gone. This will cause warnings for applications still using them. Signed-off-by: Stephen Hemminger --- lib/librte_eal/include/rte_launch.h | 4 ++-- lib/librte_eal/include/rte_lcore.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/include/rte_launch.h b/lib/librte_eal/include/rte_launch.h index 9b68685d99d4..8d58ca5302a7 100644 --- a/lib/librte_eal/include/rte_launch.h +++ b/lib/librte_eal/include/rte_launch.h @@ -76,8 +76,8 @@ enum rte_rmt_call_initial_t { /** * Deprecated backward compatiable definitions */ -#define SKIP_MASTER SKIP_INITIAL -#define CALL_MASTER CALL_INITIAL +#define SKIP_MASTER _Pragma("GCC warning \"'SKIP_MASTER' is deprecated\"") SKIP_INITIAL +#define CALL_MASTER _Pragma("GCC warning \"'CALL_MASTER' is deprecated\"") CALL_INITIAL /** * Launch a function on all lcores. diff --git a/lib/librte_eal/include/rte_lcore.h b/lib/librte_eal/include/rte_lcore.h index 069cb1f427b9..eaa7c0f0b67c 100644 --- a/lib/librte_eal/include/rte_lcore.h +++ b/lib/librte_eal/include/rte_lcore.h @@ -67,6 +67,7 @@ unsigned int rte_get_initial_lcore(void); * @return * the id of the initial lcore */ +__rte_deprecated unsigned int rte_get_master_lcore(void); /** @@ -216,7 +217,8 @@ unsigned int rte_get_next_lcore(unsigned int i, int skip_initial, int wrap); /** * Backward compatibility */ -#define RTE_LCORE_FOREACH_SLAVE(x) \ +#define RTE_LCORE_FOREACH_SLAVE(x) \ + _Pragma("GCC warning \"'RTE_LCORE_FOREACH_SLAVE' macro is deprecated\"") \ RTE_LCORE_FOREACH_WORKER(x) -- 2.26.2