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