[PATCH 4/5] asm-generic: use asm-generic/mman-common.h on parisc and alpha
Richard Henderson
richard.henderson at linaro.org
Sun Oct 6 04:15:06 AEDT 2024
On 9/25/24 14:06, Arnd Bergmann wrote:
> From: Arnd Bergmann<arnd at arndb.de>
>
> These two architectures each have their own set of MAP_* flags, like
> powerpc, mips and others do. In addition, the msync() flags are also
> different, here both define the same flags but in a different order.
> Finally, alpha also has a custom MADV_DONTNEED flag for madvise.
>
> Make the generic MADV_DONTNEED and MS_* definitions conditional on
> them already being defined and then include the common header
> header from both architectures, to remove the bulk of the contents.
>
> Signed-off-by: Arnd Bergmann<arnd at arndb.de>
> ---
> arch/alpha/include/uapi/asm/mman.h | 68 +++-----------------------
> arch/parisc/include/uapi/asm/mman.h | 66 +------------------------
> include/uapi/asm-generic/mman-common.h | 5 ++
> 3 files changed, 13 insertions(+), 126 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson at linaro.org>
r~
More information about the Linuxppc-dev
mailing list