From: "Stephen C. Tweedie" Subject: Re: Build problems: references to init_mm in pgtable*.h Date: Wed, 14 Dec 2005 10:44:27 -0500 Message-ID: <1134575067.3990.5.camel@orbit.scot.redhat.com> References: <1133806849.4201.31.camel@localhost.localdomain> <3d8eece20512131934j593caba8y63eddd4692bd3071@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <3d8eece20512131934j593caba8y63eddd4692bd3071@mail.gmail.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: Christian.Limpach@cl.cam.ac.uk Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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 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 =E2=80=98write_ldt_entry=E2=80= =99: include/asm/mach-xen/asm/desc.h:103: error: =E2=80=98init_mm=E2=80=99 und= eclared (first use in this function) include/asm/mach-xen/asm/desc.h:103: error: (Each undeclared identifier i= s 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=3Dy CONFIG_X86_PM_TIMER=3Dy CONFIG_ACPI_POWER=3Dy 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