linux/arch/powerpc/platforms/cell
Linus Torvalds 96d4f267e4 Remove 'type' argument from access_ok() function
Nobody has actually used the type (VERIFY_READ vs VERIFY_WRITE) argument
of the user address range verification function since we got rid of the
old racy i386-only code to walk page tables by hand.

It existed because the original 80386 would not honor the write protect
bit when in kernel mode, so you had to do COW by hand before doing any
user access.  But we haven't supported that in a long time, and these
days the 'type' argument is a purely historical artifact.

A discussion about extending 'user_access_begin()' to do the range
checking resulted this patch, because there is no way we're going to
move the old VERIFY_xyz interface to that model.  And it's best done at
the end of the merge window when I've done most of my merges, so let's
just get this done once and for all.

This patch was mostly done with a sed-script, with manual fix-ups for
the cases that weren't of the trivial 'access_ok(VERIFY_xyz' form.

There were a couple of notable cases:

 - csky still had the old "verify_area()" name as an alias.

 - the iter_iov code had magical hardcoded knowledge of the actual
   values of VERIFY_{READ,WRITE} (not that they mattered, since nothing
   really used it)

 - microblaze used the type argument for a debug printout

but other than those oddities this should be a total no-op patch.

I tried to fix up all architectures, did fairly extensive grepping for
access_ok() uses, and the changes are trivial, but I may have missed
something.  Any missed conversion should be trivially fixable, though.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-01-03 18:57:57 -08:00
..
spufs Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
Kconfig PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
Makefile powerpc/Makefiles: Convert ifeq to ifdef where possible 2018-08-08 00:32:36 +10:00
axon_msi.c powerpc: Use sizeof(*foo) rather than sizeof(struct foo) 2018-03-20 16:47:53 +11:00
cbe_powerbutton.c powerpc: Fix up modules that should be including module.h 2011-10-31 19:30:38 -04:00
cbe_regs.c powerpc: Use device_type helpers to access the node type 2018-11-26 22:33:37 +11:00
cbe_thermal.c powerpc: clean the inclusion of stringify.h 2018-07-30 22:48:17 +10:00
cell.h powerpc/cell: Move controller ops from ppc_md to controller_ops 2015-04-11 20:49:17 +10:00
cpufreq_spudemand.c sched: loadavg: consolidate LOAD_INT, LOAD_FRAC, CALC_LOAD 2018-10-26 16:26:32 -07:00
interrupt.c powerpc: Use of for_each_node_by_name() instead of open-coding it 2017-12-04 13:10:59 +11:00
interrupt.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
iommu.c powerpc/iommu: remove the mapping_error dma_map_ops method 2018-12-06 06:56:38 -08:00
pervasive.c powerpc/cbe: Do not process external or decremeter interrupts from sreset 2017-04-28 21:02:25 +10:00
pervasive.h
pmu.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
ras.c powerpc: Convert to using %pOF instead of full_name 2017-08-23 22:27:04 +10:00
ras.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
setup.c powerpc: Use of_node_name_eq for node name comparisons 2018-12-22 21:29:50 +11:00
smp.c powerpc/64: Use array of paca pointers and allocate pacas individually 2018-03-30 23:34:23 +11:00
spider-pci.c powerpc: Use sizeof(*foo) rather than sizeof(struct foo) 2018-03-20 16:47:53 +11:00
spider-pic.c powerpc: Use of for_each_node_by_name() instead of open-coding it 2017-12-04 13:10:59 +11:00
spu_base.c signal/powerpc: Use force_sig_fault where appropriate 2018-09-21 15:53:56 +02:00
spu_callbacks.c powerpc: generate uapi header and system call table files 2018-12-21 14:46:50 +11:00
spu_manage.c powerpc: Use of_node_name_eq for node name comparisons 2018-12-22 21:29:50 +11:00
spu_notify.c powerpc: fix implicit notifier use in converting to export.h 2011-10-31 19:30:41 -04:00
spu_priv1_mmio.c powerpc: remove non-required uses of include <linux/module.h> 2011-10-31 19:30:44 -04:00
spu_priv1_mmio.h
spu_syscalls.c powerpc/syscalls: Switch trivial cases to SYSCALL_DEFINE 2018-05-10 23:25:12 +10:00