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 447D4A0350; Sat, 6 Jun 2020 01:03:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 219521D68E; Sat, 6 Jun 2020 00:59:37 +0200 (CEST) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by dpdk.org (Postfix) with ESMTP id CC59C1D680 for ; Sat, 6 Jun 2020 00:59:34 +0200 (CEST) Received: by mail-pl1-f179.google.com with SMTP id t7so4276674plr.0 for ; Fri, 05 Jun 2020 15:59:34 -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=ckFE3vp3LQq5cI8PiqTw92FUiPACZEHMPCGTw/FMtBOaxyO+XwFy7clExS3lcol+5/ Ra1jDriKutBeXcU95z1gsiclT2gfHInjCJ44NyGd1l0W4KTcWGqYIqXBxqQ6TpXD5SU9 JbWwLMnovBywT3pYqsdwqII02zDS/f8Jmvj7HJUlGCKrQG+H0/dmqrGfKdp6WjaTnVfG KF7h5Wl1Z59jmNBCPQ7NPbjKueEu/JW+XGkkKlwpuM04yVzk3iw8NzSwB1N1ReBGY4BK Wr/R30v55GxVEn+NeIAyjICNCTA9jQVWNslP7G35dN94UJ20oZwcQgrot+BlKhPakdte FOYQ== 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=PHsx6HquvrRpzQp1xlfiw/fYozzVK1W32M1CXaDWszkFup92akMbzN0qUy53myOgpr CqfFvtmWaGK/jKTp/4VQyCZKn3zZnwXIAG+g6kSuBKZeHHrP9txsDvj32KuYEQPWEKdq /VeTUA9WTO0UWfZsDyiV1LVSjyGpa11JJqfmYTxfIF5e2MiHKLc11sBgTxQ5G51MLV5K 5+BGb4IDK902iz+JS2WARLHnHI/WU9v3aDeFrAC3nvbH8M3P1Pq696NC01XQN4LUKG10 NQ7Z8A2pRU0dLCa87kj+ssOmE3Qam6JmoOsaplwiMLIjWgEa6iMFuKi1QRu1k/K8ec3k Ymdg== X-Gm-Message-State: AOAM532waVRCNDkbsZoEgtYuZDk51aqRCmkjTuQEZM0Q0FycOXzDV7Q/ 2lNZ+sMLTD0kUXTyg7NEdcLqZvNsp8Y= X-Google-Smtp-Source: ABdhPJy4SmwFC7vMHZe4LxAYiqrtgCd1kCuDFIaFkqoK+ugEf7VfH5poDQYv98W+eGHShmZh906kEg== X-Received: by 2002:a17:902:9007:: with SMTP id a7mr12448623plp.194.1591397972834; Fri, 05 Jun 2020 15:59:32 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j186sm543121pfb.220.2020.06.05.15.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2020 15:59:31 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Fri, 5 Jun 2020 15:58:11 -0700 Message-Id: <20200605225811.26342-27-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200605225811.26342-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200605225811.26342-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC v2 26/26] 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