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

Merge branch 'for-4.2/sg' of git://git.kernel.dk/linux-block

Pull asm/scatterlist.h removal from Jens Axboe:
"We don't have any specific arch scatterlist anymore, since parisc
finally switched over. Kill the include"

* 'for-4.2/sg' of git://git.kernel.dk/linux-block:
remove scatterlist.h generation from arch Kbuild files
remove <asm/scatterlist.h>

+57 -97
+1 -1
Documentation/scsi/scsi_mid_low_api.txt
··· 1269 1269 request_buffer - either contains data buffer or scatter gather list 1270 1270 depending on the setting of use_sg. Scatter gather 1271 1271 elements are defined by 'struct scatterlist' found 1272 - in include/asm/scatterlist.h . 1272 + in include/linux/scatterlist.h . 1273 1273 done - function pointer that should be invoked by LLD when the 1274 1274 SCSI command is completed (successfully or otherwise). 1275 1275 Should only be called by an LLD if the LLD has accepted
-1
arch/alpha/include/asm/Kbuild
··· 6 6 generic-y += irq_work.h 7 7 generic-y += mcs_spinlock.h 8 8 generic-y += preempt.h 9 - generic-y += scatterlist.h 10 9 generic-y += sections.h 11 10 generic-y += trace_clock.h
+1 -1
arch/alpha/include/asm/pci.h
··· 5 5 6 6 #include <linux/spinlock.h> 7 7 #include <linux/dma-mapping.h> 8 - #include <asm/scatterlist.h> 8 + #include <linux/scatterlist.h> 9 9 #include <asm/machvec.h> 10 10 #include <asm-generic/pci-bridge.h> 11 11
-1
arch/arc/include/asm/Kbuild
··· 33 33 generic-y += posix_types.h 34 34 generic-y += preempt.h 35 35 generic-y += resource.h 36 - generic-y += scatterlist.h 37 36 generic-y += sembuf.h 38 37 generic-y += shmbuf.h 39 38 generic-y += siginfo.h
-1
arch/arm/include/asm/Kbuild
··· 20 20 generic-y += preempt.h 21 21 generic-y += resource.h 22 22 generic-y += rwsem.h 23 - generic-y += scatterlist.h 24 23 generic-y += seccomp.h 25 24 generic-y += sections.h 26 25 generic-y += segment.h
+1 -1
arch/arm/include/asm/dma.h
··· 19 19 * It should not be re-used except for that purpose. 20 20 */ 21 21 #include <linux/spinlock.h> 22 - #include <asm/scatterlist.h> 22 + #include <linux/scatterlist.h> 23 23 24 24 #include <mach/isa-dma.h> 25 25
+1 -1
arch/arm/mach-footbridge/dma.c
··· 13 13 #include <linux/init.h> 14 14 #include <linux/io.h> 15 15 #include <linux/spinlock.h> 16 + #include <linux/scatterlist.h> 16 17 17 18 #include <asm/dma.h> 18 - #include <asm/scatterlist.h> 19 19 20 20 #include <asm/mach/dma.h> 21 21 #include <asm/hardware/dec21285.h>
-1
arch/arm64/include/asm/Kbuild
··· 35 35 generic-y += preempt.h 36 36 generic-y += resource.h 37 37 generic-y += rwsem.h 38 - generic-y += scatterlist.h 39 38 generic-y += sections.h 40 39 generic-y += segment.h 41 40 generic-y += sembuf.h
-1
arch/avr32/include/asm/Kbuild
··· 15 15 generic-y += param.h 16 16 generic-y += percpu.h 17 17 generic-y += preempt.h 18 - generic-y += scatterlist.h 19 18 generic-y += sections.h 20 19 generic-y += topology.h 21 20 generic-y += trace_clock.h
-1
arch/blackfin/include/asm/Kbuild
··· 29 29 generic-y += pgalloc.h 30 30 generic-y += preempt.h 31 31 generic-y += resource.h 32 - generic-y += scatterlist.h 33 32 generic-y += sembuf.h 34 33 generic-y += serial.h 35 34 generic-y += setup.h
+1 -1
arch/blackfin/include/asm/pci.h
··· 3 3 #ifndef _ASM_BFIN_PCI_H 4 4 #define _ASM_BFIN_PCI_H 5 5 6 - #include <asm/scatterlist.h> 6 + #include <linux/scatterlist.h> 7 7 #include <asm-generic/pci-dma-compat.h> 8 8 #include <asm-generic/pci.h> 9 9
-1
arch/c6x/include/asm/Kbuild
··· 38 38 generic-y += posix_types.h 39 39 generic-y += preempt.h 40 40 generic-y += resource.h 41 - generic-y += scatterlist.h 42 41 generic-y += segment.h 43 42 generic-y += sembuf.h 44 43 generic-y += serial.h
-1
arch/cris/include/asm/Kbuild
··· 21 21 generic-y += module.h 22 22 generic-y += percpu.h 23 23 generic-y += preempt.h 24 - generic-y += scatterlist.h 25 24 generic-y += sections.h 26 25 generic-y += topology.h 27 26 generic-y += trace_clock.h
+1 -1
arch/cris/include/asm/dma-mapping.h
··· 5 5 6 6 #include <linux/mm.h> 7 7 #include <linux/kernel.h> 8 + #include <linux/scatterlist.h> 8 9 9 10 #include <asm/cache.h> 10 11 #include <asm/io.h> 11 - #include <asm/scatterlist.h> 12 12 13 13 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) 14 14 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
+1 -1
arch/cris/include/asm/pci.h
··· 29 29 30 30 #include <linux/types.h> 31 31 #include <linux/slab.h> 32 - #include <asm/scatterlist.h> 32 + #include <linux/scatterlist.h> 33 33 #include <linux/string.h> 34 34 #include <asm/io.h> 35 35
-1
arch/frv/include/asm/Kbuild
··· 5 5 generic-y += irq_work.h 6 6 generic-y += mcs_spinlock.h 7 7 generic-y += preempt.h 8 - generic-y += scatterlist.h 9 8 generic-y += trace_clock.h
+1 -1
arch/frv/include/asm/dma-mapping.h
··· 2 2 #define _ASM_DMA_MAPPING_H 3 3 4 4 #include <linux/device.h> 5 + #include <linux/scatterlist.h> 5 6 #include <asm/cache.h> 6 7 #include <asm/cacheflush.h> 7 - #include <asm/scatterlist.h> 8 8 #include <asm/io.h> 9 9 10 10 /*
+1 -1
arch/frv/include/asm/pci.h
··· 14 14 #define _ASM_FRV_PCI_H 15 15 16 16 #include <linux/mm.h> 17 - #include <asm/scatterlist.h> 17 + #include <linux/scatterlist.h> 18 18 #include <asm-generic/pci-dma-compat.h> 19 19 #include <asm-generic/pci.h> 20 20
-1
arch/hexagon/include/asm/Kbuild
··· 37 37 generic-y += preempt.h 38 38 generic-y += resource.h 39 39 generic-y += rwsem.h 40 - generic-y += scatterlist.h 41 40 generic-y += sections.h 42 41 generic-y += segment.h 43 42 generic-y += sembuf.h
-1
arch/ia64/include/asm/Kbuild
··· 5 5 generic-y += kvm_para.h 6 6 generic-y += mcs_spinlock.h 7 7 generic-y += preempt.h 8 - generic-y += scatterlist.h 9 8 generic-y += trace_clock.h 10 9 generic-y += vtime.h
+1 -1
arch/ia64/include/asm/pci.h
··· 6 6 #include <linux/spinlock.h> 7 7 #include <linux/string.h> 8 8 #include <linux/types.h> 9 + #include <linux/scatterlist.h> 9 10 10 11 #include <asm/io.h> 11 - #include <asm/scatterlist.h> 12 12 #include <asm/hw_irq.h> 13 13 14 14 struct pci_vector_struct {
-1
arch/m32r/include/asm/Kbuild
··· 6 6 generic-y += mcs_spinlock.h 7 7 generic-y += module.h 8 8 generic-y += preempt.h 9 - generic-y += scatterlist.h 10 9 generic-y += sections.h 11 10 generic-y += trace_clock.h
-1
arch/m68k/include/asm/Kbuild
··· 23 23 generic-y += percpu.h 24 24 generic-y += preempt.h 25 25 generic-y += resource.h 26 - generic-y += scatterlist.h 27 26 generic-y += sections.h 28 27 generic-y += shmparam.h 29 28 generic-y += siginfo.h
-1
arch/metag/include/asm/Kbuild
··· 33 33 generic-y += poll.h 34 34 generic-y += posix_types.h 35 35 generic-y += preempt.h 36 - generic-y += scatterlist.h 37 36 generic-y += sections.h 38 37 generic-y += sembuf.h 39 38 generic-y += serial.h
-1
arch/microblaze/include/asm/Kbuild
··· 7 7 generic-y += irq_work.h 8 8 generic-y += mcs_spinlock.h 9 9 generic-y += preempt.h 10 - generic-y += scatterlist.h 11 10 generic-y += syscalls.h 12 11 generic-y += trace_clock.h
+1 -1
arch/microblaze/include/asm/pci.h
··· 16 16 #include <linux/string.h> 17 17 #include <linux/dma-mapping.h> 18 18 #include <linux/pci.h> 19 + #include <linux/scatterlist.h> 19 20 20 - #include <asm/scatterlist.h> 21 21 #include <asm/io.h> 22 22 #include <asm/prom.h> 23 23 #include <asm/pci-bridge.h>
-1
arch/mips/include/asm/Kbuild
··· 11 11 generic-y += parport.h 12 12 generic-y += percpu.h 13 13 generic-y += preempt.h 14 - generic-y += scatterlist.h 15 14 generic-y += sections.h 16 15 generic-y += segment.h 17 16 generic-y += serial.h
+1 -1
arch/mips/include/asm/dma-mapping.h
··· 1 1 #ifndef _ASM_DMA_MAPPING_H 2 2 #define _ASM_DMA_MAPPING_H 3 3 4 - #include <asm/scatterlist.h> 4 + #include <linux/scatterlist.h> 5 5 #include <asm/dma-coherence.h> 6 6 #include <asm/cache.h> 7 7 #include <asm-generic/dma-coherent.h>
+1 -1
arch/mips/include/asm/pci.h
··· 99 99 100 100 #include <linux/types.h> 101 101 #include <linux/slab.h> 102 - #include <asm/scatterlist.h> 102 + #include <linux/scatterlist.h> 103 103 #include <linux/string.h> 104 104 #include <asm/io.h> 105 105 #include <asm-generic/pci-bridge.h>
-1
arch/mn10300/include/asm/Kbuild
··· 6 6 generic-y += irq_work.h 7 7 generic-y += mcs_spinlock.h 8 8 generic-y += preempt.h 9 - generic-y += scatterlist.h 10 9 generic-y += sections.h 11 10 generic-y += trace_clock.h
+1 -1
arch/mn10300/include/asm/pci.h
··· 55 55 56 56 #include <linux/types.h> 57 57 #include <linux/slab.h> 58 - #include <asm/scatterlist.h> 58 + #include <linux/scatterlist.h> 59 59 #include <linux/string.h> 60 60 #include <asm/io.h> 61 61
-1
arch/nios2/include/asm/Kbuild
··· 40 40 generic-y += posix_types.h 41 41 generic-y += preempt.h 42 42 generic-y += resource.h 43 - generic-y += scatterlist.h 44 43 generic-y += sections.h 45 44 generic-y += segment.h 46 45 generic-y += sembuf.h
-1
arch/openrisc/include/asm/Kbuild
··· 45 45 generic-y += posix_types.h 46 46 generic-y += preempt.h 47 47 generic-y += resource.h 48 - generic-y += scatterlist.h 49 48 generic-y += sections.h 50 49 generic-y += segment.h 51 50 generic-y += sembuf.h
-1
arch/parisc/include/asm/Kbuild
··· 20 20 generic-y += percpu.h 21 21 generic-y += poll.h 22 22 generic-y += preempt.h 23 - generic-y += scatterlist.h 24 23 generic-y += seccomp.h 25 24 generic-y += segment.h 26 25 generic-y += topology.h
+1 -1
arch/parisc/include/asm/dma-mapping.h
··· 2 2 #define _PARISC_DMA_MAPPING_H 3 3 4 4 #include <linux/mm.h> 5 + #include <linux/scatterlist.h> 5 6 #include <asm/cacheflush.h> 6 - #include <asm/scatterlist.h> 7 7 8 8 /* See Documentation/DMA-API-HOWTO.txt */ 9 9 struct hppa_dma_ops {
+1 -1
arch/parisc/include/asm/pci.h
··· 1 1 #ifndef __ASM_PARISC_PCI_H 2 2 #define __ASM_PARISC_PCI_H 3 3 4 - #include <asm/scatterlist.h> 4 + #include <linux/scatterlist.h> 5 5 6 6 7 7
-1
arch/powerpc/include/asm/Kbuild
··· 6 6 generic-y += mcs_spinlock.h 7 7 generic-y += preempt.h 8 8 generic-y += rwsem.h 9 - generic-y += scatterlist.h 10 9 generic-y += trace_clock.h 11 10 generic-y += vtime.h
+1 -1
arch/powerpc/include/asm/pci.h
··· 13 13 #include <linux/slab.h> 14 14 #include <linux/string.h> 15 15 #include <linux/dma-mapping.h> 16 + #include <linux/scatterlist.h> 16 17 17 18 #include <asm/machdep.h> 18 - #include <asm/scatterlist.h> 19 19 #include <asm/io.h> 20 20 #include <asm/prom.h> 21 21 #include <asm/pci-bridge.h>
+1 -1
arch/powerpc/include/asm/vio.h
··· 19 19 #include <linux/device.h> 20 20 #include <linux/dma-mapping.h> 21 21 #include <linux/mod_devicetable.h> 22 + #include <linux/scatterlist.h> 22 23 23 24 #include <asm/hvcall.h> 24 - #include <asm/scatterlist.h> 25 25 26 26 /* 27 27 * Architecture-specific constants for drivers to
-1
arch/s390/include/asm/Kbuild
··· 4 4 generic-y += irq_work.h 5 5 generic-y += mcs_spinlock.h 6 6 generic-y += preempt.h 7 - generic-y += scatterlist.h 8 7 generic-y += trace_clock.h
-1
arch/score/include/asm/Kbuild
··· 8 8 generic-y += irq_work.h 9 9 generic-y += mcs_spinlock.h 10 10 generic-y += preempt.h 11 - generic-y += scatterlist.h 12 11 generic-y += sections.h 13 12 generic-y += trace_clock.h 14 13 generic-y += xor.h
-1
arch/sh/include/asm/Kbuild
··· 24 24 generic-y += poll.h 25 25 generic-y += preempt.h 26 26 generic-y += resource.h 27 - generic-y += scatterlist.h 28 27 generic-y += sembuf.h 29 28 generic-y += serial.h 30 29 generic-y += shmbuf.h
-1
arch/sparc/include/asm/Kbuild
··· 15 15 generic-y += module.h 16 16 generic-y += mutex.h 17 17 generic-y += preempt.h 18 - generic-y += scatterlist.h 19 18 generic-y += serial.h 20 19 generic-y += trace_clock.h 21 20 generic-y += types.h
+1 -1
arch/sparc/kernel/iommu_common.h
··· 13 13 #include <linux/scatterlist.h> 14 14 #include <linux/device.h> 15 15 #include <linux/iommu-helper.h> 16 + #include <linux/scatterlist.h> 16 17 17 18 #include <asm/iommu.h> 18 - #include <asm/scatterlist.h> 19 19 20 20 /* 21 21 * These give mapping size of each iommu pte/tlb.
-1
arch/tile/include/asm/Kbuild
··· 27 27 generic-y += posix_types.h 28 28 generic-y += preempt.h 29 29 generic-y += resource.h 30 - generic-y += scatterlist.h 31 30 generic-y += sembuf.h 32 31 generic-y += serial.h 33 32 generic-y += shmbuf.h
-1
arch/um/include/asm/Kbuild
··· 21 21 generic-y += pci.h 22 22 generic-y += percpu.h 23 23 generic-y += preempt.h 24 - generic-y += scatterlist.h 25 24 generic-y += sections.h 26 25 generic-y += switch_to.h 27 26 generic-y += topology.h
-1
arch/unicore32/include/asm/Kbuild
··· 36 36 generic-y += posix_types.h 37 37 generic-y += preempt.h 38 38 generic-y += resource.h 39 - generic-y += scatterlist.h 40 39 generic-y += sections.h 41 40 generic-y += segment.h 42 41 generic-y += sembuf.h
-1
arch/x86/include/asm/Kbuild
··· 9 9 generic-y += dma-contiguous.h 10 10 generic-y += early_ioremap.h 11 11 generic-y += mcs_spinlock.h 12 - generic-y += scatterlist.h
+1 -1
arch/x86/include/asm/pci.h
··· 5 5 #include <linux/types.h> 6 6 #include <linux/slab.h> 7 7 #include <linux/string.h> 8 - #include <asm/scatterlist.h> 8 + #include <linux/scatterlist.h> 9 9 #include <asm/io.h> 10 10 #include <asm/x86_init.h> 11 11
-1
arch/xtensa/include/asm/Kbuild
··· 22 22 generic-y += percpu.h 23 23 generic-y += preempt.h 24 24 generic-y += resource.h 25 - generic-y += scatterlist.h 26 25 generic-y += sections.h 27 26 generic-y += siginfo.h 28 27 generic-y += statfs.h
+1 -1
arch/xtensa/include/asm/pci.h
··· 33 33 34 34 #include <linux/types.h> 35 35 #include <linux/slab.h> 36 - #include <asm/scatterlist.h> 36 + #include <linux/scatterlist.h> 37 37 #include <linux/string.h> 38 38 #include <asm/io.h> 39 39
+1 -1
drivers/mmc/host/android-goldfish.c
··· 42 42 #include <linux/spinlock.h> 43 43 #include <linux/timer.h> 44 44 #include <linux/clk.h> 45 + #include <linux/scatterlist.h> 45 46 46 47 #include <asm/io.h> 47 48 #include <asm/irq.h> 48 - #include <asm/scatterlist.h> 49 49 50 50 #include <asm/types.h> 51 51 #include <asm/io.h>
-34
include/asm-generic/scatterlist.h
··· 1 - #ifndef __ASM_GENERIC_SCATTERLIST_H 2 - #define __ASM_GENERIC_SCATTERLIST_H 3 - 4 - #include <linux/types.h> 5 - 6 - struct scatterlist { 7 - #ifdef CONFIG_DEBUG_SG 8 - unsigned long sg_magic; 9 - #endif 10 - unsigned long page_link; 11 - unsigned int offset; 12 - unsigned int length; 13 - dma_addr_t dma_address; 14 - #ifdef CONFIG_NEED_SG_DMA_LENGTH 15 - unsigned int dma_length; 16 - #endif 17 - }; 18 - 19 - /* 20 - * These macros should be used after a dma_map_sg call has been done 21 - * to get bus addresses of each of the SG entries and their lengths. 22 - * You should only work with the number of sg entries pci_map_sg 23 - * returns, or alternatively stop on the first sg_dma_len(sg) which 24 - * is 0. 25 - */ 26 - #define sg_dma_address(sg) ((sg)->dma_address) 27 - 28 - #ifdef CONFIG_NEED_SG_DMA_LENGTH 29 - #define sg_dma_len(sg) ((sg)->dma_length) 30 - #else 31 - #define sg_dma_len(sg) ((sg)->length) 32 - #endif 33 - 34 - #endif /* __ASM_GENERIC_SCATTERLIST_H */
+1 -2
include/linux/blkdev.h
··· 22 22 #include <linux/smp.h> 23 23 #include <linux/rcupdate.h> 24 24 #include <linux/percpu-refcount.h> 25 - 26 - #include <asm/scatterlist.h> 25 + #include <linux/scatterlist.h> 27 26 28 27 struct module; 29 28 struct scsi_ioctl_command;
+1 -1
include/linux/dmapool.h
··· 11 11 #ifndef LINUX_DMAPOOL_H 12 12 #define LINUX_DMAPOOL_H 13 13 14 + #include <linux/scatterlist.h> 14 15 #include <asm/io.h> 15 - #include <asm/scatterlist.h> 16 16 17 17 struct device; 18 18
+32 -7
include/linux/scatterlist.h
··· 2 2 #define _LINUX_SCATTERLIST_H 3 3 4 4 #include <linux/string.h> 5 + #include <linux/types.h> 5 6 #include <linux/bug.h> 6 7 #include <linux/mm.h> 7 - 8 - #include <asm/types.h> 9 - #include <asm/scatterlist.h> 10 8 #include <asm/io.h> 9 + 10 + struct scatterlist { 11 + #ifdef CONFIG_DEBUG_SG 12 + unsigned long sg_magic; 13 + #endif 14 + unsigned long page_link; 15 + unsigned int offset; 16 + unsigned int length; 17 + dma_addr_t dma_address; 18 + #ifdef CONFIG_NEED_SG_DMA_LENGTH 19 + unsigned int dma_length; 20 + #endif 21 + }; 22 + 23 + /* 24 + * These macros should be used after a dma_map_sg call has been done 25 + * to get bus addresses of each of the SG entries and their lengths. 26 + * You should only work with the number of sg entries dma_map_sg 27 + * returns, or alternatively stop on the first sg_dma_len(sg) which 28 + * is 0. 29 + */ 30 + #define sg_dma_address(sg) ((sg)->dma_address) 31 + 32 + #ifdef CONFIG_NEED_SG_DMA_LENGTH 33 + #define sg_dma_len(sg) ((sg)->dma_length) 34 + #else 35 + #define sg_dma_len(sg) ((sg)->length) 36 + #endif 11 37 12 38 struct sg_table { 13 39 struct scatterlist *sgl; /* the list */ ··· 44 18 /* 45 19 * Notes on SG table design. 46 20 * 47 - * Architectures must provide an unsigned long page_link field in the 48 - * scatterlist struct. We use that to place the page pointer AND encode 49 - * information about the sg table as well. The two lower bits are reserved 50 - * for this information. 21 + * We use the unsigned long page_link field in the scatterlist struct to place 22 + * the page pointer AND encode information about the sg table as well. The two 23 + * lower bits are reserved for this information. 51 24 * 52 25 * If bit 0 is set, then the page_link contains a pointer to the next sg 53 26 * table list. Otherwise the next entry is at sg + 1.
+1 -1
lib/swiotlb.c
··· 29 29 #include <linux/ctype.h> 30 30 #include <linux/highmem.h> 31 31 #include <linux/gfp.h> 32 + #include <linux/scatterlist.h> 32 33 33 34 #include <asm/io.h> 34 35 #include <asm/dma.h> 35 - #include <asm/scatterlist.h> 36 36 37 37 #include <linux/init.h> 38 38 #include <linux/bootmem.h>