eal: mark rte_exit as cold
PATCH 1/1 eal: mark rte_exit as cold
Paths that lead to rte_exit do not need to get optimized.
Signed-off-by Stephen Hemminger <[email protected]>
--- lib/eal/include/rte_common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
lib/eal/include/rte_common.h +3 -1
@@ -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