diff options
| author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-02-10 17:27:32 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-02-10 17:56:59 -0500 |
| commit | 1db8508cf483dc1ecf66141f90a7c03659d69512 (patch) | |
| tree | a0a50fd483612f750c735cd2d541dbb1114d0ff1 | |
| parent | c36c63c511fa088fcc247a8e888b04f248be8435 (diff) | |
hugetlbfs: fix build failure with !CONFIG_HUGETLBFS
Fix regression due to 5a6fe125950676015f5108fb71b2a67441755003,
"Do not account for the address space used by hugetlbfs using VM_ACCOUNT"
which added an argument to the function hugetlb_file_setup() but not to
the macro hugetlb_file_setup().
Reported-by: Chris Clayton <chris2553@googlemail.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | include/linux/hugetlb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index af09660001c7..03be7f29ca01 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
| @@ -159,9 +159,9 @@ static inline void set_file_hugepages(struct file *file) | |||
| 159 | } | 159 | } |
| 160 | #else /* !CONFIG_HUGETLBFS */ | 160 | #else /* !CONFIG_HUGETLBFS */ |
| 161 | 161 | ||
| 162 | #define is_file_hugepages(file) 0 | 162 | #define is_file_hugepages(file) 0 |
| 163 | #define set_file_hugepages(file) BUG() | 163 | #define set_file_hugepages(file) BUG() |
| 164 | #define hugetlb_file_setup(name,size) ERR_PTR(-ENOSYS) | 164 | #define hugetlb_file_setup(name,size,acctflag) ERR_PTR(-ENOSYS) |
| 165 | 165 | ||
| 166 | #endif /* !CONFIG_HUGETLBFS */ | 166 | #endif /* !CONFIG_HUGETLBFS */ |
| 167 | 167 | ||
