git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace no-return attributes
[dpdk.git]
/
lib
/
librte_eal
/
include
/
rte_common.h
diff --git
a/lib/librte_eal/include/rte_common.h
b/lib/librte_eal/include/rte_common.h
index
28d339a
..
733447b
100644
(file)
--- a/
lib/librte_eal/include/rte_common.h
+++ b/
lib/librte_eal/include/rte_common.h
@@
-182,6
+182,11
@@
static void __attribute__((destructor(RTE_PRIO(prio)), used)) func(void)
#define RTE_FINI(func) \
RTE_FINI_PRIO(func, LAST)
#define RTE_FINI(func) \
RTE_FINI_PRIO(func, LAST)
+/**
+ * Hint never returning function
+ */
+#define __rte_noreturn __attribute__((noreturn))
+
/**
* Force a function to be inlined
*/
/**
* Force a function to be inlined
*/
@@
-826,9
+831,8
@@
rte_str_to_size(const char *str)
* printf format characters which will be expanded using any further parameters
* to the function.
*/
* printf format characters which will be expanded using any further parameters
* to the function.
*/
-void
+
__rte_noreturn
void
rte_exit(int exit_code, const char *format, ...)
rte_exit(int exit_code, const char *format, ...)
- __attribute__((noreturn))
__rte_format_printf(2, 3);
#ifdef __cplusplus
__rte_format_printf(2, 3);
#ifdef __cplusplus