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

Signed-off-by: Stephen Hemminger <step...@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

Reply via email to