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 53765A0350; Wed, 1 Jul 2020 21:50:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 327E91D59E; Wed, 1 Jul 2020 21:47:39 +0200 (CEST) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id 5CC2D1D544 for ; Wed, 1 Jul 2020 21:47:34 +0200 (CEST) Received: by mail-pl1-f195.google.com with SMTP id j4so10312861plk.3 for ; Wed, 01 Jul 2020 12:47: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=A8lVe9jc29b05knbDtbyZDpJjRxKOSW4GHjeqeKpvKU+F7dfqX5C6xMNgepSm8iN40 hMDBM7IG68i4Ry2wu7Y00tQHPR2ElT43Wkqg05j2t1+sPekN5bCDLLjKyfupodYbEEfh DsROJgvYrv1Nd62Xtb4+0j5JQ+Vbt6njaUhThwvAM/e6vmCMociLDTA3/HK6ACvzvx2G SgArNOyEIQrfyLcGHUtMwHb68DQBw3bSzacc7xkg3bb4ZXZBgeTrCRF3OIXUZBJ1ZQlK 9MwXWY8rrFodfDmu2VVTOh/hIsDHdI45OL72l8LpX6SpeKKR53yjoXvIye9Waaz0s/HD +Biw== 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=mQP667+NxP7KJ4e1/9MCwUzNjHJcAr7mzM9Kka9XvWb2NcorX+EqcUEqJIkMPJh/8e 874SJ8q8GPE0IhRLzPsUSfItzW5OFP7SJYan0GTuqERYPdE4Ouj9kIvgTCQlEBE73qxS KO5fHVQ30jx5NYI1b0+I2WCYA60MVrl0YAQ2WzIeTuQ5C4KiME//HQ004wjbt8owoDbk tdjUReHLhKR9Y5u4CXSNl7/HHLNOQhwa3OqTyCNEDRTCdk4+OPWP0WYseE1AcBjPiK+i yJka6Vhi2T8ONAENDjAgjZRmkwZYgO4JtYCBxXf/BAxRHMhrX4sTnksIgTPsUh2pHmQ8 YPmg== X-Gm-Message-State: AOAM531mIAQ7I7VnPeESNsTjjmbxbcJo+W7HwY4YvA1Dp9KtOhuUzdg4 gi266RIf7ocBYXkCRwCVS8kkG2w41Vw= X-Google-Smtp-Source: ABdhPJxXPb5yVvoopIwQ7Dla82lSPEXCEGkXn3KtWiJdRmCpaZRZDxD4VlgsyPxXeaq5OEGT8QzjpQ== X-Received: by 2002:a17:90a:24ed:: with SMTP id i100mr25789176pje.22.1593632853146; Wed, 01 Jul 2020 12:47:33 -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 n14sm6501870pgd.78.2020.07.01.12.47.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 12:47:32 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 1 Jul 2020 12:46:48 -0700 Message-Id: <20200701194650.10705-26-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200701194650.10705-1-stephen@networkplumber.org> References: <20200604210200.25405-1-stephen@networkplumber.org> <20200701194650.10705-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 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