public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.5.50 : arch/i386/mm/hugetblpage.c error
@ 2002-11-27 23:27 Frank Davis
  2002-11-27 23:44 ` [PATCH] " Martin Dahl
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Davis @ 2002-11-27 23:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: fdavis

Hello all,
  While 'make bzImage', I received the following error.

Regards,
Frank

arch/i386/mm/hugetlbpage.c:610: parse error before `*'
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Re: 2.5.50 : arch/i386/mm/hugetblpage.c error
  2002-11-27 23:27 2.5.50 : arch/i386/mm/hugetblpage.c error Frank Davis
@ 2002-11-27 23:44 ` Martin Dahl
  2002-11-27 23:49   ` Frank Davis
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Dahl @ 2002-11-27 23:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: Frank Davis

> Hello all,
>   While 'make bzImage', I received the following error.
> 
> Regards,
> Frank
> 
> arch/i386/mm/hugetlbpage.c:610: parse error before `*'
> 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
> 
Looks like there's a missing include, the following patch should fix it

--- arch/i386/mm/hugetlbpage.c.orig     2002-11-27 23:37:47.000000000 +0000
+++ arch/i386/mm/hugetlbpage.c  2002-11-27 23:36:20.000000000 +0000
@@ -14,6 +14,7 @@
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/err.h>
+#include <linux/sysctl.h>
 #include <asm/mman.h>
 #include <asm/pgalloc.h>
 #include <asm/tlb.h>



hth, martin

-- 
Martin Dahl
dahlm@izno.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Re: 2.5.50 : arch/i386/mm/hugetblpage.c error
  2002-11-27 23:44 ` [PATCH] " Martin Dahl
@ 2002-11-27 23:49   ` Frank Davis
  0 siblings, 0 replies; 3+ messages in thread
From: Frank Davis @ 2002-11-27 23:49 UTC (permalink / raw)
  To: Martin Dahl; +Cc: linux-kernel

Hello all,
     Changing the prototype to match include/linux/hugetlb.h also works.

Regards,
Frank

Martin Dahl wrote:
>>Hello all,
>>  While 'make bzImage', I received the following error.
>>
>>Regards,
>>Frank
>>
>>arch/i386/mm/hugetlbpage.c:610: parse error before `*'
>>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
>>
> 
> Looks like there's a missing include, the following patch should fix it
> 
> --- arch/i386/mm/hugetlbpage.c.orig     2002-11-27 23:37:47.000000000 +0000
> +++ arch/i386/mm/hugetlbpage.c  2002-11-27 23:36:20.000000000 +0000
> @@ -14,6 +14,7 @@
>  #include <linux/slab.h>
>  #include <linux/module.h>
>  #include <linux/err.h>
> +#include <linux/sysctl.h>
>  #include <asm/mman.h>
>  #include <asm/pgalloc.h>
>  #include <asm/tlb.h>
> 
> 
> 
> hth, martin
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-27 23:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-27 23:27 2.5.50 : arch/i386/mm/hugetblpage.c error Frank Davis
2002-11-27 23:44 ` [PATCH] " Martin Dahl
2002-11-27 23:49   ` Frank Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox