]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/linux-colinux-2.4.28/linux-2.4.24-attribute-used.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux / linux-colinux-2.4.28 / linux-2.4.24-attribute-used.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
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
8 @@ -236,7 +236,7 @@
9         int (*parse)(const struct tag *);
10  };
11  
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 }
16  
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
19 @@ -38,4 +38,18 @@
20  /* no checker support, so we unconditionally define this as (null) */
21  #define __user
22  
23 +#if __GNUC__ > 3
24 +#define __attribute_used__     __attribute__((__used__))
25 +#elif __GNUC__ == 3
26 +#if  __GNUC_MINOR__ >= 3
27 +# define __attribute_used__    __attribute__((__used__))
28 +#else
29 +# define __attribute_used__    __attribute__((__unused__))
30 +#endif /* __GNUC_MINOR__ >= 3 */
31 +#elif __GNUC__ == 2
32 +#define __attribute_used__     __attribute__((__unused__))
33 +#else
34 +#define __attribute_used__     /* not implemented */
35 +#endif /* __GNUC__ */
36 +
37  #endif /* __LINUX_COMPILER_H */