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 1C138A04F2; Mon, 8 Jun 2020 21:27:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A94541BEA6; Mon, 8 Jun 2020 21:26:15 +0200 (CEST) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id 4E78F1BE9B for ; Mon, 8 Jun 2020 21:26:13 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id h185so8982518pfg.2 for ; Mon, 08 Jun 2020 12:26:13 -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=Ilv7w0k4uFxAxjQmjkY7RGlCAOui3nMyt9FvF0tPmkk=; b=2A8vn6wLdl82kjO2iHicMLABsLbBfURwVJASQdrGIA7MUVdhbQIryUBkPFdgA0tvji cyRlN+jFFbe2BFE2CXAxJveoPJ7u39d3QRRUQXsnF+Mk7n5WleNgPb8hs6vohwrxZpDT 0orQcjR0FXlwNWcmdBp2BqYSKqdMPkGPjCvLKqISLXFKeAHxIhNqPJascNS2BijaWydS 3787bMd4XeGBzl+UO/4ZAvJ3SkoE5j2O2GIHi/5f1pTuMVTw8pAntk7BYMVEVHhjgT3u EgDmmOL0FOCzHz/wm/YJ5qE8Y8IUR3whIFlcc/1+lWBSOy702+G3kP0UKPxUZOdj/A8q AETw== 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=Ilv7w0k4uFxAxjQmjkY7RGlCAOui3nMyt9FvF0tPmkk=; b=MDJHtXwQd9VLGVBSwsljpdSAxsVYm/g+5A17uwQ6Y+KxjpDQ/sQSu+wwtBniRHOQwg 6J7edw9YNhT6K0ZPMbUmJXYntnj6CIMiNIxb5Ti+4AhcBjX1SQYbLqbgoWMSG7xO7bbx ZrtO26Xe9kAza/Qt8BYrUKFu9kDCG2HddnZ2Ty64VP/dcEds93ctnCayEU8daflXzsn6 zqBfwFBYRZ/yVup6JWdMSVBaOzNzC2hp/pHeOOMgqEfkfvtC1ppReJ42eLxZlpOC1jUi mJWQvSJxCNgdT4LW/F/lmmHodV4KGhVLhPi0jISYbTVa/wIfhNiKxreJtZXFw8/Q2cH5 QvNg== X-Gm-Message-State: AOAM530qONaGV1bNnG93QfqHw/FIfHbzRBToViYhgKfKdfaCckRCwF47 XZh3T04IZMRqHZUAsS1z5YCXKzt6bPU= X-Google-Smtp-Source: ABdhPJynXyWpj4nJ8CB6l1eewYZ+3EiJ9I4q0TZA+AQVtds5goCYMMqO8nfCiEgbenpSk2j/UC94YA== X-Received: by 2002:a62:2c07:: with SMTP id s7mr21184628pfs.88.1591644372054; Mon, 08 Jun 2020 12:26:12 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id z140sm8114529pfc.135.2020.06.08.12.26.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jun 2020 12:26:10 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 8 Jun 2020 12:25:46 -0700 Message-Id: <20200608192546.7160-11-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200608192546.7160-1-stephen@networkplumber.org> References: <20200607170127.15694-1-stephen@networkplumber.org> <20200608192546.7160-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 10/10] 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 --- lib/librte_eal/include/rte_bus.h | 10 +++++++--- lib/librte_eal/include/rte_dev.h | 10 +++++++--- lib/librte_eal/include/rte_devargs.h | 10 +++++++--- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/lib/librte_eal/include/rte_bus.h b/lib/librte_eal/include/rte_bus.h index 463f0224ff2b..b1a0ac554d83 100644 --- a/lib/librte_eal/include/rte_bus.h +++ b/lib/librte_eal/include/rte_bus.h @@ -219,9 +219,13 @@ enum rte_bus_scan_mode { RTE_BUS_SCAN_BLOCKLIST, }; -/* Backwards compatiablity 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