alistair23-linux/drivers/pci/host
Bart Van Assche 5299709d0a treewide: Constify most dma_map_ops structures
Most dma_map_ops structures are never modified. Constify these
structures such that these can be write-protected. This patch
has been generated as follows:

git grep -l 'struct dma_map_ops' |
  xargs -d\\n sed -i \
    -e 's/struct dma_map_ops/const struct dma_map_ops/g' \
    -e 's/const struct dma_map_ops {/struct dma_map_ops {/g' \
    -e 's/^const struct dma_map_ops;$/struct dma_map_ops;/' \
    -e 's/const const struct dma_map_ops /const struct dma_map_ops /g';
sed -i -e 's/const \(struct dma_map_ops intel_dma_ops\)/\1/' \
  $(git grep -l 'struct dma_map_ops intel_dma_ops');
sed -i -e 's/const \(struct dma_map_ops dma_iommu_ops\)/\1/' \
  $(git grep -l 'struct dma_map_ops' | grep ^arch/powerpc);
sed -i -e '/^struct vmd_dev {$/,/^};$/ s/const \(struct dma_map_ops[[:blank:]]dma_ops;\)/\1/' \
       -e '/^static void vmd_setup_dma_ops/,/^}$/ s/const \(struct dma_map_ops \*dest\)/\1/' \
       -e 's/const \(struct dma_map_ops \*dest = \&vmd->dma_ops\)/\1/' \
    drivers/pci/host/*.c
sed -i -e '/^void __init pci_iommu_alloc(void)$/,/^}$/ s/dma_ops->/intel_dma_ops./' arch/ia64/kernel/pci-dma.c
sed -i -e 's/static const struct dma_map_ops sn_dma_ops/static struct dma_map_ops sn_dma_ops/' arch/ia64/sn/pci/pci_dma.c
sed -i -e 's/(const struct dma_map_ops \*)//' drivers/misc/mic/bus/vop_bus.c

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: linux-arch@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Russell King <linux@armlinux.org.uk>
Cc: x86@kernel.org
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-01-24 12:23:35 -05:00
..
Kconfig Merge branch 'pci/host-vmd' into next 2016-12-12 11:25:13 -06:00
Makefile PCI: Explain ARM64 ACPI/MCFG quirk Kconfig and build strategy 2016-12-07 14:34:58 -06:00
pci-aardvark.c PCI: aardvark: Remove unused platform data 2016-10-11 19:44:04 -05:00
pci-dra7xx.c PCI: dra7xx: Reorder struct dra7xx_pcie 2016-10-12 00:05:54 -05:00
pci-exynos.c PCI: exynos: Reorder struct exynos_pcie 2016-10-11 21:30:52 -05:00
pci-host-common.c Merge branch 'pci/enumeration' into next 2016-10-03 09:43:19 -05:00
pci-host-generic.c
pci-hyperv.c PCI: hv: Allocate physically contiguous hypercall params buffer 2016-11-29 17:22:43 -06:00
pci-imx6.c PCI: imx6: Remove unused return values 2016-10-11 22:26:28 -05:00
pci-keystone-dw.c PCI: keystone: Add app register accessors 2016-10-11 22:58:34 -05:00
pci-keystone.c PCI: keystone: Pass keystone_pcie, not address, to IRQ functions 2016-10-11 22:56:46 -05:00
pci-keystone.h PCI: keystone: Reorder struct keystone_pcie 2016-10-11 22:58:43 -05:00
pci-layerscape.c Merge branch 'pci/host-rockchip' into next 2016-12-12 11:25:11 -06:00
pci-mvebu.c PCI: mvebu: Use existing of_node pointer 2016-10-11 23:19:05 -05:00
pci-rcar-gen2.c PCI: rcar-gen2: Use gen2 fallback compatibility last 2016-12-07 16:56:02 -06:00
pci-tegra.c PCI: tegra: Add Tegra210 support 2016-12-07 12:06:42 -06:00
pci-thunder-ecam.c PCI: Add MCFG quirks for Cavium ThunderX pass1.x host controller 2016-12-06 13:45:50 -06:00
pci-thunder-pem.c PCI: Add MCFG quirks for Cavium ThunderX pass2.x host controller 2016-12-06 13:45:49 -06:00
pci-versatile.c
pci-xgene-msi.c PCI/xgene-msi: Convert to hotplug state machine 2016-11-22 23:34:40 +01:00
pci-xgene.c PCI: Add MCFG quirks for X-Gene host controller 2016-12-06 13:45:50 -06:00
pcie-altera-msi.c Merge branches 'pci/host-aardvark', 'pci/host-altera', 'pci/host-artpec', 'pci/host-designware', 'pci/host-hv', 'pci/host-keystone', 'pci/host-rcar', 'pci/host-rockchip', 'pci/host-tegra' and 'pci/host-xilinx' into next 2016-10-05 13:59:14 -05:00
pcie-altera.c PCI: altera: Remove redundant error message in altera_pcie_parse_dt() 2016-11-11 15:20:03 -06:00
pcie-armada8k.c PCI: armada: Reorder struct armada8k_pcie 2016-10-11 20:33:01 -05:00
pcie-artpec6.c PCI: artpec6: Add resource name comments 2016-10-11 20:49:40 -05:00
pcie-designware-plat.c PCI: designware-plat: Update author email 2016-11-16 16:16:40 -06:00
pcie-designware.c PCI: designware: Check for iATU unroll support after initializing host 2016-11-04 15:28:55 -05:00
pcie-designware.h PCI: designware: Export dw_pcie_readl_rc(), dw_pcie_writel_rc() 2016-10-11 08:31:52 -05:00
pcie-hisi.c Merge branch 'pci/host-hisi' into next 2016-12-12 11:25:07 -06:00
pcie-iproc-bcma.c PCI: iproc: Add BCMA type 2016-11-14 15:55:33 -06:00
pcie-iproc-msi.c PCI: iproc: Add BCMA type 2016-11-14 15:55:33 -06:00
pcie-iproc-platform.c PCI: iproc: Skip check for legacy IRQ on PAXC buses 2016-12-08 12:24:20 -06:00
pcie-iproc.c PCI: iproc: Skip check for legacy IRQ on PAXC buses 2016-12-08 12:24:20 -06:00
pcie-iproc.h PCI: iproc: Add support for the next-gen PAXB controller 2016-11-23 16:51:14 -06:00
pcie-qcom.c Merge branch 'pci/host-rockchip' into next 2016-12-12 11:25:11 -06:00
pcie-rcar.c PCI: rcar: Add gen3 fallback compatibility string for pcie-rcar 2016-12-07 16:56:56 -06:00
pcie-rockchip.c Merge branch 'pci/host-rockchip' into next 2016-12-12 11:25:11 -06:00
pcie-spear13xx.c PCI: spear: Use builtin_platform_driver() to simplify the code 2016-12-07 14:32:30 -06:00
pcie-xilinx-nwl.c PCI: xilinx-nwl: Remove unused platform data 2016-10-12 00:00:51 -05:00
pcie-xilinx.c PCI: xilinx: Removed unused xilinx_pcie_assign_msi() argument 2016-10-12 00:00:00 -05:00
vmd.c treewide: Constify most dma_map_ops structures 2017-01-24 12:23:35 -05:00