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 76DD1A0540; Thu, 16 Jul 2020 01:04:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 262961BEDF; Thu, 16 Jul 2020 01:03:24 +0200 (CEST) Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by dpdk.org (Postfix) with ESMTP id BEA671BEBF for ; Thu, 16 Jul 2020 01:03:18 +0200 (CEST) Received: by mail-pj1-f65.google.com with SMTP id cm21so3858108pjb.3 for ; Wed, 15 Jul 2020 16:03:18 -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=8T8biIeyJvnggdTHvnZuXkq+HNl1exlYusyMUlqUdR0=; b=s4SCMKP0crBaQueRG0mQJysB0yn2Xxf5HOtic/+zNgzPYS21ILC+EpsK9GEIEFykrf C1d1ydzU9BhsoshUBtGavXiObAR+Kv4hA9Q6/UdcIo1bGypiinh0VV75+GpB3UaqiLqy Yf8Q0m4fkSF9+U9q9XEYjs7r0Ra/5jOx54uzqUYJ18VqFCgI2Gm1CniAKubetbYH69cJ Uod91yIaX3dvS+HgTLVJflZA5tPPVfZ4SQQOQYzvunKYx13NILMBqZlPFwi+1q5+okwN xfT6fZHCn08Up2q0MIkob3ROUMh6zw/n3YCmraImkjkT0vwtWUbb+hMe/thOI7cLQ1iD Hgnw== 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=8T8biIeyJvnggdTHvnZuXkq+HNl1exlYusyMUlqUdR0=; b=dOkY7GDXK1xsld/U6i+tieiZVrQwhiIa6o4gibvfCyo0JjNgdpreBXHv6y6nhvj0Uo RwEf6mNz9O/gfBDZtQ9/TvuWl718xnBBScpr+4SRI9uinA8wiUerZHTDn9uxvLEk213o /hrpKvpsVwl5bfMRBx2s8J2PHkH89DBe0vO+AFifpXxmGsq71p5pIofs86SgXn7+JbDu hHWKtWTs4X6BmN43/D44tGhUg53N87oJeUvqREnSYiYWkz6Pu5u8HFulJfttsa8f8h5Q kOKv+HyZ/4e5OLOZTRy/Y+NwXOeBgUCL49BA43wxmIA8N1kk3xD4kDErAP7nbUsezHUi 3CTQ== X-Gm-Message-State: AOAM5305h6gImkRusq89FVDtoV4fPphiHPosjw/4GeVbeXFdnLePcHaL gUURrNQT/rQXUO/YfHw8WDZhhTeAFkxh4g== X-Google-Smtp-Source: ABdhPJw768zNtImb24T611DDxIvbpY6FrXNA9p+6p7iiU4WD4i+y4jwah3KN2TIRJRR1xfY/GdhHrg== X-Received: by 2002:a17:90a:db8c:: with SMTP id h12mr2041563pjv.147.1594854197453; Wed, 15 Jul 2020 16:03:17 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id ji2sm2980888pjb.1.2020.07.15.16.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 16:03:16 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Luca Boccassi Date: Wed, 15 Jul 2020 16:02:56 -0700 Message-Id: <20200715230257.30810-9-stephen@networkplumber.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200715230257.30810-1-stephen@networkplumber.org> References: <20200607170127.15694-1-stephen@networkplumber.org> <20200715230257.30810-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v5 8/9] 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 | 9 +++++++-- 3 files changed, 21 insertions(+), 7 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 407816343ef0..b3a8af1d49de 100644 --- a/lib/librte_eal/include/rte_devargs.h +++ b/lib/librte_eal/include/rte_devargs.h @@ -35,8 +35,13 @@ 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 \ + _Pragma("GCC warning \"'RTE_DEVTYPE_WHITELISTED_PCI' macro is deprecated.\"") \ + RTE_DEVTYPE_ALLOWED + +#define RTE_DEVTYPE_BLACKLISTED_PCI \ + _Pragma("GCC warning \"'RTE_DEVTYPE_BLACKLISTED_PCI' macro is deprecated.\"") \ + RTE_DEVTYPE_BLOCKED /** * Structure that stores a device given by the user with its arguments -- 2.27.0