diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2019-02-08 01:02:55 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-02-18 17:49:30 +0100 |
commit | 746c9398f5ac2b3f5730da4ed09e99ef4bb50b4a (patch) | |
tree | e24ae55f3269f22672b041ad1f83a5b2320305ba /arch/xtensa | |
parent | 852661a8691fd1f974b61eaa317d2620198f7c76 (diff) |
arch: move common mmap flags to linux/mman.h
Now that we have 3 mmap flags shared by all architectures,
let's move them into the common header.
This will help discourage future architectures from duplicating code.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/include/uapi/asm/mman.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/xtensa/include/uapi/asm/mman.h b/arch/xtensa/include/uapi/asm/mman.h index 58f29a9d895d..be726062412b 100644 --- a/arch/xtensa/include/uapi/asm/mman.h +++ b/arch/xtensa/include/uapi/asm/mman.h @@ -34,9 +34,7 @@ /* * Flags for mmap */ -#define MAP_SHARED 0x001 /* Share changes */ -#define MAP_PRIVATE 0x002 /* Changes are private */ -#define MAP_SHARED_VALIDATE 0x003 /* share + validate extension flags */ +/* 0x01 - 0x03 are defined in linux/mman.h */ #define MAP_TYPE 0x00f /* Mask for type of mapping */ #define MAP_FIXED 0x010 /* Interpret addr exactly */ |