Skip to contentSkip to conversation

tile: Add missing definition of MAP_LOCKONFAULT

PATCH New Guenter Roeck 1 participant 1 message Jul 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tile: Add missing definition of MAP_LOCKONFAULT

Commit c5827483ad6b ("mm: mmap: add mmap flag to request VM_LOCKONFAULT") defines and uses MAP_LOCKONFAULT, but does not to add the definition for the tile architecture. This results in the following build error.

include/linux/mman.h: In function 'calc_vm_flag_bits':
include/linux/mman.h:90:9: error: 'MAP_LOCKONFAULT' undeclared

Fixes c5827483ad6b ("mm: mmap: add mmap flag to request VM_LOCKONFAULT")
Cc Eric B Munson <[email protected]>
Cc Andrew Morton <[email protected]>
---
 arch/tile/include/uapi/asm/mman.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/tile/include/uapi/asm/mman.h +1 -1
index acdd013a8ad6..b4f806f46553 100644
@@ -29,7 +29,7 @@
 #define MAP_DENYWRITE	0x0800		/* ETXTBSY */
 #define MAP_EXECUTABLE	0x1000		/* mark it as an executable */
 #define MAP_HUGETLB	0x4000		/* create a huge page mapping */
-
+#define MAP_LOCKONFAULT	0x100000	/* Lock pages after they are faulted in, do not prefault */
 
 /*
  * Flags for mlockall
Signature · 1 line
2.1.0