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 189D2A0540; Tue, 14 Jul 2020 07:41:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 03FBA1D583; Tue, 14 Jul 2020 07:39:50 +0200 (CEST) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 5987E1D502 for ; Tue, 14 Jul 2020 07:39:44 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id s189so2059570pgc.13 for ; Mon, 13 Jul 2020 22:39:44 -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=oCyaVkNsuXTWoNhLqwAmK5SoYM/51ofXAdsYujHO+/Q=; b=OyFS2ckywuDySlW9E8qEQ22bsEEac9J9tezmp1SZX2njgsPnePATIAFd0JBWe0tYaY Gr6p+sOFwK5CCxDGwfhVySQEbSfte4Qz/as7i/28Ibc68styoOOcnNeEh5WiSuRVLBpy QsgxMM0L49sUmI2wtZH3GM0tfRA4aOu30x/1oOhWcuWxt3ePyPyU1oVmcPf64tYiw4ZC SrZ37zptYlnqR3pYcbFoXThnegK5Q9xezgmJF5rJEFVlcBW6RO6eRUjhHo3i4pVs2ieQ WQWABjDDAfsaoJUN21C4zZCBslBNNiKgL0r8mixV7DrON/kMRhRoULpvoVVINTXtBvNL Gnew== 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=oCyaVkNsuXTWoNhLqwAmK5SoYM/51ofXAdsYujHO+/Q=; b=HJqbVZqlAkwpjrjElcL31d10TsxoUkAwxmM6+ivUOPFH1zc02P5VpASeAbEG1NRbSP 4V+zHZto4sOd7gPgI7k19mhbdLSeIG4NKSdUVaYYCZJOPbvlssfMyic3+mMbxc1UXL+y Vy7dylmeYacDa6XaqIl/HAzBFfitQEFqYk8ztukzbSJu+Hks6Hch6H9o2GWbml2bzeIU GLy6Yl4dhbcZvu4TguXuFS87Ms+XP4dRkUPWJZWsza1C8YYLv5RZp/0LMlHotcucWv2j A/0Tr6Jc3EM2uPUKrK53TMYRWDF5XLtfzn/92L6HubotJnUK/6fU0mhDOKJ2qG7Bxf4i qx0g== X-Gm-Message-State: AOAM531u98nYDOF4dnQaYji0FYVJcgKPUHlb8s10BEwXWa7uYY4cBUKn zhgJPgXmtdw8omYh7ZA/W8ZChwPkbN7OCA== X-Google-Smtp-Source: ABdhPJzeLO3TvFJ8ZNIis+YuAzOoGMEZrGbOWYBfdoCHP52RZbJ6MxFmwiZJHDFXf4L9KyCk9Ndrbg== X-Received: by 2002:aa7:8b4c:: with SMTP id i12mr3010104pfd.91.1594705183111; Mon, 13 Jul 2020 22:39:43 -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 h9sm15810259pfk.155.2020.07.13.22.39.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 22:39:42 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Luca Boccassi Date: Mon, 13 Jul 2020 22:39:18 -0700 Message-Id: <20200714053919.5609-11-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200714053919.5609-1-stephen@networkplumber.org> References: <20200613000055.7909-1-stephen@networkplumber.org> <20200714053919.5609-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 10/11] eal: mark old macros for blacklist/whitelist 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 these macros in applications should cause a deprecation warning. Signed-off-by: Stephen Hemminger Acked-by: Luca Boccassi --- lib/librte_eal/include/rte_bus.h | 9 +++++++-- lib/librte_eal/include/rte_dev.h | 10 +++++++--- lib/librte_eal/include/rte_devargs.h | 10 +++++++--- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/lib/librte_eal/include/rte_bus.h b/lib/librte_eal/include/rte_bus.h index 19309ad2ddd7..aa0f3aa9c81b 100644 --- a/lib/librte_eal/include/rte_bus.h +++ b/lib/librte_eal/include/rte_bus.h @@ -220,8 +220,13 @@ enum rte_bus_scan_mode { }; /* Backwards compatibility will be deprecated */ -#define RTE_BUS_SCAN_WHITELIST RTE_BUS_SCAN_ALLOWLIST -#define RTE_BUS_SCAN_BLACKLIST RTE_BUS_SCAN_BLOCKLIST +#define RTE_BUS_SCAN_WHITELIST \ + _Pragma("GCC warning \"'RTE_BUS_SCAN_WHITELIST' macro is deprecated.\"") \ + RTE_BUS_SCAN_ALLOWLIST + +#define RTE_BUS_SCAN_BLACKLIST \ + _Pragma("GCC warning \"'RTE_BUS_SCAN_BLACKLIST' macro is deprecated.\"") \ + RTE_BUS_SCAN_BLOCKLIST /** * A structure used to configure bus operations. diff --git a/lib/librte_eal/include/rte_dev.h b/lib/librte_eal/include/rte_dev.h index 1208b1e99b05..81dded1dad24 100644 --- a/lib/librte_eal/include/rte_dev.h +++ b/lib/librte_eal/include/rte_dev.h @@ -74,9 +74,13 @@ enum rte_dev_policy { RTE_DEV_BLOCKED, }; -/* Backwards compatiablity will be deprecated */ -#define RTE_DEV_WHITELISTED RTE_DEV_ALLOWED -#define RTE_DEV_BLACKLISTED RTE_DEV_BLOCKED +#define RTE_DEV_WHITELISTED \ + _Pragma("GCC warning \"'RTE_DEV_WHITELISTED' macro is deprecated.\"") \ + RTE_DEV_ALLOWED + +#define RTE_DEV_BLACKLISTED \ + _Pragma("GCC warning \"'RTE_DEV_BLACKLISTED' macro is deprecated.\"") \ + RTE_DEV_BLOCKED /** * A generic memory resource representation. diff --git a/lib/librte_eal/include/rte_devargs.h b/lib/librte_eal/include/rte_devargs.h index e1a4277ff167..535bff9a14fb 100644 --- a/lib/librte_eal/include/rte_devargs.h +++ b/lib/librte_eal/include/rte_devargs.h @@ -34,9 +34,13 @@ enum rte_devtype { RTE_DEVTYPE_VIRTUAL, }; -/* Backwards compatiablity will be removed later */ -#define RTE_DEVTYPE_WHITELISTED_PCI RTE_DEVTYPE_ALLOWED_PCI -#define RTE_DEVTYPE_BLACKLISTED_PCI RTE_DEVTYPE_BLOCKED_PCI +#define RTE_DEVTYPE_WHITELISTED_PCI \ + _Pragma("GCC warning \"'RTE_DEVTYPE_WHITELISTED_PCI' macro is deprecated.\"") \ + RTE_DEVTYPE_ALLOWED_PCI + +#define RTE_DEVTYPE_BLACKLISTED_PCI \ + _Pragma("GCC warning \"'RTE_DEVTYPE_BLACKLISTED_PCI' macro is deprecated.\"") \ + RTE_DEVTYPE_BLOCKED_PCI /** * Structure that stores a device given by the user with its arguments -- 2.26.2