]> git.hungrycats.org Git - linux/commitdiff
[ARM] Use __attribute_used__ rather than __attribute__((used))
authorRussell King <rmk@flint.arm.linux.org.uk>
Fri, 13 Feb 2004 23:06:56 +0000 (23:06 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Fri, 13 Feb 2004 23:06:56 +0000 (23:06 +0000)
include/asm-arm/setup.h

index 9d92daa4173e4a6b96377690b7eaa1a857465bdc..4680c39be96f5438df38f9fdd6ce0ffa8eceab88 100644 (file)
@@ -171,7 +171,7 @@ struct tagtable {
        int (*parse)(const struct tag *);
 };
 
-#define __tag __attribute__((unused, __section__(".taglist")))
+#define __tag __attribute_used__ __attribute__((__section__(".taglist")))
 #define __tagtable(tag, fn) \
 static struct tagtable __tagtable_##fn __tag = { tag, fn }
 
@@ -210,9 +210,8 @@ struct early_params {
        void (*fn)(char **p);
 };
 
-#define __early_param(name,fn)                         \
-static struct early_params __early_##fn                        \
-__attribute__((section("__early_param"), unused)) =    \
-       { name, fn }
+#define __early_param(name,fn)                                 \
+static struct early_params __early_##fn __attribute_used__     \
+__attribute__((__section__("__early_param"))) = { name, fn }
 
 #endif