# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Date 1183604906 -32400 # Node ID 1756cd931c4dda2edf593826546a3fc7b6556849 # Parent d504e53612decf16e2b26cb7b7ff9f9418105d81 linux header inclusion clean up. With this patch dma-mapping.h and processor.h become unmodified. privops.h overrides gcc/intel intrinsics methods so it should be included from intrinsics.h PATCHNAME: linux_header_inclusion_clean_up Signed-off-by: Isaku Yamahata diff -r d504e53612de -r 1756cd931c4d arch/ia64/kernel/gate.S --- a/arch/ia64/kernel/gate.S Thu Jul 05 12:05:55 2007 +0900 +++ b/arch/ia64/kernel/gate.S Thu Jul 05 12:08:26 2007 +0900 @@ -13,9 +13,6 @@ #include #include #include -#ifdef CONFIG_XEN_IA64_VDSO_PARAVIRT -# include -#endif /* * We can't easily refer to symbols inside the kernel. To avoid full runtime relocation, diff -r d504e53612de -r 1756cd931c4d arch/ia64/xen/hypercall.S --- a/arch/ia64/xen/hypercall.S Thu Jul 05 12:05:55 2007 +0900 +++ b/arch/ia64/xen/hypercall.S Thu Jul 05 12:08:26 2007 +0900 @@ -4,8 +4,8 @@ * Copyright (C) 2005 Dan Magenheimer */ -#include #include +#include GLOBAL_ENTRY(xen_get_psr) XEN_HYPER_GET_PSR diff -r d504e53612de -r 1756cd931c4d arch/ia64/xen/xenhpski.c --- a/arch/ia64/xen/xenhpski.c Thu Jul 05 12:05:55 2007 +0900 +++ b/arch/ia64/xen/xenhpski.c Thu Jul 05 12:08:26 2007 +0900 @@ -1,5 +1,5 @@ - -extern unsigned long xen_get_cpuid(int); +#include +#include int running_on_sim(void) diff -r d504e53612de -r 1756cd931c4d include/asm-ia64/dma-mapping.h --- a/include/asm-ia64/dma-mapping.h Thu Jul 05 12:05:55 2007 +0900 +++ b/include/asm-ia64/dma-mapping.h Thu Jul 05 12:08:26 2007 +0900 @@ -6,12 +6,6 @@ * David Mosberger-Tang */ #include -#ifdef CONFIG_XEN -/* Needed for arch/i386/kernel/swiotlb.c and arch/i386/kernel/pci-dma-xen.c */ -#include -/* Needed for arch/i386/kernel/swiotlb.c */ -#include -#endif #define dma_alloc_coherent platform_dma_alloc_coherent #define dma_alloc_noncoherent platform_dma_alloc_coherent /* coherent mem. is cheap */ @@ -26,6 +20,7 @@ #define dma_sync_single_for_device platform_dma_sync_single_for_device #define dma_sync_sg_for_device platform_dma_sync_sg_for_device #define dma_mapping_error platform_dma_mapping_error + #define dma_map_page(dev, pg, off, size, dir) \ dma_map_single(dev, page_address(pg) + (off), (size), (dir)) #define dma_unmap_page(dev, dma_addr, size, dir) \ @@ -66,20 +61,4 @@ dma_cache_sync (void *vaddr, size_t size #define dma_is_consistent(dma_handle) (1) /* all we do is coherent memory... */ -#ifdef CONFIG_XEN -static inline int -range_straddles_page_boundary(void *p, size_t size) -{ - extern unsigned long *contiguous_bitmap; - - if (!is_running_on_xen()) - return 0; - - return (((((unsigned long)p & ~PAGE_MASK) + size) > PAGE_SIZE) && - !test_bit(__pa(p) >> PAGE_SHIFT, contiguous_bitmap)); -} -#else -#define range_straddles_page_boundary(addr, size) (0) -#endif - #endif /* _ASM_IA64_DMA_MAPPING_H */ diff -r d504e53612de -r 1756cd931c4d include/asm-ia64/hypercall.h --- a/include/asm-ia64/hypercall.h Thu Jul 05 12:05:55 2007 +0900 +++ b/include/asm-ia64/hypercall.h Thu Jul 05 12:08:26 2007 +0900 @@ -238,9 +238,6 @@ static inline void exit_idle(void) {} }) #include -#ifdef CONFIG_XEN -#include -#endif /* CONFIG_XEN */ #ifdef HAVE_XEN_PLATFORM_COMPAT_H #include #endif diff -r d504e53612de -r 1756cd931c4d include/asm-ia64/hypervisor.h --- a/include/asm-ia64/hypervisor.h Thu Jul 05 12:05:55 2007 +0900 +++ b/include/asm-ia64/hypervisor.h Thu Jul 05 12:08:26 2007 +0900 @@ -225,4 +225,20 @@ asmlinkage int xprintk(const char *fmt, #define is_initial_xendomain() 0 #endif +#ifdef CONFIG_XEN +static inline int +range_straddles_page_boundary(void *p, size_t size) +{ + extern unsigned long *contiguous_bitmap; + + if (!is_running_on_xen()) + return 0; + + return (((((unsigned long)p & ~PAGE_MASK) + size) > PAGE_SIZE) && + !test_bit(__pa(p) >> PAGE_SHIFT, contiguous_bitmap)); +} +#else +#define range_straddles_page_boundary(addr, size) (0) +#endif + #endif /* __HYPERVISOR_H__ */ diff -r d504e53612de -r 1756cd931c4d include/asm-ia64/intrinsics.h --- a/include/asm-ia64/intrinsics.h Thu Jul 05 12:05:55 2007 +0900 +++ b/include/asm-ia64/intrinsics.h Thu Jul 05 12:08:26 2007 +0900 @@ -177,4 +177,5 @@ extern long ia64_cmpxchg_called_with_bad #endif /* !CONFIG_IA64_DEBUG_CMPXCHG */ #endif +#include #endif /* _ASM_IA64_INTRINSICS_H */ diff -r d504e53612de -r 1756cd931c4d include/asm-ia64/io.h --- a/include/asm-ia64/io.h Thu Jul 05 12:05:55 2007 +0900 +++ b/include/asm-ia64/io.h Thu Jul 05 12:08:26 2007 +0900 @@ -66,11 +66,9 @@ extern unsigned int num_io_spaces; #define PIO_RESERVED __IA64_UNCACHED_OFFSET #define HAVE_ARCH_PIO_SIZE -#include #include #include #include -#include #include #include diff -r d504e53612de -r 1756cd931c4d include/asm-ia64/processor.h --- a/include/asm-ia64/processor.h Thu Jul 05 12:05:55 2007 +0900 +++ b/include/asm-ia64/processor.h Thu Jul 05 12:08:26 2007 +0900 @@ -18,7 +18,6 @@ #include #include #include -#include #define IA64_NUM_DBG_REGS 8 /* diff -r d504e53612de -r 1756cd931c4d include/asm-ia64/xen/privop.h --- a/include/asm-ia64/xen/privop.h Thu Jul 05 12:05:55 2007 +0900 +++ b/include/asm-ia64/xen/privop.h Thu Jul 05 12:08:26 2007 +0900 @@ -9,7 +9,9 @@ * */ - +#ifndef __ASSEMBLY__ +#include /* arch-ia64.h requires uint64_t */ +#endif #include #define IA64_PARAVIRTUALIZED