Skip to contentSkip to conversation

eal: mark rte_exit as cold

PATCH New Stephen Hemminger 1 participant 1 message Mar 20, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eal: mark rte_exit as cold

Paths that lead to rte_exit do not need to get optimized.

---
 lib/eal/include/rte_common.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
lib/eal/include/rte_common.h +3 -1
index 298a5c6215be..54bb3f995b2c 100644
@@ -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
Signature · 1 line
2.43.0