Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ARM] use __used attribute

Use the newly introduced __used attribute in place of the deprecated
__attribute_used__. Functionally the same.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

David Rientjes and committed by
Russell King
b91d8a12 3abc1201

+5 -5
+1 -1
arch/arm/kernel/armksyms.c
··· 57 57 #define EXPORT_SYMBOL_ALIAS(sym,orig) \ 58 58 EXPORT_CRC_ALIAS(sym) \ 59 59 static const struct kernel_symbol __ksymtab_##sym \ 60 - __attribute_used__ __attribute__((section("__ksymtab"))) = \ 60 + __used __attribute__((section("__ksymtab"))) = \ 61 61 { (unsigned long)&orig, #sym }; 62 62 63 63 /*
+1 -1
include/asm-arm/mach/arch.h
··· 49 49 */ 50 50 #define MACHINE_START(_type,_name) \ 51 51 static const struct machine_desc __mach_desc_##_type \ 52 - __attribute_used__ \ 52 + __used \ 53 53 __attribute__((__section__(".arch.info.init"))) = { \ 54 54 .nr = MACH_TYPE_##_type, \ 55 55 .name = _name,
+2 -2
include/asm-arm/setup.h
··· 185 185 186 186 #ifdef __KERNEL__ 187 187 188 - #define __tag __attribute_used__ __attribute__((__section__(".taglist.init"))) 188 + #define __tag __used __attribute__((__section__(".taglist.init"))) 189 189 #define __tagtable(tag, fn) \ 190 190 static struct tagtable __tagtable_##fn __tag = { tag, fn } 191 191 ··· 218 218 }; 219 219 220 220 #define __early_param(name,fn) \ 221 - static struct early_params __early_##fn __attribute_used__ \ 221 + static struct early_params __early_##fn __used \ 222 222 __attribute__((__section__(".early_param.init"))) = { name, fn } 223 223 224 224 #endif /* __KERNEL__ */
+1 -1
include/asm-arm26/setup.h
··· 173 173 int (*parse)(const struct tag *); 174 174 }; 175 175 176 - #define __tag __attribute_used__ __attribute__((__section__(".taglist"))) 176 + #define __tag __used __attribute__((__section__(".taglist"))) 177 177 #define __tagtable(tag, fn) \ 178 178 static struct tagtable __tagtable_##fn __tag = { tag, fn } 179 179