Commit d110ac4c authored by Russell King's avatar Russell King

[ARM] Use __attribute_used__ rather than __attribute__((used))

parent d0d0b2da
...@@ -171,7 +171,7 @@ struct tagtable { ...@@ -171,7 +171,7 @@ struct tagtable {
int (*parse)(const struct tag *); int (*parse)(const struct tag *);
}; };
#define __tag __attribute__((unused, __section__(".taglist"))) #define __tag __attribute_used__ __attribute__((__section__(".taglist")))
#define __tagtable(tag, fn) \ #define __tagtable(tag, fn) \
static struct tagtable __tagtable_##fn __tag = { tag, fn } static struct tagtable __tagtable_##fn __tag = { tag, fn }
...@@ -210,9 +210,8 @@ struct early_params { ...@@ -210,9 +210,8 @@ struct early_params {
void (*fn)(char **p); void (*fn)(char **p);
}; };
#define __early_param(name,fn) \ #define __early_param(name,fn) \
static struct early_params __early_##fn \ static struct early_params __early_##fn __attribute_used__ \
__attribute__((section("__early_param"), unused)) = \ __attribute__((__section__("__early_param"))) = { name, fn }
{ name, fn }
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment