From: Martin Dahl <dahlm@izno.net>
To: linux-kernel@vger.kernel.org
Cc: Frank Davis <fdavis@si.rr.com>
Subject: [PATCH] Re: 2.5.50 : arch/i386/mm/hugetblpage.c error
Date: Wed, 27 Nov 2002 23:44:26 +0000 [thread overview]
Message-ID: <20021127234426.GA15475@izno.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0211271826270.2465-100000@linux-dev>
> 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
next prev parent reply other threads:[~2002-11-27 23:37 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 ` Martin Dahl [this message]
2002-11-27 23:49 ` [PATCH] " Frank Davis
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=20021127234426.GA15475@izno.net \
--to=dahlm@izno.net \
--cc=fdavis@si.rr.com \
--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