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 1C435A00BE; Sat, 13 Jun 2020 02:02:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D99571C194; Sat, 13 Jun 2020 02:01:22 +0200 (CEST) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by dpdk.org (Postfix) with ESMTP id 6B8851C0BF for ; Sat, 13 Jun 2020 02:01:19 +0200 (CEST) Received: by mail-pg1-f196.google.com with SMTP id l63so2616690pge.12 for ; Fri, 12 Jun 2020 17:01:19 -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=tTslLwY/nCKetawhEpq8kP+QLmcSmYfMOBi03RiqmW3yoLtNV6Kn5OKWgWsZ/SWTYE BkgX7gqwo+f3p01MIPfw4WWWCfqdTrVlIiUCG/VuYuB5WIsRfRi9bFZbjtkasTvH2QTN Tom3EbnjrAsrxbttWRexc44ArIgpnwm9oZFGEii3ZoEr8M95hmcZ3F9j/OkDghZVz8jH zq2pwUqhYialihM1TTQZYJ7wS6TcZqbuJMMIjLZj8Rt1Yy7L3ZMyvz0jNsTzqot5gIri 7vv8i7QXSDfv5alD1Wxy5KdQXLgoqDan2pkLX0fe/9n6QqnBjMRvNYxwGHBd3nbBpBJ7 MJIg== 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=pPdZmh95mI1B5YGPFo2Uocudy7jmOzStx6OCh7aVrCv4pfauKyBuzYUDuUWiKW7WQw zKvZwAcrmxA9YhXKXSetybE2D1eScKynNy1P10AJB7+PA07IgLL6G1rI9/R/ynu/TNzS YjQi4ybLi6yOQyZ/jRlny4xPdg0oWc0TvHU+Jw6Yz3HoDAv2PDoDBzg+p2qgra6FCQWM MCD6TH97SxY+GGV88rBn/RtllXLNlDNSoSFc5gwk7vmyDagmauucqBoJO5hxodWwGlwN D/UT+bH7OwARQCBddLkfvQUkPBj3sQcyrYXpqdfEvfr184V1uD9pYsx9fXP64cWw1S5q IA0A== X-Gm-Message-State: AOAM533Zpbyrf9EJTOTaz+cpOCo7UEK1/UUXeBwFP212qFKRcvjnCVWR 6loCSYaXJVx/uv7g7wEcuV0DT5CM2+E= X-Google-Smtp-Source: ABdhPJwBuClgF5pfyRBtQWJxJUkjJsQRjk8MU4FUq/+hxBy6IJy0uRWUey4eQZCOE03pZPYNMDoAGQ== X-Received: by 2002:a62:5210:: with SMTP id g16mr10283638pfb.204.1592006478165; Fri, 12 Jun 2020 17:01:18 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 6sm7205921pfi.170.2020.06.12.17.01.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jun 2020 17:01:17 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Luca Boccassi Date: Fri, 12 Jun 2020 17:00:55 -0700 Message-Id: <20200613000055.7909-11-stephen@networkplumber.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200613000055.7909-1-stephen@networkplumber.org> References: <20200613000055.7909-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 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 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