diff options
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r-- | include/linux/hugetlb.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 06e691baab86..0c80d3f57a5b 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -187,7 +187,8 @@ extern const struct file_operations hugetlbfs_file_operations; | |||
187 | extern const struct vm_operations_struct hugetlb_vm_ops; | 187 | extern const struct vm_operations_struct hugetlb_vm_ops; |
188 | struct file *hugetlb_file_setup(const char *name, unsigned long addr, | 188 | struct file *hugetlb_file_setup(const char *name, unsigned long addr, |
189 | size_t size, vm_flags_t acct, | 189 | size_t size, vm_flags_t acct, |
190 | struct user_struct **user, int creat_flags); | 190 | struct user_struct **user, int creat_flags, |
191 | int page_size_log); | ||
191 | 192 | ||
192 | static inline int is_file_hugepages(struct file *file) | 193 | static inline int is_file_hugepages(struct file *file) |
193 | { | 194 | { |
@@ -199,12 +200,14 @@ static inline int is_file_hugepages(struct file *file) | |||
199 | return 0; | 200 | return 0; |
200 | } | 201 | } |
201 | 202 | ||
203 | |||
202 | #else /* !CONFIG_HUGETLBFS */ | 204 | #else /* !CONFIG_HUGETLBFS */ |
203 | 205 | ||
204 | #define is_file_hugepages(file) 0 | 206 | #define is_file_hugepages(file) 0 |
205 | static inline struct file * | 207 | static inline struct file * |
206 | hugetlb_file_setup(const char *name, unsigned long addr, size_t size, | 208 | hugetlb_file_setup(const char *name, unsigned long addr, size_t size, |
207 | vm_flags_t acctflag, struct user_struct **user, int creat_flags) | 209 | vm_flags_t acctflag, struct user_struct **user, int creat_flags, |
210 | int page_size_log) | ||
208 | { | 211 | { |
209 | return ERR_PTR(-ENOSYS); | 212 | return ERR_PTR(-ENOSYS); |
210 | } | 213 | } |