Commit b91d8a12 authored by David Rientjes's avatar David Rientjes Committed by Russell King

[ARM] use __used attribute

Use the newly introduced __used attribute in place of the deprecated
__attribute_used__.  Functionally the same.
Signed-off-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 3abc1201
...@@ -57,7 +57,7 @@ extern void fp_enter(void); ...@@ -57,7 +57,7 @@ extern void fp_enter(void);
#define EXPORT_SYMBOL_ALIAS(sym,orig) \ #define EXPORT_SYMBOL_ALIAS(sym,orig) \
EXPORT_CRC_ALIAS(sym) \ EXPORT_CRC_ALIAS(sym) \
static const struct kernel_symbol __ksymtab_##sym \ static const struct kernel_symbol __ksymtab_##sym \
__attribute_used__ __attribute__((section("__ksymtab"))) = \ __used __attribute__((section("__ksymtab"))) = \
{ (unsigned long)&orig, #sym }; { (unsigned long)&orig, #sym };
/* /*
......
...@@ -49,7 +49,7 @@ struct machine_desc { ...@@ -49,7 +49,7 @@ struct machine_desc {
*/ */
#define MACHINE_START(_type,_name) \ #define MACHINE_START(_type,_name) \
static const struct machine_desc __mach_desc_##_type \ static const struct machine_desc __mach_desc_##_type \
__attribute_used__ \ __used \
__attribute__((__section__(".arch.info.init"))) = { \ __attribute__((__section__(".arch.info.init"))) = { \
.nr = MACH_TYPE_##_type, \ .nr = MACH_TYPE_##_type, \
.name = _name, .name = _name,
......
...@@ -185,7 +185,7 @@ struct tagtable { ...@@ -185,7 +185,7 @@ struct tagtable {
#ifdef __KERNEL__ #ifdef __KERNEL__
#define __tag __attribute_used__ __attribute__((__section__(".taglist.init"))) #define __tag __used __attribute__((__section__(".taglist.init")))
#define __tagtable(tag, fn) \ #define __tagtable(tag, fn) \
static struct tagtable __tagtable_##fn __tag = { tag, fn } static struct tagtable __tagtable_##fn __tag = { tag, fn }
...@@ -218,7 +218,7 @@ struct early_params { ...@@ -218,7 +218,7 @@ struct early_params {
}; };
#define __early_param(name,fn) \ #define __early_param(name,fn) \
static struct early_params __early_##fn __attribute_used__ \ static struct early_params __early_##fn __used \
__attribute__((__section__(".early_param.init"))) = { name, fn } __attribute__((__section__(".early_param.init"))) = { name, fn }
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
......
...@@ -173,7 +173,7 @@ struct tagtable { ...@@ -173,7 +173,7 @@ struct tagtable {
int (*parse)(const struct tag *); int (*parse)(const struct tag *);
}; };
#define __tag __attribute_used__ __attribute__((__section__(".taglist"))) #define __tag __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 }
......
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