]> Git Repo - linux.git/commitdiff
Fix build with !HUGETLBFS
authorLinus Torvalds <[email protected]>
Thu, 26 May 2011 19:03:50 +0000 (12:03 -0700)
committerLinus Torvalds <[email protected]>
Thu, 26 May 2011 19:03:50 +0000 (12:03 -0700)
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/hugetlb.h

index cf8931e1dd9df64437960a1ded04ef2ecc224614..59225ef27d15062813e4799ad95e6df2f57241be 100644 (file)
@@ -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>
 
This page took 0.047111 seconds and 4 git commands to generate.