* [PATCH] eal: mark rte_exit as cold
@ 2024-03-20 17:05 Stephen Hemminger
0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2024-03-20 17:05 UTC (permalink / raw)
To: dev; +Cc: Stephen Hemminger
Paths that lead to rte_exit do not need to get optimized.
Signed-off-by: Stephen Hemminger <stephen@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-20 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-20 17:05 [PATCH] eal: mark rte_exit as cold Stephen Hemminger
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).