CONFIG_FINEGRAINED_THP is presented in a header file
(asm-generic/mman-common.h) of uapi. It generates a build
error for headers with leak CONFIG to user-space message.
This patch remove a possible leak of the kernel configuration.
Change-Id: I16173eaf5094cc07312f10fb33a22dd73d67ff88
Fixes:
7d5372737d34 ("mm: THP: introducing a fine-grained transparent hugepage technique for ARM64 architecture")
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
#define MAP_SYNC 0x080000 /* perform synchronous page faults for the mapping */
#define MAP_FIXED_NOREPLACE 0x100000 /* MAP_FIXED which doesn't unmap underlying mapping */
-#ifdef CONFIG_FINEGRAINED_THP
#define MAP_FILE_THP 0x200000 /* MAP_FIXED which doesn't unmap underlying mapping */
-#endif
#define MAP_UNINITIALIZED 0x4000000 /* For anonymous mmap, memory could be
* uninitialized */