From: Frank Davis <fdavis@si.rr.com>
To: Martin Dahl <dahlm@izno.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Re: 2.5.50 : arch/i386/mm/hugetblpage.c error
Date: Wed, 27 Nov 2002 18:49:50 -0500 [thread overview]
Message-ID: <3DE55A1E.2000301@si.rr.com> (raw)
In-Reply-To: 20021127234426.GA15475@izno.net
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
>
prev parent reply other threads:[~2002-11-27 23:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DE55A1E.2000301@si.rr.com \
--to=fdavis@si.rr.com \
--cc=dahlm@izno.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox