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
..
2016-12-22 10:19:32 -08:00
2016-09-05 12:43:16 +02:00
2016-10-06 10:49:01 -07:00
2016-11-29 17:39:44 +01:00
2017-01-24 12:23:35 -05:00
2016-11-29 15:57:46 +00:00
2016-12-06 17:32:16 +01:00
2016-11-14 16:58:36 +01:00
2017-01-05 15:10:52 +01:00
2016-11-14 17:11:59 +01:00
2015-10-22 00:00:49 +02:00
2015-03-31 15:32:14 +02:00
2015-10-21 18:05:50 -05:00
2015-02-03 18:47:18 +01:00
2016-02-16 08:04:06 -08:00
2017-01-04 15:18:57 +01:00
2016-11-19 09:42:35 -08:00
2016-11-29 15:57:40 +00:00
2016-11-29 15:57:41 +00:00
2016-04-05 15:34:29 +02:00
2016-04-05 15:39:37 +02:00
2014-07-07 12:01:21 +02:00
2013-09-25 11:07:04 +02:00
2016-12-06 17:32:16 +01:00
2016-11-15 12:39:52 +01:00
2016-09-05 12:53:58 +02:00
2016-04-13 11:37:41 +02:00
2015-06-12 11:33:52 +02:00
2016-09-16 09:34:17 +01:00
2016-07-26 16:02:37 +02:00
2013-08-06 11:18:03 -07:00
2016-06-21 13:57:13 +02:00
2016-06-21 13:56:00 +02:00
2016-12-06 17:32:16 +01:00
2016-12-06 17:32:16 +01:00
2016-11-10 12:25:16 +01:00
2016-11-29 15:57:43 +00:00
2016-04-05 17:53:20 +02:00
2016-04-05 17:53:20 +02:00
2015-10-14 14:35:47 +02:00
2015-08-03 16:04:42 +02:00
2016-06-27 14:50:08 +02:00
2016-11-29 17:37:58 +01:00
2015-04-02 13:33:19 +02:00
2015-08-13 17:05:28 +02:00