From: Christian Limpach Subject: Re: Build problems: references to init_mm in pgtable*.h Date: Fri, 16 Dec 2005 01:08:12 +0000 Message-ID: <20051216010812.GL22915@cl.cam.ac.uk> References: <1133806849.4201.31.camel@localhost.localdomain> <3d8eece20512131934j593caba8y63eddd4692bd3071@mail.gmail.com> <1134575067.3990.5.camel@orbit.scot.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1134575067.3990.5.camel@orbit.scot.redhat.com> 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 C. Tweedie" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Wed, Dec 14, 2005 at 10:44:27AM -0500, Stephen C. Tweedie wrote: > Hi, > > On Tue, 2005-12-13 at 19:34 -0800, Christian Limpach wrote: > > > 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? > > It's still failing for kernel/power/main.c, which depends on CONFIG_PM. > Now, which parts of CONFIG_PM are safe under Xen is another question --- > the right answer here may well be to add a "depends !XEN" to CONFIG_PM. > But with it enabled I still get I've fixed this one now by making write_ldt_entry a proper function instead of an inline function. This avoids having pgtable.h and sched.h included from desc.h. christian > > CC kernel/power/main.o > In file included from include/asm/suspend.h:6, > from include/linux/suspend.h:5, > from kernel/power/main.c:11: > include/asm/mach-xen/asm/desc.h: In function ???write_ldt_entry???: > include/asm/mach-xen/asm/desc.h:103: error: ???init_mm??? undeclared (first use in this function) > include/asm/mach-xen/asm/desc.h:103: error: (Each undeclared identifier is reported only once > include/asm/mach-xen/asm/desc.h:103: error: for each function it appears in.) > > with the macro fix. I'm using the PM config options: > > # Power management options (ACPI, APM) > CONFIG_PM=y > CONFIG_X86_PM_TIMER=y > CONFIG_ACPI_POWER=y > > for now --- I really want to be able to run a dom0 on my laptop, even if > the cpufreq governer gets a little confused about time spent in a domU. > It certainly builds and boots fine with the PM options enabled, as long > as I include linux/sched.h in the pgtable*.h files. > > Cheers, > Stephen > > > >