On 9/25/24 14:06, Arnd Bergmann wrote:
From: Arnd Bergmann<a...@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<a...@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.hender...@linaro.org>

r~

Reply via email to