Commit be93d8cfbae1996052e91b2883d306a5d9d0fe18

Authored by Linus Torvalds
1 parent a74b81b0af

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

include/linux/hugetlb.h
1 1 #ifndef _LINUX_HUGETLB_H
2 2 #define _LINUX_HUGETLB_H
3 3  
  4 +#include <linux/mm_types.h>
4 5 #include <linux/fs.h>
5 6 #include <linux/hugetlb_inline.h>
6 7