3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- linux-2.4.27/include/asm-arm/setup.h~linux-2.4.24-attribute-used 2003-08-25 07:44:43.000000000 -0400
7 +++ linux-2.4.27/include/asm-arm/setup.h 2004-11-27 15:32:34.003354160 -0500
9 int (*parse)(const struct tag *);
12 -#define __tag __attribute__((unused, __section__(".taglist")))
13 +#define __tag __attribute_used__ __attribute__((__section__(".taglist")))
14 #define __tagtable(tag, fn) \
15 static struct tagtable __tagtable_##fn __tag = { tag, fn }
17 --- linux-2.4.27/include/linux/compiler.h~linux-2.4.24-attribute-used 2004-08-07 19:26:06.000000000 -0400
18 +++ linux-2.4.27/include/linux/compiler.h 2004-11-27 15:32:34.008353400 -0500
20 /* no checker support, so we unconditionally define this as (null) */
24 +#define __attribute_used__ __attribute__((__used__))
26 +#if __GNUC_MINOR__ >= 3
27 +# define __attribute_used__ __attribute__((__used__))
29 +# define __attribute_used__ __attribute__((__unused__))
30 +#endif /* __GNUC_MINOR__ >= 3 */
32 +#define __attribute_used__ __attribute__((__unused__))
34 +#define __attribute_used__ /* not implemented */
35 +#endif /* __GNUC__ */
37 #endif /* __LINUX_COMPILER_H */