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 59E3BA04B1; Wed, 23 Sep 2020 19:01:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B75821D6A9; Wed, 23 Sep 2020 19:01:47 +0200 (CEST) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id 159461D685 for ; Wed, 23 Sep 2020 19:01:46 +0200 (CEST) Received: by mail-pl1-f195.google.com with SMTP id q12so7793plr.12 for ; Wed, 23 Sep 2020 10:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jnah5CjZlSZ8NgvHXSahbvNvR259gLBwWTj+KmjCeE0=; b=FIU0dwoJwzF7XFsx8dgtgp4yJXJ0cZ4RKhvY9HVD5l2/FqhPAo2uM276EDY7o1aDYX zJvm+Wct62GT3K8d2szGcB/SP60TSriyLRwo6qG+DE4mgyoDfnEv1uT0UofC9l/+0u/T dUMVvosYtkoU5tnaHfiXAb/rQ/Kt9ooIJImQIln97/ptAowsdBZkzcz+mDaJ5NmxQLUF iyOmZVYQvqiM9divFwYKBJQn5GogJ+Iw7kJYQspP/2GUJmYsQKKNk7K1GrTztGFPrUna D7yEVr5sEAoXKT3p+29RBdBUH6HBzn1Zz5N72CwA1NV7jm1GJkycjJL5M8OzU17dakus 1+Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jnah5CjZlSZ8NgvHXSahbvNvR259gLBwWTj+KmjCeE0=; b=B/W2FWQOduAc4W94oYaAnHhD0ul/hJbdRj7C+mW7y20wk7QifkzxPwgGaRz/sVlijQ HB2KeZguvtsoz9dul4FhoIz51UEErqa1hJV31mNn7O37cNfmW8hxj+2WJ/rnU43GJDze 90ND70xycNDbqnxGnPk7pY2TIkrH9WsJoJlz312M02yyNRjBbm8Nbw0oqJToZ2bmQdtD hke2g7qlzRazSj9jwd3o9QTXrjLShUelaWCOnz2hpb4qyehH9QMcwTJykeC3Dy3D7+hT HEza8N8L2seU6ACGpDD4tu+Z7POmJnTwDPJuUW+9YQbygXTY5NZgO6cIa+zEaBYQsJkc nMHQ== X-Gm-Message-State: AOAM532DHaQdOoALu3G/f42MmCAiK9CJoXyGiq+KjLzgO/JJD1JLNGPB xVo5OFMYE20GaJI/B/EE3Q78xQ== X-Google-Smtp-Source: ABdhPJy7nKkxnHXjfkGI7yzJxg0qj51G6j2WGh7PXN1S2KbvpXPiJ967bAxI0NPS8GRDcvpHfS1zMg== X-Received: by 2002:a17:90a:fe07:: with SMTP id ck7mr343217pjb.20.1600880505255; Wed, 23 Sep 2020 10:01:45 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id t10sm425900pgp.15.2020.09.23.10.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2020 10:01:44 -0700 (PDT) Date: Wed, 23 Sep 2020 10:01:37 -0700 From: Stephen Hemminger To: "Burakov, Anatoly" Cc: dev@dpdk.org Message-ID: <20200923100137.6063b527@hermes.lan> In-Reply-To: <94bd7877-eecf-7888-2a3a-c12413403b25@intel.com> References: <20200922143202.8755-1-stephen@networkplumber.org> <20200922143202.8755-2-stephen@networkplumber.org> <94bd7877-eecf-7888-2a3a-c12413403b25@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 1/8] eal: add macro to mark macros 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" On Wed, 23 Sep 2020 10:18:21 +0100 "Burakov, Anatoly" wrote: > On 22-Sep-20 3:31 PM, Stephen Hemminger wrote: > > Add a macro that causes GCC and CLANG to emit a warning when > > a deprecated macro is used. > > > > Signed-off-by: Stephen Hemminger > > --- > > lib/librte_eal/include/rte_common.h | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/lib/librte_eal/include/rte_common.h b/lib/librte_eal/include/rte_common.h > > index 8f487a563dfc..c6714b67b411 100644 > > --- a/lib/librte_eal/include/rte_common.h > > +++ b/lib/librte_eal/include/rte_common.h > > @@ -86,6 +86,17 @@ typedef uint16_t unaligned_uint16_t; > > /******* Macro to mark functions and fields scheduled for removal *****/ > > #define __rte_deprecated __attribute__((__deprecated__)) > > > > +/** > > + * Macro to mark macros and defines scheduled for removal > > + */ > > +#if defined(RTE_CC_GCC) || defined(RTE_CC_CLANG) > > +#define RTE_PRAGMA(x) _Pragma(#x) > > +#define RTE_PRAGMA_WARNING(w) RTE_PRAGMA(GCC warning #w) > > +#define RTE_DEPRECATED(x) RTE_PRAGMA_WARNING(#x is deprecated) > > +#else > > +#define RTE_DEPRECATED(x) > > +#endif > > + > > /** > > * Mark a function or variable to a weak reference. > > */ > > > > Don't we already have this in the master/slave lcore patchset? > Yes, this intentional (see the cover letter) so that the patch set can be tested by the CI infrastructure. There is no good way with current patch flow to mark a set of patches dependent on earlier group.