GCC displays a warning about the fact a function may not be inlined even if
told so, if no optimization is asked for. To avoid this, as explained in the
GCC manual :
Generally, functions are not inlined unless optimization is specified. For
functions declared inline, this attribute inlines the function even if no
optimization level is specified.
Adding "inline" correct this warning.
Signed-off-by: Jimmy Durand Wesolowski <
jimmy.duran...@openwide.fr>
---
core/include/vmm_compiler.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/include/vmm_compiler.h b/core/include/vmm_compiler.h
index 4ddbf05..b94f269 100644
--- a/core/include/vmm_compiler.h
+++ b/core/include/vmm_compiler.h
@@ -29,7 +29,7 @@
#define barrier() __asm__ __volatile__("": : :"memory")
#define __noinline __attribute__ ((noinline))
-#define __always_inline __attribute__((always_inline))
+#define __always_inline inline __attribute__((always_inline))
#define __unused __attribute__((unused))
#define __used __attribute__((used))
#define __aligned(x) __attribute__((aligned(x)))
--
1.8.3.2