eal: remove RTE_FUNC_PTR_* deprecated macros
PATCH 1/1 eal: remove RTE_FUNC_PTR_* deprecated macros
The RTE_FUNC_PTR_OR_* macros were marked as deprecated in v22.11, we can remove them.
Signed-off-by David Marchand <[email protected]>
--- devtools/cocci/func_or_ret.cocci | 12 ------------ doc/guides/rel_notes/deprecation.rst | 4 ---- doc/guides/rel_notes/release_23_11.rst | 2 ++ lib/eal/include/rte_dev.h | 13 ------------- 4 files changed, 2 insertions(+), 29 deletions(-) delete mode 100644 devtools/cocci/func_or_ret.cocci
devtools/cocci/func_or_ret.cocci deleted +0 -12
@@ -1,12 +0,0 @@ -@@ -expression cond, ret; -@@ --RTE_FUNC_PTR_OR_ERR_RET(cond, ret); -+if (cond == NULL) -+ return ret; -@@ -expression cond; -@@ --RTE_FUNC_PTR_OR_RET(cond); -+if (cond == NULL) -+ return;
doc/guides/rel_notes/deprecation.rst +0 -4
@@ -51,10 +51,6 @@ Deprecation Notices are renamed to ``rte_tel_data_add_array_uint`` and ``rte_tel_data_add_dict_uint`` respectively. As such, the old function names are deprecated and will be removed in a future release. -* eal: RTE_FUNC_PTR_OR_* macros have been marked deprecated and will be removed - in the future. Applications can use ``devtools/cocci/func_or_ret.cocci`` - to update their code. - * eal: The functions ``rte_thread_setname`` and ``rte_ctrl_thread_create`` are planned to be deprecated starting with the 23.07 release, subject to the replacement API rte_thread_set_name and rte_thread_create_control being
doc/guides/rel_notes/release_23_11.rst +2 -0
@@ -68,6 +68,8 @@ Removed Items Also, make sure to start the actual text at the margin. ======================================================= +* eal: Removed deprecated ``RTE_FUNC_PTR_OR_*`` macros. + API Changes -----------
lib/eal/include/rte_dev.h +0 -13
@@ -42,19 +42,6 @@ typedef void (*rte_dev_event_cb_fn)(const char *device_name,enum rte_dev_event_type event, void *cb_arg); -/* Macros to check for invalid function pointers */ -#define RTE_FUNC_PTR_OR_ERR_RET (func, retval) RTE_DEPRECATED(RTE_FUNC_PTR_OR_ERR_RET) \ -do { \ - if ((func) == NULL) \ - return retval; \ -} while (0) - -#define RTE_FUNC_PTR_OR_RET (func) RTE_DEPRECATED(RTE_FUNC_PTR_OR_RET) \ -do { \ - if ((func) == NULL) \ - return; \ -} while (0) -/** * Device policies. */
Signature · 1 line
2.41.0
Quoted 5 lines · David Marchand
The RTE_FUNC_PTR_OR_* macros were marked as deprecated in v22.11, we can remove them.
Signed-off-by David Marchand <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
Quoted 8 lines · Bruce Richardson
Quoted 5 lines · David Marchand
The RTE_FUNC_PTR_OR_* macros were marked as deprecated in v22.11, we can remove them.
Signed-off-by David Marchand <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
Acked-by Morten Brørup <[email protected]>
Acked-by Tyler Retzlaff <[email protected]>
Applied, thanks.
Signature · 1 line
David Marchand
Quoted 8 lines
From: David Marchand [mailto:[email protected]]
Sent: Thursday, 3 August 2023 11.41The RTE_FUNC_PTR_OR_* macros were marked as deprecated in v22.11, we can remove them.
Signed-off-by David Marchand <[email protected]>---
Acked-by Morten Brørup <[email protected]>
Quoted 5 lines · David Marchand
The RTE_FUNC_PTR_OR_* macros were marked as deprecated in v22.11, we can remove them.
Signed-off-by David Marchand <[email protected]>---
Acked-by Tyler Retzlaff <[email protected]>