Re: [PATCH 4/5] asm-generic: use asm-generic/mman-common.h on parisc and alpha

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/25/24 14:06, Arnd Bergmann wrote:
From: Arnd Bergmann<arnd@xxxxxxxx>

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@xxxxxxxx>
---
  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@xxxxxxxxxx>

r~




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux