linux/arch/openrisc/include/asm
Stafford Horne 9cb2feb4d2 arch/openrisc: Fix issues with access_ok()
The commit 594cc251fd ("make 'user_access_begin()' do 'access_ok()'")
exposed incorrect implementations of access_ok() macro in several
architectures.  This change fixes 2 issues found in OpenRISC.

OpenRISC was not properly using parenthesis for arguments and also using
arguments twice.  This patch fixes those 2 issues.

I test booted this patch with v5.0-rc1 on qemu and it's working fine.

Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-01-08 18:22:30 -08:00
..
bitops fls: change parameter to unsigned int 2019-01-04 13:13:46 -08:00
asm-offsets.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
atomic.h atomics/treewide: Rename __atomic_add_unless() => atomic_fetch_add_unless() 2018-06-21 14:22:32 +02:00
bitops.h openrisc: add atomic bitops 2017-02-25 04:12:38 +09:00
cache.h openrisc: Define __ro_after_init to avoid crash 2016-11-06 08:01:12 -08:00
cacheflush.h openrisc: add cacheflush support to fix icache aliasing 2017-11-03 14:01:15 +09:00
cmpxchg.h locking/atomics/openrisc: Don't pull in all of <linux/bitops.h> in <asm/cmpxchg.h> 2018-06-21 12:52:11 +02:00
cpuinfo.h openrisc: initial SMP support 2017-11-03 14:01:13 +09:00
delay.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
elf.h default SET_PERSONALITY() in linux/elf.h 2013-02-26 02:46:08 -05:00
fixmap.h openrisc: explicitly include linux/bug.h in asm/fixmap.h 2017-07-08 04:35:17 +09:00
futex.h Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
io.h openrisc: add ioremap_nocache declaration before include asm-generic/io.h and sync ioremap prototype with it. 2018-02-22 10:44:30 +08:00
irq.h openrisc: Use the new GENERIC_IRQ_MULTI_HANDLER 2018-08-03 12:14:09 +02:00
irqflags.h OpenRISC: IRQ 2011-07-22 18:46:33 +02:00
Kbuild openrisc: use generic dma_noncoherent_ops 2018-07-21 13:49:48 +09:00
linkage.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
mmu_context.h openrisc: initial SMP support 2017-11-03 14:01:13 +09:00
mmu.h
page.h openrisc: drop wrongly typed definition of page_to_virt() 2016-04-22 10:08:34 +01:00
pgalloc.h mm: treewide: remove unused address argument from pte_alloc functions 2019-01-04 13:13:47 -08:00
pgtable.h openrisc: add cacheflush support to fix icache aliasing 2017-11-03 14:01:15 +09:00
processor.h treewide: remove current_text_addr 2018-10-31 08:54:12 -07:00
ptrace.h UAPI: (Scripted) Disintegrate arch/openrisc/include/asm 2012-10-09 09:47:18 +01:00
serial.h openrisc: initial SMP support 2017-11-03 14:01:13 +09:00
smp.h openrisc: initial SMP support 2017-11-03 14:01:13 +09:00
spinlock_types.h openrisc: use qspinlocks and qrwlocks 2017-11-03 14:01:12 +09:00
spinlock.h openrisc: use qspinlocks and qrwlocks 2017-11-03 14:01:12 +09:00
spr_defs.h openrisc: initial SMP support 2017-11-03 14:01:13 +09:00
spr.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
string.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
syscall.h ARCH: AUDIT: implement syscall_get_arch for all arches 2014-09-23 16:20:10 -04:00
syscalls.h openrisc: switch to use of generic fork and clone 2012-11-28 23:43:40 -05:00
thread_info.h Construct init thread stack in the linker script rather than by union 2018-01-09 23:21:02 +00:00
time.h openrisc: add tick timer multi-core sync logic 2017-11-03 14:01:16 +09:00
timex.h OpenRISC: Timekeeping 2011-07-22 18:46:32 +02:00
tlb.h
tlbflush.h openrisc: initial SMP support 2017-11-03 14:01:13 +09:00
uaccess.h arch/openrisc: Fix issues with access_ok() 2019-01-08 18:22:30 -08:00
unaligned.h OpenRISC: Headers 2011-07-22 18:46:39 +02:00
unwinder.h openrisc: support framepointers and STACKTRACE_SUPPORT 2017-11-03 14:01:15 +09:00