Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756036AbZAYKl5 (ORCPT ); Sun, 25 Jan 2009 05:41:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751998AbZAYKls (ORCPT ); Sun, 25 Jan 2009 05:41:48 -0500 Received: from hera.kernel.org ([140.211.167.34]:38993 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751969AbZAYKls (ORCPT ); Sun, 25 Jan 2009 05:41:48 -0500 Subject: Re: building custom module on 2.6.28 fails From: Jaswinder Singh Rajput To: Andrew Morton , Sam Ravnborg Cc: linux-kernel , Satish Eerpini In-Reply-To: <1232879436.4303.40.camel@localhost.localdomain> References: <93655eb70901242057n7e0e3757p467f91352cbae932@mail.gmail.com> <1232866165.3195.1.camel@localhost.localdomain> <93655eb70901250037k79286904oc859118946155766@mail.gmail.com> <1232879436.4303.40.camel@localhost.localdomain> Content-Type: text/plain Date: Sun, 25 Jan 2009 16:10:58 +0530 Message-Id: <1232880058.4303.46.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 (2.24.3-1.fc10) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1374 Lines: 38 Hello Andrew, Sam, On Sun, 2009-01-25 at 16:00 +0530, Jaswinder Singh Rajput wrote: > On Sun, 2009-01-25 at 14:07 +0530, Satish Eerpini wrote: > > -rw-r--r-- 1 root root 4848 2008-10-10 03:43 > > /usr/src/kernels/linux-2.6.28/include/linux/bootmem.h > > -rw-r--r-- 1 root root 261 2008-10-10 03:43 > > /usr/src/kernels/linux-2.6.28/include/linux/bottom_half.h > > -rw-r--r-- 1 root root 224 2009-01-25 14:09 > > /usr/src/kernels/linux-2.6.28/include/linux/bounds.h > > > > > > On 1/25/09, Jaswinder Singh Rajput wrote: > > > On Sun, 2009-01-25 at 10:27 +0530, Satish Eerpini wrote: > > >> include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or > > >> directory > > It seems you run "make clean" or "make distclean" in your kernel sources > > run "make prepare" in your kernel sources then you will not get this error. Many people are facing similar problems like this. In this case linux/bounds.h is generated by Kbuild and leads to error for modules if we do "make clean" or "make distclean" Can we take benefits from __GENERATING_BOUNDS_H Do you have some better plans. -- JSR -- 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/