Skip to content

Commit 685626d

Browse files
committed
tools include uapi: Update linux/mmap.h copy
To pick up the changes from: 20916d4 ("mm/hugetlb: add mmap() encodings for 32MB and 512MB page sizes") That do not entail changes in in tools, this just shows that we have to consider bits [26:31] of flags to beautify that in tools like 'perf trace' This silences this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/mman.h' differs from latest version at 'include/uapi/linux/mman.h' diff -u tools/include/uapi/linux/mman.h include/uapi/linux/mman.h Cc: Anshuman Khandual <anshuman.khandual@arm.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-3rvc39lon93kgt5pl31d8g4x@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 2f967f1 commit 685626d

File tree

1 file changed

+2
-0
lines changed
  • tools/include/uapi/linux

1 file changed

+2
-0
lines changed

tools/include/uapi/linux/mman.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
#define MAP_HUGE_2MB HUGETLB_FLAG_ENCODE_2MB
2929
#define MAP_HUGE_8MB HUGETLB_FLAG_ENCODE_8MB
3030
#define MAP_HUGE_16MB HUGETLB_FLAG_ENCODE_16MB
31+
#define MAP_HUGE_32MB HUGETLB_FLAG_ENCODE_32MB
3132
#define MAP_HUGE_256MB HUGETLB_FLAG_ENCODE_256MB
33+
#define MAP_HUGE_512MB HUGETLB_FLAG_ENCODE_512MB
3234
#define MAP_HUGE_1GB HUGETLB_FLAG_ENCODE_1GB
3335
#define MAP_HUGE_2GB HUGETLB_FLAG_ENCODE_2GB
3436
#define MAP_HUGE_16GB HUGETLB_FLAG_ENCODE_16GB

0 commit comments

Comments
 (0)