From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org
Cc: thomas@monjalon.net, bruce.richardson@intel.com,
andremue@linux.microsoft.com,
Tyler Retzlaff <roretzla@linux.microsoft.com>
Subject: [PATCH v3 10/10] eal: deprecate weak symbols
Date: Tue, 18 Feb 2025 16:37:24 +0100 [thread overview]
Message-ID: <20250218153730.773836-11-david.marchand@redhat.com> (raw)
In-Reply-To: <20250218153730.773836-1-david.marchand@redhat.com>
Mark __rte_weak as deprecated.
It will avoid having to support such feature with other linkers,
plus this was never really needed.
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
doc/guides/rel_notes/release_25_03.rst | 2 ++
lib/eal/include/rte_common.h | 6 +++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/doc/guides/rel_notes/release_25_03.rst b/doc/guides/rel_notes/release_25_03.rst
index ca67c17c5c..8867a4bd74 100644
--- a/doc/guides/rel_notes/release_25_03.rst
+++ b/doc/guides/rel_notes/release_25_03.rst
@@ -188,6 +188,8 @@ API Changes
* eal: The ``__rte_packed`` macro for packing data is replaced with
``__rte_packed_begin`` / ``__rte_packed_end``.
+* eal: The ``__rte_weak`` macro is deprecated and will be removed in a future release.
+
* net: Changed the API for CRC calculation to be thread-safe.
An opaque context argument was introduced to the net CRC API
containing the algorithm type and length.
diff --git a/lib/eal/include/rte_common.h b/lib/eal/include/rte_common.h
index 3f77b7624e..4be65376a5 100644
--- a/lib/eal/include/rte_common.h
+++ b/lib/eal/include/rte_common.h
@@ -179,7 +179,11 @@ typedef uint16_t unaligned_uint16_t;
/**
* Mark a function or variable to a weak reference.
*/
-#define __rte_weak __attribute__((__weak__))
+#ifdef RTE_TOOLCHAIN_MSVC
+#define __rte_weak RTE_DEPRECATED(__rte_weak)
+#else
+#define __rte_weak RTE_DEPRECATED(__rte_weak) __attribute__((__weak__))
+#endif
/**
* Mark a function to be pure.
--
2.48.1
next prev parent reply other threads:[~2025-02-18 15:38 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-07 8:32 [RFC 00/10] Remove " David Marchand
2025-02-07 8:32 ` [RFC 01/10] bus/auxiliary: remove " David Marchand
2025-02-07 8:32 ` [RFC 02/10] common/qat: " David Marchand
2025-02-07 8:32 ` [RFC 03/10] drivers: remove weak symbols in Nitrox drivers David Marchand
2025-02-07 8:32 ` [RFC 04/10] net/enic: remove weak symbols David Marchand
2025-02-07 8:32 ` [RFC 05/10] net/hns3: " David Marchand
2025-02-07 8:32 ` [RFC 06/10] net/fm10k: " David Marchand
2025-02-07 8:51 ` Bruce Richardson
2025-02-07 8:32 ` [RFC 07/10] net/nfp: " David Marchand
2025-02-07 8:44 ` Chaoyong He
2025-02-07 8:32 ` [RFC 08/10] net/virtio: " David Marchand
2025-02-07 8:32 ` [RFC 09/10] app/compress-perf: " David Marchand
2025-02-07 8:32 ` [RFC 10/10] eal: deprecate " David Marchand
2025-02-09 17:28 ` [RFC v2 00/10] Remove " David Marchand
2025-02-09 17:28 ` [RFC v2 01/10] bus/auxiliary: remove " David Marchand
2025-02-09 17:28 ` [RFC v2 02/10] common/qat: " David Marchand
2025-02-09 17:28 ` [RFC v2 03/10] drivers: remove weak symbols in Nitrox drivers David Marchand
2025-02-09 17:28 ` [RFC v2 04/10] net/enic: remove weak symbols David Marchand
2025-02-09 17:28 ` [RFC v2 05/10] net/hns3: " David Marchand
2025-02-09 17:28 ` [RFC v2 06/10] net/fm10k: " David Marchand
2025-02-09 17:28 ` [RFC v2 07/10] net/nfp: " David Marchand
2025-02-09 17:28 ` [RFC v2 08/10] net/virtio: " David Marchand
2025-02-18 15:24 ` Maxime Coquelin
2025-02-09 17:28 ` [RFC v2 09/10] app/compress-perf: " David Marchand
2025-02-09 17:28 ` [RFC v2 10/10] eal: deprecate " David Marchand
2025-02-18 15:37 ` [PATCH v3 00/10] Remove " David Marchand
2025-02-18 15:37 ` [PATCH v3 01/10] bus/auxiliary: remove " David Marchand
2025-02-19 1:04 ` fengchengwen
2025-02-18 15:37 ` [PATCH v3 02/10] common/qat: " David Marchand
2025-02-18 15:37 ` [PATCH v3 03/10] drivers: remove weak symbols in Nitrox drivers David Marchand
2025-02-18 15:37 ` [PATCH v3 04/10] net/enic: remove weak symbols David Marchand
2025-02-18 15:37 ` [PATCH v3 05/10] net/hns3: " David Marchand
2025-02-19 1:03 ` fengchengwen
2025-02-18 15:37 ` [PATCH v3 06/10] net/fm10k: " David Marchand
2025-02-18 15:37 ` [PATCH v3 07/10] net/nfp: " David Marchand
2025-02-18 15:37 ` [PATCH v3 08/10] net/virtio: " David Marchand
2025-02-18 15:37 ` [PATCH v3 09/10] app/compress-perf: " David Marchand
2025-02-18 15:37 ` David Marchand [this message]
2025-02-19 1:05 ` [PATCH v3 10/10] eal: deprecate " fengchengwen
2025-02-19 8:15 ` [PATCH v3 00/10] Remove " David Marchand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250218153730.773836-11-david.marchand@redhat.com \
--to=david.marchand@redhat.com \
--cc=andremue@linux.microsoft.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=roretzla@linux.microsoft.com \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).