[U-Boot] [PATCH] common.h: Remove include compiler.h

Marek Vasut marex at denx.de
Fri Jul 20 22:12:58 CEST 2012


Remove this as including it on global scale breaks a lot of things.
This was reported by:
Matthew McClintock <B29882 at freescale.com>

Fix found by:
Tom Rini <trini at ti.com>

Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Wolfgang Denk <wd at denx.de>
Cc: Tom Rini <trini at ti.com>
---
 include/common.h |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/common.h b/include/common.h
index be9c278..39859d3 100644
--- a/include/common.h
+++ b/include/common.h
@@ -39,7 +39,6 @@ typedef volatile unsigned char	vu_char;
 #include <linux/bitops.h>
 #include <linux/types.h>
 #include <linux/string.h>
-#include <linux/compiler.h>
 #include <asm/ptrace.h>
 #include <stdarg.h>
 #if defined(CONFIG_PCI) && (defined(CONFIG_4xx) && !defined(CONFIG_AP1000))
@@ -959,7 +958,7 @@ int cpu_release(int nr, int argc, char * const argv[]);
  */
 #define DEFINE_ALIGN_BUFFER(type, name, size, align)			\
 	static char __##name[roundup(size * sizeof(type), align)]	\
-			__aligned(align);				\
+			__attribute__((aligned(align)));				\
 									\
 	static type *name = (type *)__##name
 #define DEFINE_CACHE_ALIGN_BUFFER(type, name, size)			\
-- 
1.7.10.4



More information about the U-Boot mailing list