summaryrefslogtreecommitdiffstats
path: root/include/linux/hugetlb.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-05-26 21:03:50 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-26 21:03:50 +0200
commitbe93d8cfbae1996052e91b2883d306a5d9d0fe18 (patch)
tree1fc0049faffde8f8f6e752f9cc563908482d9537 /include/linux/hugetlb.h
parentMerge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jl... (diff)
downloadlinux-be93d8cfbae1996052e91b2883d306a5d9d0fe18.tar.xz
linux-be93d8cfbae1996052e91b2883d306a5d9d0fe18.zip
Fix build with !HUGETLBFS
I stupidly broke the case of CONFIG_HUGETLBFS=n when doing the conversion to vm_flags_t in commit ca16d140af91 ("mm: don't access vm_flags as 'int'"). And my 'allyesconfig' build didn't find it, for obvious reasons.. Include <linux/mm_types.h> in <linux/hugetlb.h>. The problem could have been avoided by just turning the hugetlb_file_setup() error wrapper into a macro, but mm_types.h is a reasonable include in this file. Reported-by: Richard -rw- Weinberger <richard.weinberger@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--include/linux/hugetlb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
index cf8931e1dd9d..59225ef27d15 100644
--- a/include/linux/hugetlb.h
+++ b/include/linux/hugetlb.h
@@ -1,6 +1,7 @@
#ifndef _LINUX_HUGETLB_H
#define _LINUX_HUGETLB_H
+#include <linux/mm_types.h>
#include <linux/fs.h>
#include <linux/hugetlb_inline.h>