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 3C721A04E7; Tue, 10 Nov 2020 23:58:12 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 148216966; Tue, 10 Nov 2020 23:56:06 +0100 (CET) Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by dpdk.org (Postfix) with ESMTP id CE4995AB3 for ; Tue, 10 Nov 2020 23:55:58 +0100 (CET) Received: by mail-pl1-f196.google.com with SMTP id k7so7264016plk.3 for ; Tue, 10 Nov 2020 14:55:58 -0800 (PST) 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=5yVKh7T3yYypPO4zK2lGnxK5x1sqkWgSvIlWu/aD1wQ=; b=Pwo2PqlWkPppaAlUe/iZfhfr8bsOsNpqh71tLZPjiuUVzYQ6FnUZwgyITTFRm5BFy1 CzP7bXcqxcRCYTAllm0M5V2qb+Sg9UGYUnHzW2oajPvzOP9x7UFpHsR85GDB4NEtwCFM 9wHl/Og3Ora/hhAnLTUfzOZy1wDt6pnxhialdM+KrgJ51NvzFUu0eDEHGudazTFQ9UnW qBhCuWBUxIxoAtucP0y5iO/JgGWlC4mhCJuJ5L+H+JqkuPsXdwXq80MILI0vwuF5WtSG JvtwhDykWV4kDVBECHueYAfTnGD1AIN/UnCp8aPzcazSEs4k73U6ZS3f3tL1IQSLIb5q U/SQ== 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=5yVKh7T3yYypPO4zK2lGnxK5x1sqkWgSvIlWu/aD1wQ=; b=BxQmdICne7rxOPjCR+3jJnpKYYC1tE6ZYE/gN2xjcoe6El2ac05WS7crNu89Vuce7D ZGMrzmeKD8WnPMbaLhIznbnOrH/+pkms6Ws3MqjNPfr5ywNvmtdt7VPJN0OAcKj/nNGm ALfKM3PYsNeJ0/LX7iiR15qu17JzTqP88cDT72SPsC1Xcw2oNYiQTl1JticeUtS28XJN INk4bhPXzwYTS4W857DzWIbovJlrq6PlsBjG7PcOo7x4IPUAQ5v50/4zMhgjD0PIAqPH HL1GeaWET85N1qQJeiZC6WT948W+AQ3UmpYSYQWVHqwZaYxX3goXhIgkz1FtovPITsls mEEg== X-Gm-Message-State: AOAM530v63IVlpVfni3bMsaPGh/JKDok25hDHHnP8SdK7JV8JWo8GB5H 4JGiDO7bwoAyFemtoTPlKih+RsjpJZqBnPBN X-Google-Smtp-Source: ABdhPJyYtU4VF+r0un48E/qUUU+vFaHgB1hULycnh6yWHqIjFBEkr+OiC5/0s958fJuIny1RZZWD8w== X-Received: by 2002:a17:902:ff0e:b029:d6:820d:cb81 with SMTP id f14-20020a170902ff0eb02900d6820dcb81mr19101325plj.47.1605048957680; Tue, 10 Nov 2020 14:55:57 -0800 (PST) Received: from hermes.corp.microsoft.com (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id t9sm52934pjo.4.2020.11.10.14.55.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 14:55:56 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 10 Nov 2020 14:55:44 -0800 Message-Id: <20201110225544.1876-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201110225544.1876-1-stephen@networkplumber.org> References: <20200922143202.8755-1-stephen@networkplumber.org> <20201110225544.1876-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v10 7/7] eal: mark old definitions 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" This patch marks the compatiablity macros with RTE_DEPRECATED which causes a warning if used. There are no remaining warnings in the current release. Signed-off-by: Stephen Hemminger --- lib/librte_eal/include/rte_bus.h | 6 ++++-- lib/librte_eal/include/rte_dev.h | 6 ++++-- lib/librte_eal/include/rte_devargs.h | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/librte_eal/include/rte_bus.h b/lib/librte_eal/include/rte_bus.h index 004c36eafc97..80b154fb982c 100644 --- a/lib/librte_eal/include/rte_bus.h +++ b/lib/librte_eal/include/rte_bus.h @@ -220,8 +220,10 @@ enum rte_bus_scan_mode { }; /* Backwards compatibility will be removed */ -#define RTE_BUS_SCAN_WHITELIST RTE_BUS_SCAN_ALLOWLIST -#define RTE_BUS_SCAN_BLACKLIST RTE_BUS_SCAN_BLOCKLIST +#define RTE_BUS_SCAN_WHITELIST \ + RTE_DEPRECATED(RTE_BUS_SCAN_WHITELIST) RTE_BUS_SCAN_ALLOWLIST +#define RTE_BUS_SCAN_BLACKLIST \ + RTE_DEPRECATED(RTE_BUS_SCAN_BLACKLIST) 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 96aa19f6d1b1..6dd72c11a14a 100644 --- a/lib/librte_eal/include/rte_dev.h +++ b/lib/librte_eal/include/rte_dev.h @@ -57,8 +57,10 @@ enum rte_dev_policy { }; /* Backwards compatibility will be removed */ -#define RTE_DEV_WHITELISTED RTE_DEV_ALLOWED -#define RTE_DEV_BLACKLISTED RTE_DEV_BLOCKED +#define RTE_DEV_WHITELISTED \ + RTE_DEPRECATED(RTE_DEV_WHITELISTED) RTE_DEV_ALLOWED +#define RTE_DEV_BLACKLISTED \ + RTE_DEPRECATED(RTE_DEV_BLACKLISTED) 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 407816343ef0..296f19324fae 100644 --- a/lib/librte_eal/include/rte_devargs.h +++ b/lib/librte_eal/include/rte_devargs.h @@ -35,8 +35,10 @@ enum rte_devtype { }; /* Backwards compatibility will be removed later */ -#define RTE_DEVTYPE_WHITELISTED_PCI RTE_DEVTYPE_ALLOWED -#define RTE_DEVTYPE_BLACKLISTED_PCI RTE_DEVTYPE_BLOCKED +#define RTE_DEVTYPE_WHITELISTED_PCI \ + RTE_DEPRECATED(RTE_DEVTYPE_WHITELISTED_PCI) RTE_DEVTYPE_ALLOWED +#define RTE_DEVTYPE_BLACKLISTED_PCI \ + RTE_DEPRECATED(RTE_DEVTYPE_BLACKLISTED_PCI) RTE_DEVTYPE_BLOCKED /** * Structure that stores a device given by the user with its arguments -- 2.27.0