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 microblaze: Add custom break vector handler for mb manager 2022-09-26 14:13:28 +02:00
dma.c
entry.S microblaze: Add support for error injection 2022-09-26 14:13:29 +02:00
exceptions.c
ftrace.c
head.S
hw_exception_handler.S
irq.c
kgdb.c microblaze: fix typos in comments 2022-05-02 08:36:10 +02:00
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 arch/idle: Change arch_cpu_idle() behavior: always exit with IRQs disabled 2023-01-13 11:48:15 +01:00
prom.c of/flattree: Replace all non-returning strlcpy with strscpy 2023-06-14 12:04:06 -07:00
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 pwm: Add support for Xilinx AXI Timer 2022-04-22 18:30:44 +02:00
traps.c arch: include linux/cpu.h for trap_init() prototype 2023-11-23 11:32:31 +01:00
unwind.c
vmlinux.lds.S objtool/idle: Validate __cpuidle code as noinstr 2023-01-13 11:48:15 +01:00