From a13fddb7dad7857e07d9ce3dff68581f4af88f05 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Tue, 4 Aug 2015 16:37:35 -0700 Subject: [PATCH] toolchain.h: add __used macro Change-Id: I252390fb125a569a975a093903eba42c8971629d Signed-off-by: Andrew Boie --- include/init.h | 2 +- include/toolchain/gcc.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/init.h b/include/init.h index 8347c1c5dd3..e1ff14e83f3 100644 --- a/include/init.h +++ b/include/init.h @@ -32,7 +32,7 @@ #define _INIT_H_ #include -#define __used __attribute__((__used__)) +#include #define PURE 1 #define PURE_EARLY 0 diff --git a/include/toolchain/gcc.h b/include/toolchain/gcc.h index 6d9b23ee0af..16ebe9110b6 100644 --- a/include/toolchain/gcc.h +++ b/include/toolchain/gcc.h @@ -100,6 +100,7 @@ __extension__ ({ \ #define __aligned(x) __attribute__((aligned(x))) #define __may_alias __attribute__((__may_alias__)) #define __printf_like(f, a) __attribute__((format (printf, f, a))) +#define __used __attribute__((used)) #define ARG_UNUSED(x) (void)(x)