linux_dsm_epyc7002/arch/nios2/include/asm
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
..
asm-macros.h
asm-offsets.h
cache.h
cacheflush.h page cache: use xa_lock 2018-04-11 10:28:39 -07:00
checksum.h ipv4: Update parameters for csum_tcpudp_magic to their original types 2016-03-13 23:55:13 -04:00
cpuinfo.h nios2: Add CDX support 2017-05-08 16:59:19 +08:00
delay.h
elf.h
entry.h
io.h nios2: add ioremap_nocache declaration before include asm-generic/io.h. 2018-03-16 15:45:21 +08:00
irq.h
irqflags.h
Kbuild nios2: use generic dma_noncoherent_ops 2018-07-25 13:33:09 +02:00
kgdb.h nios2: add kgdb support 2015-02-16 19:26:43 +08:00
linkage.h
mmu_context.h sched/headers: Prepare to remove the <linux/mm_types.h> dependency from <linux/sched.h> 2017-03-02 08:42:37 +01:00
mmu.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 arch, mm: convert all architectures to use 5level-fixup.h 2017-03-09 11:48:47 -08:00
processor.h treewide: remove current_text_addr 2018-10-31 08:54:12 -07:00
ptrace.h nios2: update pt_regs 2015-03-12 13:35:06 +08:00
registers.h
setup.h nios2: remove custom early console implementation 2017-05-11 17:44:21 +08:00
shmparam.h nios2: rework cache 2015-04-24 14:49:53 +08:00
string.h
switch_to.h
syscall.h
syscalls.h
thread_info.h Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
timex.h
tlb.h
tlbflush.h
traps.h
uaccess.h Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00