From: Christian Limpach Subject: Re: Build problems: references to init_mm in pgtable*.h Date: Tue, 13 Dec 2005 19:34:27 -0800 Message-ID: <3d8eece20512131934j593caba8y63eddd4692bd3071@mail.gmail.com> References: <1133806849.4201.31.camel@localhost.localdomain> Reply-To: Christian.Limpach@cl.cam.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1133806849.4201.31.camel@localhost.localdomain> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stephen Tweedie Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 12/5/05, Stephen Tweedie wrote: > My normal xen .config will not build on recent linux-2.6-merge.hg trees. > The problem is the > include/asm-i386/mach-xen/asm/pgtable-2level.h > and > include/asm-i386/mach-xen/asm/pgtable-3level.h > files, which reference "init_mm" without ever pulling in a definition of > those files. > > Whether you see the problem or not depends on the .config; most files > which include the pgtable*.h includes already pull in sched.h (which is > where init_mm is declared), but not all do so. Trivial patch attached, > but it's not necessarily the best solution as we don't want sched.h > changes polluting mm .o's unnecessarily. I've changed the set_pte_at and set_pte_at_sync inline functions to be macros. This way, init_mm only needs to be defined where these macros are used. Does this fix all the errors you're seeing? christian