]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc: Include <asm/cache.h> in common.h
authorStefan Roese <sr@denx.de>
Fri, 7 Oct 2011 01:05:34 +0000 (01:05 +0000)
committerWolfgang Denk <wd@denx.de>
Sun, 9 Oct 2011 20:20:44 +0000 (22:20 +0200)
This is needed for the patch "cache: add default setting for
CONFIG_SYS_CACHELINE_SIZE" from Anton Staaf. As cache.h defines
CONFIG_SYS_CACHELINE_SIZE for PPC targets.

This will remove the following warnings/errors:

include/common.h:819:2: warning: #warning CONFIG_SYS_CACHELINE_SIZE not defined, using __BIGGEST_ALIGNMENT__
cache.c:33: error: '__BIGGEST_ALIGNMENT__' undeclared (first use in this function)

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Anton Staaf <robotboy@chromium.org>
Cc: Wolfgang Denk <wd@denx.de>
include/common.h

index bcc00e82b78c73b7d86e2e4a5881156d5bc873a4..eb19a444cd3cc37927d37721c52a662c6bd23d71 100644 (file)
@@ -782,6 +782,14 @@ int cpu_release(int nr, int argc, char * const argv[]);
 
 #endif /* __ASSEMBLY__ */
 
+#ifdef CONFIG_PPC
+/*
+ * Has to be included outside of the #ifndef __ASSEMBLY__ section.
+ * Otherwise might lead to compilation errors in assembler files.
+ */
+#include <asm/cache.h>
+#endif
+
 /* Put only stuff here that the assembler can digest */
 
 #ifdef CONFIG_POST