1
linux/arch/microblaze/kernel
Arnd Bergmann 295f10061a syscalls: mmap(): use unsigned offset type consistently
Most architectures that implement the old-style mmap() with byte offset
use 'unsigned long' as the type for that offset, but microblaze and
riscv have the off_t type that is shared with userspace, matching the
prototype in include/asm-generic/syscalls.h.

Make this consistent by using an unsigned argument everywhere. This
changes the behavior slightly, as the argument is shifted to a page
number, and an user input with the top bit set would result in a
negative page offset rather than a large one as we use elsewhere.

For riscv, the 32-bit sys_mmap2() definition actually used a custom
type that is different from the global declaration, but this was
missed due to an incorrect type check.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2024-06-25 15:57:38 +02:00
..
cpu microblaze: Remove early printk call from cpuinfo-static.c 2024-04-24 10:27:31 +02:00
syscalls mseal: wire up mseal syscall 2024-05-23 19:40:26 -07:00
.gitignore
asm-offsets.c
dma.c
entry.S
exceptions.c
ftrace.c
head.S
hw_exception_handler.S
irq.c
kgdb.c
Makefile microblaze: Remove gcc flag for non existing early_printk.c file 2024-04-24 10:27:31 +02:00
mcount.S
microblaze_ksyms.c
misc.S
module.c
process.c
prom.c
ptrace.c
reset.c microblaze: Explicitly include correct DT includes 2023-07-17 08:22:42 +02:00
setup.c
signal.c microblaze: allow pte_offset_map() to fail 2023-06-19 16:19:06 -07:00
stacktrace.c
sys_microblaze.c syscalls: mmap(): use unsigned offset type consistently 2024-06-25 15:57:38 +02:00
syscall_table.S
timer.c
traps.c arch: include linux/cpu.h for trap_init() prototype 2023-11-23 11:32:31 +01:00
unwind.c
vmlinux.lds.S