aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2004-06-03 10:38:59 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-03 10:38:59 -0700
commit59a34b75bdadd3171b1a64aa8a93360c79156096 (patch)
treebebaa3e39a574fe42d8c7fb216b29e3a50556abf /mm
parent73a660203f2d0625e1cec41d3d4caf23ecf3be7e (diff)
downloadhistory-59a34b75bdadd3171b1a64aa8a93360c79156096.tar.gz
[PATCH] sparse: hugetlb sysctl annotation
Diffstat (limited to 'mm')
-rw-r--r--mm/hugetlb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index d676d5ed7cd419..bce0d47a42a277 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -182,7 +182,8 @@ static unsigned long set_max_huge_pages(unsigned long count)
#ifdef CONFIG_SYSCTL
int hugetlb_sysctl_handler(struct ctl_table *table, int write,
- struct file *file, void *buffer, size_t *length)
+ struct file *file, void __user *buffer,
+ size_t *length)
{
proc_doulongvec_minmax(table, write, file, buffer, length);
max_huge_pages = set_max_huge_pages(max_huge_pages);