[PATCH] eal: mark rte_exit as cold
Stephen Hemminger
stephen at networkplumber.org
Wed Mar 20 18:05:22 CET 2024
Paths that lead to rte_exit do not need to get optimized.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
lib/eal/include/rte_common.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/eal/include/rte_common.h b/lib/eal/include/rte_common.h
index 298a5c6215be..54bb3f995b2c 100644
--- a/lib/eal/include/rte_common.h
+++ b/lib/eal/include/rte_common.h
@@ -748,8 +748,10 @@ rte_str_to_size(const char *str);
* printf format characters which will be expanded using any further parameters
* to the function.
*/
-__rte_noreturn void
+void
rte_exit(int exit_code, const char *format, ...)
+ __rte_cold
+ __rte_noreturn
__rte_format_printf(2, 3);
#ifdef __cplusplus
--
2.43.0
More information about the dev
mailing list