mm/hugetlb.c: fix build failure with !CONFIG_SYSCTL

on !CONFIG_SYSCTL on x86 with latest -git i get:

mm/hugetlb.c: In function 'decrement_hugepage_resv_vma':
mm/hugetlb.c:83: error: 'reserve' undeclared (first use in this function)
mm/hugetlb.c:83: error: (Each undeclared identifier is reported only once
mm/hugetlb.c:83: error: for each function it appears in.)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Ingo Molnar and committed by
Linus Torvalds
e44d1b29 5047887c

+11 -11
+11 -11
mm/hugetlb.c
··· 1026 1026 } 1027 1027 } 1028 1028 1029 + static unsigned int cpuset_mems_nr(unsigned int *array) 1030 + { 1031 + int node; 1032 + unsigned int nr = 0; 1033 + 1034 + for_each_node_mask(node, cpuset_current_mems_allowed) 1035 + nr += array[node]; 1036 + 1037 + return nr; 1038 + } 1039 + 1029 1040 #ifdef CONFIG_SYSCTL 1030 1041 #ifdef CONFIG_HIGHMEM 1031 1042 static void try_to_free_low(struct hstate *h, unsigned long count) ··· 1385 1374 return 1; 1386 1375 } 1387 1376 __setup("default_hugepagesz=", hugetlb_default_setup); 1388 - 1389 - static unsigned int cpuset_mems_nr(unsigned int *array) 1390 - { 1391 - int node; 1392 - unsigned int nr = 0; 1393 - 1394 - for_each_node_mask(node, cpuset_current_mems_allowed) 1395 - nr += array[node]; 1396 - 1397 - return nr; 1398 - } 1399 1377 1400 1378 int hugetlb_sysctl_handler(struct ctl_table *table, int write, 1401 1379 struct file *file, void __user *buffer,