linux/arch/openrisc/include/asm
Stafford Horne e8236726c6 arch/openrisc: Fix issues with access_ok()
commit 9cb2feb4d2 upstream.

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>
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-22 09:04:59 +02:00
..
bitops
asm-offsets.h
atomic.h
bitops.h
cache.h
cacheflush.h
cmpxchg.h
cpuinfo.h
delay.h
elf.h
fixmap.h
futex.h
io.h
irq.h
irqflags.h
Kbuild
linkage.h
mmu_context.h
mmu.h
page.h
pgalloc.h
pgtable.h
processor.h
ptrace.h
serial.h
smp.h
spinlock_types.h
spinlock.h
spr_defs.h
spr.h
string.h
syscall.h
syscalls.h
thread_info.h
time.h
timex.h
tlb.h
tlbflush.h
uaccess.h
unaligned.h
unwinder.h