]> git.baikalelectronics.ru Git - kernel.git/commit
Fix build with !HUGETLBFS
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 26 May 2011 19:03:50 +0000 (12:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 26 May 2011 19:03:50 +0000 (12:03 -0700)
commit0fcb0e474c849bef23bca0711be8c5298841c67c
tree1fc0049faffde8f8f6e752f9cc563908482d9537
parent4ffe66069b56d30b7c4c8d698c4848e65874bdce
Fix build with !HUGETLBFS

I stupidly broke the case of CONFIG_HUGETLBFS=n when doing the
conversion to vm_flags_t in commit 2333788c91df ("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>
include/linux/hugetlb.h