Re: error in hugetlbpage.c

From: venom@sns.it
Date: Fri Nov 29 2002 - 11:41:40 EST


SInce pine broke new lines I am reposting this.

 --- linux-2.5.50/arch/i386/mm/hugetlbpage.orig 2002-11-29 12:27:33.000000000 +0100
 +++ linux-2.5.50/arch/i386/mm/hugetlbpage.c 2002-11-29 12:26:34.000000000 +0100
 @@ -607,7 +607,7 @@
         return (int) htlbzone_pages;
  }

 -int hugetlb_sysctl_handler(ctl_table *table, int write, struct file *file, void *buffer, size_t *length)
 +int hugetlb_sysctl_handler(struct ctl_table *table, int write, struct file *file, void *buffer, size_t *length)
  {
         proc_dointvec(table, write, file, buffer, length);
         htlbpage_max = set_hugetlb_mem_size(htlbpage_max);

 this is needed to avoid a compile error.

 arch/i386/mm/hugetlbpage.c:610: parse error before '*' token
 arch/i386/mm/hugetlbpage.c: In function `hugetlb_sysctl_handler':
 arch/i386/mm/hugetlbpage.c:611: number of arguments doesn't match prototype
 include/linux/hugetlb.h:14: prototype declaration
 arch/i386/mm/hugetlbpage.c:612: warning: implicit declaration of function `proc_dointvec'
 arch/i386/mm/hugetlbpage.c:612: `table' undeclared (first use in this function)
 arch/i386/mm/hugetlbpage.c:612: (Each undeclared identifier is reported only once
 arch/i386/mm/hugetlbpage.c:612: for each function it appears in.)
 arch/i386/mm/hugetlbpage.c:612: `write' undeclared (first use in this function)
 arch/i386/mm/hugetlbpage.c:612: `file' undeclared (first use in this function)
 arch/i386/mm/hugetlbpage.c:612: `buffer' undeclared (first use in this function)
 arch/i386/mm/hugetlbpage.c:612: `length' undeclared (first use in this function)
 make[1]: *** [arch/i386/mm/hugetlbpage.o] Error 1
 make: *** [arch/i386/mm] Error 2

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 30 2002 - 22:00:22 EST