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