diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/linux/linux-colinux-2.4.28/linux-2.4.24-attribute-used.patch | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/linux/linux-colinux-2.4.28/linux-2.4.24-attribute-used.patch')
-rw-r--r-- | recipes/linux/linux-colinux-2.4.28/linux-2.4.24-attribute-used.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes/linux/linux-colinux-2.4.28/linux-2.4.24-attribute-used.patch b/recipes/linux/linux-colinux-2.4.28/linux-2.4.24-attribute-used.patch new file mode 100644 index 0000000000..2b7678e97a --- /dev/null +++ b/recipes/linux/linux-colinux-2.4.28/linux-2.4.24-attribute-used.patch @@ -0,0 +1,37 @@ + +# +# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher +# + +--- linux-2.4.27/include/asm-arm/setup.h~linux-2.4.24-attribute-used 2003-08-25 07:44:43.000000000 -0400 ++++ linux-2.4.27/include/asm-arm/setup.h 2004-11-27 15:32:34.003354160 -0500 +@@ -236,7 +236,7 @@ + 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 } + +--- linux-2.4.27/include/linux/compiler.h~linux-2.4.24-attribute-used 2004-08-07 19:26:06.000000000 -0400 ++++ linux-2.4.27/include/linux/compiler.h 2004-11-27 15:32:34.008353400 -0500 +@@ -38,4 +38,18 @@ + /* no checker support, so we unconditionally define this as (null) */ + #define __user + ++#if __GNUC__ > 3 ++#define __attribute_used__ __attribute__((__used__)) ++#elif __GNUC__ == 3 ++#if __GNUC_MINOR__ >= 3 ++# define __attribute_used__ __attribute__((__used__)) ++#else ++# define __attribute_used__ __attribute__((__unused__)) ++#endif /* __GNUC_MINOR__ >= 3 */ ++#elif __GNUC__ == 2 ++#define __attribute_used__ __attribute__((__unused__)) ++#else ++#define __attribute_used__ /* not implemented */ ++#endif /* __GNUC__ */ ++ + #endif /* __LINUX_COMPILER_H */ |