1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2*4882a593Smuzhiyun #ifndef __ASM_GENERIC_MMAN_COMMON_TOOLS_ONLY_H 3*4882a593Smuzhiyun #define __ASM_GENERIC_MMAN_COMMON_TOOLS_ONLY_H 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun #include <asm-generic/mman-common.h> 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun /* We need this because we need to have tools/include/uapi/ included in the tools 8*4882a593Smuzhiyun * header search path to get access to stuff that is not yet in the system's 9*4882a593Smuzhiyun * copy of the files in that directory, but since this cset: 10*4882a593Smuzhiyun * 11*4882a593Smuzhiyun * 746c9398f5ac ("arch: move common mmap flags to linux/mman.h") 12*4882a593Smuzhiyun * 13*4882a593Smuzhiyun * We end up making sys/mman.h, that is in the system headers, to not find the 14*4882a593Smuzhiyun * MAP_SHARED and MAP_PRIVATE defines because they are not anymore in our copy 15*4882a593Smuzhiyun * of asm-generic/mman-common.h. So we define them here and include this header 16*4882a593Smuzhiyun * from each of the per arch mman.h headers. 17*4882a593Smuzhiyun */ 18*4882a593Smuzhiyun #ifndef MAP_SHARED 19*4882a593Smuzhiyun #define MAP_SHARED 0x01 /* Share changes */ 20*4882a593Smuzhiyun #define MAP_PRIVATE 0x02 /* Changes are private */ 21*4882a593Smuzhiyun #define MAP_SHARED_VALIDATE 0x03 /* share + validate extension flags */ 22*4882a593Smuzhiyun #endif 23*4882a593Smuzhiyun #endif // __ASM_GENERIC_MMAN_COMMON_TOOLS_ONLY_H 24