]> git.itanic.dy.fi Git - linux-stable/commit
parisc: Align parisc MADV_XXX constants with all other architectures
authorHelge Deller <deller@gmx.de>
Sun, 11 Dec 2022 18:50:20 +0000 (19:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Jan 2023 09:33:40 +0000 (10:33 +0100)
commit763b92568726b55569ea4896fe36e3c174cc3b0d
treef4b069d1801d726ee280b76d75d3204bfaa35b29
parent90ca7a874a9093e500cc6147cecd85ad2e6a2852
parisc: Align parisc MADV_XXX constants with all other architectures

commit 71bdea6f798b425bc0003780b13e3fdecb16a010 upstream.

Adjust some MADV_XXX constants to be in sync what their values are on
all other platforms. There is currently no reason to have an own
numbering on parisc, but it requires workarounds in many userspace
sources (e.g. glibc, qemu, ...) - which are often forgotten and thus
introduce bugs and different behaviour on parisc.

A wrapper avoids an ABI breakage for existing userspace applications by
translating any old values to the new ones, so this change allows us to
move over all programs to the new ABI over time.

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/uapi/asm/mman.h
arch/parisc/kernel/sys_parisc.c
arch/parisc/kernel/syscalls/syscall.tbl
tools/arch/parisc/include/uapi/asm/mman.h
tools/perf/bench/bench.h