]> git.karo-electronics.de Git - linux-beck.git/commitdiff
remove <asm/scatterlist.h>
authorChristoph Hellwig <hch@lst.de>
Fri, 1 May 2015 10:46:15 +0000 (12:46 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 5 May 2015 19:35:39 +0000 (13:35 -0600)
We don't have any arch specific scatterlist now that parisc switched over
to the generic one.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
26 files changed:
arch/alpha/include/asm/pci.h
arch/arm/include/asm/dma.h
arch/arm/mach-footbridge/dma.c
arch/blackfin/include/asm/pci.h
arch/cris/include/asm/dma-mapping.h
arch/cris/include/asm/pci.h
arch/frv/include/asm/dma-mapping.h
arch/frv/include/asm/pci.h
arch/ia64/include/asm/pci.h
arch/microblaze/include/asm/pci.h
arch/mips/include/asm/dma-mapping.h
arch/mips/include/asm/pci.h
arch/mn10300/include/asm/pci.h
arch/parisc/include/asm/dma-mapping.h
arch/parisc/include/asm/pci.h
arch/powerpc/include/asm/pci.h
arch/powerpc/include/asm/vio.h
arch/sparc/kernel/iommu_common.h
arch/x86/include/asm/pci.h
arch/xtensa/include/asm/pci.h
drivers/mmc/host/android-goldfish.c
include/asm-generic/scatterlist.h [deleted file]
include/linux/blkdev.h
include/linux/dmapool.h
include/linux/scatterlist.h
lib/swiotlb.c

index f7f680f7457dec0cc7ba0b9a5562c2041b2a5a4a..bf7d97dce9e81eb260ae9eee96c0f4b60701a519 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <linux/spinlock.h>
 #include <linux/dma-mapping.h>
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 #include <asm/machvec.h>
 #include <asm-generic/pci-bridge.h>
 
index 99084431d6ae2616498bef8b3edee9351d75cbe7..bb4fa67da54193777ef6dfdb4eaeca46629b89c4 100644 (file)
@@ -19,7 +19,7 @@
  * It should not be re-used except for that purpose.
  */
 #include <linux/spinlock.h>
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 
 #include <mach/isa-dma.h>
 
index e2e0df8bcee27deb9ec5c8028b5cadca91c91d94..22536b85a81d5323cf1fda51ee9462279a9bcf1d 100644 (file)
@@ -13,9 +13,9 @@
 #include <linux/init.h>
 #include <linux/io.h>
 #include <linux/spinlock.h>
+#include <linux/scatterlist.h>
 
 #include <asm/dma.h>
-#include <asm/scatterlist.h>
 
 #include <asm/mach/dma.h>
 #include <asm/hardware/dec21285.h>
index c737909fba470554d07911041bc03a6047ff71ea..14efc0db1ade134eb41e8566a6e4be76b0f94e6b 100644 (file)
@@ -3,7 +3,7 @@
 #ifndef _ASM_BFIN_PCI_H
 #define _ASM_BFIN_PCI_H
 
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 #include <asm-generic/pci-dma-compat.h>
 #include <asm-generic/pci.h>
 
index 2f0f654f1b4407484c0a22d1b418a44e5388f04f..57f794ee6039d00eb16589bddc1da1b0579741ef 100644 (file)
@@ -5,10 +5,10 @@
 
 #include <linux/mm.h>
 #include <linux/kernel.h>
+#include <linux/scatterlist.h>
 
 #include <asm/cache.h>
 #include <asm/io.h>
-#include <asm/scatterlist.h>
 
 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
index cc2399c175e9ea8181e2fc837d737dad28a9f779..c15b4b4baafaa82295ebb1e637f7a242bce68a0b 100644 (file)
@@ -29,7 +29,7 @@ int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq);
 
 #include <linux/types.h>
 #include <linux/slab.h>
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 #include <linux/string.h>
 #include <asm/io.h>
 
index 1746a2b8e6e7287cd9ad612caa00af6bd9cd8a28..2840adcd6d928c41a75b4b6640d3008ee12fddc9 100644 (file)
@@ -2,9 +2,9 @@
 #define _ASM_DMA_MAPPING_H
 
 #include <linux/device.h>
+#include <linux/scatterlist.h>
 #include <asm/cache.h>
 #include <asm/cacheflush.h>
-#include <asm/scatterlist.h>
 #include <asm/io.h>
 
 /*
index 2035a4d3f9b98c36a7463741a2fd19d0e038a803..43d224685144a5032ecf7961168c0889429ef85a 100644 (file)
@@ -14,7 +14,7 @@
 #define _ASM_FRV_PCI_H
 
 #include <linux/mm.h>
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 #include <asm-generic/pci-dma-compat.h>
 #include <asm-generic/pci.h>
 
index 52af5ed9f60ba98654f4657e7dd84e7b36f88390..0c0e25d6427a196a9fe9aadd40d02ae973b83c47 100644 (file)
@@ -6,9 +6,9 @@
 #include <linux/spinlock.h>
 #include <linux/string.h>
 #include <linux/types.h>
+#include <linux/scatterlist.h>
 
 #include <asm/io.h>
-#include <asm/scatterlist.h>
 #include <asm/hw_irq.h>
 
 struct pci_vector_struct {
index 468aca8cec0d32033d7859726c4aeedee0ec3423..81f27aef979c48ed2bb632ff0928e28c3a487436 100644 (file)
@@ -16,8 +16,8 @@
 #include <linux/string.h>
 #include <linux/dma-mapping.h>
 #include <linux/pci.h>
+#include <linux/scatterlist.h>
 
-#include <asm/scatterlist.h>
 #include <asm/io.h>
 #include <asm/prom.h>
 #include <asm/pci-bridge.h>
index fd1b4a15075991bef35cd27096683921b125d7c0..360b3387182af251713106cb304ac85ca78c5ca5 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _ASM_DMA_MAPPING_H
 #define _ASM_DMA_MAPPING_H
 
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 #include <asm/dma-coherence.h>
 #include <asm/cache.h>
 #include <asm-generic/dma-coherent.h>
index d9692993fc83373057d9594ad945b753b62723e3..3413b10d833bc96a3d1a11a377a6af71c50428b0 100644 (file)
@@ -99,7 +99,7 @@ static inline void pci_resource_to_user(const struct pci_dev *dev, int bar,
 
 #include <linux/types.h>
 #include <linux/slab.h>
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 #include <linux/string.h>
 #include <asm/io.h>
 #include <asm-generic/pci-bridge.h>
index 5f70af25c7d02a54315ed2b2da2e6fd12652e7d8..393b51d38f36182d3b7577d9cdfe3daf935697c3 100644 (file)
@@ -55,7 +55,7 @@ void pcibios_set_master(struct pci_dev *dev);
 
 #include <linux/types.h>
 #include <linux/slab.h>
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 #include <linux/string.h>
 #include <asm/io.h>
 
index d0eae5f2bd8795e244d2a086f30e7d78439050f3..d8d60a57183fb32be02adc0eefee76ff97d4aa71 100644 (file)
@@ -2,8 +2,8 @@
 #define _PARISC_DMA_MAPPING_H
 
 #include <linux/mm.h>
+#include <linux/scatterlist.h>
 #include <asm/cacheflush.h>
-#include <asm/scatterlist.h>
 
 /* See Documentation/DMA-API-HOWTO.txt */
 struct hppa_dma_ops {
index 20df2b04fc09f469ed517df9acc240bddff386e7..794d8820db5d7738dd0fd78889f7cb99f8f35244 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __ASM_PARISC_PCI_H
 #define __ASM_PARISC_PCI_H
 
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 
 
 
index 4aef8d6609997f48b9d3fcf4a488b698b11d9e3b..3be43ab63181c299558b395c85ee988b201b3940 100644 (file)
@@ -13,9 +13,9 @@
 #include <linux/slab.h>
 #include <linux/string.h>
 #include <linux/dma-mapping.h>
+#include <linux/scatterlist.h>
 
 #include <asm/machdep.h>
-#include <asm/scatterlist.h>
 #include <asm/io.h>
 #include <asm/prom.h>
 #include <asm/pci-bridge.h>
index 4f9b7ca0710fc5935de9d7963aeeedbb33159f90..84286ec77b124c0c8a7e77ce235e8f43a2a4378e 100644 (file)
@@ -19,9 +19,9 @@
 #include <linux/device.h>
 #include <linux/dma-mapping.h>
 #include <linux/mod_devicetable.h>
+#include <linux/scatterlist.h>
 
 #include <asm/hvcall.h>
-#include <asm/scatterlist.h>
 
 /*
  * Architecture-specific constants for drivers to
index f4be0d724fc6e65991b08e174d0d4ca6175f0d7f..b40cec25290503b72dbf1d8c18e8f374ab51b44e 100644 (file)
@@ -13,9 +13,9 @@
 #include <linux/scatterlist.h>
 #include <linux/device.h>
 #include <linux/iommu-helper.h>
+#include <linux/scatterlist.h>
 
 #include <asm/iommu.h>
-#include <asm/scatterlist.h>
 
 /*
  * These give mapping size of each iommu pte/tlb.
index 4e370a5d81170e4fb4c6fa5d1abaf451c87cf502..81da003df21b08ffd5b9c2fddf7f99f840c27538 100644 (file)
@@ -5,7 +5,7 @@
 #include <linux/types.h>
 #include <linux/slab.h>
 #include <linux/string.h>
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 #include <asm/io.h>
 #include <asm/x86_init.h>
 
index 5d52dc43dfe73e55b5ee9e2e439fd73630ddd731..e438a00fbd6399117b7e525b6874508f9e298ec9 100644 (file)
@@ -33,7 +33,7 @@ extern struct pci_controller* pcibios_alloc_controller(void);
 
 #include <linux/types.h>
 #include <linux/slab.h>
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 #include <linux/string.h>
 #include <asm/io.h>
 
index 8b4e20a3f16cd45c973185eddf7312754ae88be7..b1eac719a4cca2aa95033ace18e83b0c03a749df 100644 (file)
 #include <linux/spinlock.h>
 #include <linux/timer.h>
 #include <linux/clk.h>
+#include <linux/scatterlist.h>
 
 #include <asm/io.h>
 #include <asm/irq.h>
-#include <asm/scatterlist.h>
 
 #include <asm/types.h>
 #include <asm/io.h>
diff --git a/include/asm-generic/scatterlist.h b/include/asm-generic/scatterlist.h
deleted file mode 100644 (file)
index 5de0735..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef __ASM_GENERIC_SCATTERLIST_H
-#define __ASM_GENERIC_SCATTERLIST_H
-
-#include <linux/types.h>
-
-struct scatterlist {
-#ifdef CONFIG_DEBUG_SG
-       unsigned long   sg_magic;
-#endif
-       unsigned long   page_link;
-       unsigned int    offset;
-       unsigned int    length;
-       dma_addr_t      dma_address;
-#ifdef CONFIG_NEED_SG_DMA_LENGTH
-       unsigned int    dma_length;
-#endif
-};
-
-/*
- * These macros should be used after a dma_map_sg call has been done
- * to get bus addresses of each of the SG entries and their lengths.
- * You should only work with the number of sg entries pci_map_sg
- * returns, or alternatively stop on the first sg_dma_len(sg) which
- * is 0.
- */
-#define sg_dma_address(sg)     ((sg)->dma_address)
-
-#ifdef CONFIG_NEED_SG_DMA_LENGTH
-#define sg_dma_len(sg)         ((sg)->dma_length)
-#else
-#define sg_dma_len(sg)         ((sg)->length)
-#endif
-
-#endif /* __ASM_GENERIC_SCATTERLIST_H */
index 7f9a516f24dec57182f51cff3580db3904208a84..504af1e65ce12aaef8c02d0b10db4974a9eaf3bd 100644 (file)
@@ -22,8 +22,7 @@
 #include <linux/smp.h>
 #include <linux/rcupdate.h>
 #include <linux/percpu-refcount.h>
-
-#include <asm/scatterlist.h>
+#include <linux/scatterlist.h>
 
 struct module;
 struct scsi_ioctl_command;
index 52456aa566a05eded5d61eac974b237e00c26ce9..e1043f79122f827405afbb7b176d14611702098a 100644 (file)
@@ -11,8 +11,8 @@
 #ifndef LINUX_DMAPOOL_H
 #define        LINUX_DMAPOOL_H
 
+#include <linux/scatterlist.h>
 #include <asm/io.h>
-#include <asm/scatterlist.h>
 
 struct device;
 
index ed8f9e70df9bcf72358ce9baf534c082699daa86..eca1ec93775c658b5eac3a0685337bf8e82eb754 100644 (file)
@@ -2,13 +2,39 @@
 #define _LINUX_SCATTERLIST_H
 
 #include <linux/string.h>
+#include <linux/types.h>
 #include <linux/bug.h>
 #include <linux/mm.h>
-
-#include <asm/types.h>
-#include <asm/scatterlist.h>
 #include <asm/io.h>
 
+struct scatterlist {
+#ifdef CONFIG_DEBUG_SG
+       unsigned long   sg_magic;
+#endif
+       unsigned long   page_link;
+       unsigned int    offset;
+       unsigned int    length;
+       dma_addr_t      dma_address;
+#ifdef CONFIG_NEED_SG_DMA_LENGTH
+       unsigned int    dma_length;
+#endif
+};
+
+/*
+ * These macros should be used after a dma_map_sg call has been done
+ * to get bus addresses of each of the SG entries and their lengths.
+ * You should only work with the number of sg entries dma_map_sg
+ * returns, or alternatively stop on the first sg_dma_len(sg) which
+ * is 0.
+ */
+#define sg_dma_address(sg)     ((sg)->dma_address)
+
+#ifdef CONFIG_NEED_SG_DMA_LENGTH
+#define sg_dma_len(sg)         ((sg)->dma_length)
+#else
+#define sg_dma_len(sg)         ((sg)->length)
+#endif
+
 struct sg_table {
        struct scatterlist *sgl;        /* the list */
        unsigned int nents;             /* number of mapped entries */
@@ -18,10 +44,9 @@ struct sg_table {
 /*
  * Notes on SG table design.
  *
- * Architectures must provide an unsigned long page_link field in the
- * scatterlist struct. We use that to place the page pointer AND encode
- * information about the sg table as well. The two lower bits are reserved
- * for this information.
+ * We use the unsigned long page_link field in the scatterlist struct to place
+ * the page pointer AND encode information about the sg table as well. The two
+ * lower bits are reserved for this information.
  *
  * If bit 0 is set, then the page_link contains a pointer to the next sg
  * table list. Otherwise the next entry is at sg + 1.
index 4abda074ea458947390b84c36f3eaad7095a2ceb..341268841b310b309322388aa602905685d7cb37 100644 (file)
 #include <linux/ctype.h>
 #include <linux/highmem.h>
 #include <linux/gfp.h>
+#include <linux/scatterlist.h>
 
 #include <asm/io.h>
 #include <asm/dma.h>
-#include <asm/scatterlist.h>
 
 #include <linux/init.h>
 #include <linux/bootmem.h>