Blackfin: push down asm/ includes and out of bfin-global.h
authorMike Frysinger <vapier@gentoo.org>
Fri, 9 Oct 2009 07:34:00 +0000 (07:34 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Dec 2009 05:14:14 +0000 (00:14 -0500)
Avoid including unnecessary headers all the time as well as circular
includes with core requirements.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/bfin-global.h
arch/blackfin/include/asm/cacheflush.h
arch/blackfin/include/asm/uaccess.h
arch/blackfin/kernel/dma-mapping.c

index 10064f902d201849f5f1c09b0e494b2230aee6d6..741c02112c063c59754c741cf7396feca9bb2d69 100644 (file)
@@ -11,9 +11,6 @@
 
 #ifndef __ASSEMBLY__
 
-#include <asm/sections.h>
-#include <asm/ptrace.h>
-#include <asm/user.h>
 #include <linux/linkage.h>
 #include <linux/types.h>
 
@@ -35,6 +32,7 @@ extern unsigned long get_sclk(void);
 extern unsigned long sclk_to_usecs(unsigned long sclk);
 extern unsigned long usecs_to_sclk(unsigned long usecs);
 
+struct pt_regs;
 extern void dump_bfin_process(struct pt_regs *regs);
 extern void dump_bfin_mem(struct pt_regs *regs);
 extern void dump_bfin_trace_buffer(void);
index 417eaac7fe99948a077d38707fb1cb9c22f03f10..2666ff8ea9522907b7aa80dc3ea63de161f76b98 100644 (file)
@@ -10,6 +10,7 @@
 #define _BLACKFIN_CACHEFLUSH_H
 
 #include <asm/blackfin.h>      /* for SSYNC() */
+#include <asm/sections.h>      /* for _ramend */
 
 extern void blackfin_icache_flush_range(unsigned long start_address, unsigned long end_address);
 extern void blackfin_dcache_flush_range(unsigned long start_address, unsigned long end_address);
index c03b8532aad398cef7bcfcee584a9765c0bf9dc2..1c0d190adaefa7a6555dfd079b7bac0da273b175 100644 (file)
@@ -17,9 +17,7 @@
 #include <linux/string.h>
 
 #include <asm/segment.h>
-#ifdef CONFIG_ACCESS_CHECK
-# include <asm/bfin-global.h>
-#endif
+#include <asm/sections.h>
 
 #define get_ds()        (KERNEL_DS)
 #define get_fs()        (current_thread_info()->addr_limit)
index be81572b89c2cf2a4f4ac84ba92ec1229bedf2cd..755a0f4b61ae1092564fed6f46f690c08586fc52 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/scatterlist.h>
 #include <asm/cacheflush.h>
 #include <asm/bfin-global.h>
+#include <asm/sections.h>
 
 static spinlock_t dma_page_lock;
 static unsigned long *dma_page;