Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 27 Nov 2002 18:41:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 27 Nov 2002 18:41:34 -0500 Received: from nycsmtp2out.rdc-nyc.rr.com ([24.29.99.223]:25511 "EHLO nycsmtp2out.rdc-nyc.rr.com") by vger.kernel.org with ESMTP id ; Wed, 27 Nov 2002 18:41:33 -0500 Message-ID: <3DE55A1E.2000301@si.rr.com> Date: Wed, 27 Nov 2002 18:49:50 -0500 From: Frank Davis Reply-To: fdavis@si.rr.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Martin Dahl CC: linux-kernel@vger.kernel.org Subject: Re: [PATCH] Re: 2.5.50 : arch/i386/mm/hugetblpage.c error References: <20021127234426.GA15475@izno.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1924 Lines: 53 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 > #include > #include > +#include > #include > #include > #include > > > > hth, martin > - 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/