OpenCloudOS-Kernel/arch/nios2/include/asm
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
..
Kbuild Merge branch 'strscpy' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2015-10-04 16:31:13 +01:00
asm-macros.h
asm-offsets.h
cache.h
cacheflush.h
checksum.h ipv4: Update parameters for csum_tcpudp_magic to their original types 2016-03-13 23:55:13 -04:00
cmpxchg.h nios2: Switch to generic __xchg() 2015-11-09 10:33:30 +08:00
cpuinfo.h nios2: use of_property_read_bool 2016-10-06 18:19:16 +08:00
delay.h nios2: Time keeping 2014-12-08 12:56:01 +08:00
dma-mapping.h treewide: Constify most dma_map_ops structures 2017-01-24 12:23:35 -05:00
elf.h nios2: ELF definitions 2014-12-08 12:55:58 +08:00
entry.h
io.h nios2: use correct void* return type for page_to_virt() 2016-04-22 10:08:26 +01:00
irq.h nios2: Interrupt handling 2014-12-08 12:55:55 +08:00
irqflags.h nios2: Interrupt handling 2014-12-08 12:55:55 +08:00
kgdb.h nios2: add kgdb support 2015-02-16 19:26:43 +08:00
linkage.h nios2: Miscellaneous header files 2014-12-08 12:56:03 +08:00
mmu.h
mmu_context.h
page.h nios2: Convert pfn_valid to static inline 2016-12-13 17:13:17 +08:00
pgalloc.h nios2: get rid of superfluous __GFP_REPEAT 2016-06-24 17:23:52 -07:00
pgtable-bits.h nios2: drop _PAGE_FILE and pte_file()-related helpers 2015-02-10 14:30:32 -08:00
pgtable.h nios2: use correct void* return type for page_to_virt() 2016-04-22 10:08:26 +01:00
processor.h locking/core: Provide common cpu_relax_yield() definition 2016-11-17 08:17:36 +01:00
prom.h nios2: add early printk support 2015-02-10 23:21:08 +08:00
ptrace.h nios2: update pt_regs 2015-03-12 13:35:06 +08:00
registers.h nios2: Nios2 registers 2014-12-08 12:56:03 +08:00
setup.h
shmparam.h nios2: rework cache 2015-04-24 14:49:53 +08:00
signal.h nios2: Signal handling support 2014-12-08 12:55:59 +08:00
string.h nios2: Library functions 2014-12-08 12:56:00 +08:00
switch_to.h
syscall.h nios2: System calls handling 2014-12-08 12:55:58 +08:00
syscalls.h nios2: System calls handling 2014-12-08 12:55:58 +08:00
thread_info.h Merge branch 'exec_domain_rip_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/misc 2015-04-15 13:53:55 -07:00
timex.h nios2: Time keeping 2014-12-08 12:56:01 +08:00
tlb.h
tlbflush.h
traps.h
uaccess.h nios2: fix __get_user() 2016-09-13 17:49:43 -04:00