Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Blackfin: push down asm/ includes and out of bfin-global.h

Avoid including unnecessary headers all the time as well as circular
includes with core requirements.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

+4 -6
+1 -3
arch/blackfin/include/asm/bfin-global.h
··· 11 11 12 12 #ifndef __ASSEMBLY__ 13 13 14 - #include <asm/sections.h> 15 - #include <asm/ptrace.h> 16 - #include <asm/user.h> 17 14 #include <linux/linkage.h> 18 15 #include <linux/types.h> 19 16 ··· 32 35 extern unsigned long sclk_to_usecs(unsigned long sclk); 33 36 extern unsigned long usecs_to_sclk(unsigned long usecs); 34 37 38 + struct pt_regs; 35 39 extern void dump_bfin_process(struct pt_regs *regs); 36 40 extern void dump_bfin_mem(struct pt_regs *regs); 37 41 extern void dump_bfin_trace_buffer(void);
+1
arch/blackfin/include/asm/cacheflush.h
··· 10 10 #define _BLACKFIN_CACHEFLUSH_H 11 11 12 12 #include <asm/blackfin.h> /* for SSYNC() */ 13 + #include <asm/sections.h> /* for _ramend */ 13 14 14 15 extern void blackfin_icache_flush_range(unsigned long start_address, unsigned long end_address); 15 16 extern void blackfin_dcache_flush_range(unsigned long start_address, unsigned long end_address);
+1 -3
arch/blackfin/include/asm/uaccess.h
··· 17 17 #include <linux/string.h> 18 18 19 19 #include <asm/segment.h> 20 - #ifdef CONFIG_ACCESS_CHECK 21 - # include <asm/bfin-global.h> 22 - #endif 20 + #include <asm/sections.h> 23 21 24 22 #define get_ds() (KERNEL_DS) 25 23 #define get_fs() (current_thread_info()->addr_limit)
+1
arch/blackfin/kernel/dma-mapping.c
··· 17 17 #include <linux/scatterlist.h> 18 18 #include <asm/cacheflush.h> 19 19 #include <asm/bfin-global.h> 20 + #include <asm/sections.h> 20 21 21 22 static spinlock_t dma_page_lock; 22 23 static unsigned long *dma_page;