Re: [PATCH 10 of 12] xen: implement save/restore

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Fitzhardinge <jeremy@...>
Cc: LKML <linux-kernel@...>, xen-devel <xen-devel@...>, Thomas Gleixner <tglx@...>, Rafael J. Wysocki <rjw@...>
Date: Thursday, May 29, 2008 - 3:31 am

* Jeremy Fitzhardinge <jeremy@goop.org> wrote:


-tip testing found the following build breakage:

  drivers/built-in.o: In function `xen_suspend':
  manage.c:(.text+0x4390f): undefined reference to `xen_console_resume'

with this config:

  http://redhat.com/~mingo/misc/config-Thu_May_29_09_23_16_CEST_2008.bad

i have bisected it down to:

|  commit 0e91398f2a5d4eb6b07df8115917d0d1cf3e9b58
|  Author: Jeremy Fitzhardinge <jeremy@goop.org>
|  Date:   Mon May 26 23:31:27 2008 +0100
|
|      xen: implement save/restore

the problem is that drivers/xen/manage.c is built unconditionally if 
CONFIG_XEN is enabled and makes use of xen_suspend(), but 
drivers/char/hvc_xen.c, where the xen_suspend() method is implemented, 
is only build if CONFIG_HVC_XEN=y as well.

i have solved this by providing a NOP implementation for xen_suspend() 
in the !CONFIG_HVC_XEN case.

	Ingo

---
 include/xen/hvc-console.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux/include/xen/hvc-console.h
===================================================================
--- linux.orig/include/xen/hvc-console.h
+++ linux/include/xen/hvc-console.h
@@ -3,7 +3,11 @@
 
 extern struct console xenboot_console;
 
+#ifdef CONFIG_HVC_XEN
 void xen_console_resume(void);
+#else
+static inline void xen_console_resume(void) { }
+#endif
 
 void xen_raw_console_write(const char *str);
 void xen_raw_printk(const char *fmt, ...);
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00 of 12] xen: add save/restore/migrate for Xen domains, Jeremy Fitzhardinge, (Fri May 23, 9:41 am)
[PATCH 10 of 12] xen: implement save/restore, Jeremy Fitzhardinge, (Fri May 23, 9:41 am)
Re: [Xen-devel] [PATCH 10 of 12] xen: implement save/restore, Jeremy Fitzhardinge, (Mon Jun 2, 6:03 am)
Re: [Xen-devel] [PATCH 10 of 12] xen: implement save/restore, Jeremy Fitzhardinge, (Mon Jun 2, 6:52 am)
Re: [PATCH 10 of 12] xen: implement save/restore, Ingo Molnar, (Thu May 29, 3:31 am)
[PATCH] xen: fix compilation when CONFIG_PM_SLEEP is disabled, Jeremy Fitzhardinge, (Thu May 29, 4:02 am)
Re: [PATCH 10 of 12] xen: implement save/restore, Jeremy Fitzhardinge, (Thu May 29, 4:00 am)
[PATCH 12 of 12] hrtimer: remove warning in hres_timers_resume, Jeremy Fitzhardinge, (Fri May 23, 9:41 am)
[PATCH 08 of 12] xen-console: add save/restore, Jeremy Fitzhardinge, (Fri May 23, 9:41 am)
Re: [PATCH 08 of 12] xen-console: add save/restore, Ingo Molnar, (Mon Jun 2, 7:17 am)
Re: [PATCH 08 of 12] xen-console: add save/restore, Jeremy Fitzhardinge, (Mon Jun 2, 7:50 am)
Re: [PATCH 08 of 12] xen-console: add save/restore, Ingo Molnar, (Mon Jun 2, 7:18 am)
[PATCH 07 of 12] xen: fix unbind_from_irq(), Jeremy Fitzhardinge, (Fri May 23, 9:41 am)
[PATCH 11 of 12] xen: maintain clock offset over save/restore, Jeremy Fitzhardinge, (Fri May 23, 9:41 am)
[PATCH 09 of 12] xenbus: rebind irq on restore, Jeremy Fitzhardinge, (Fri May 23, 9:41 am)
[PATCH 05 of 12] xen: add p2m mfn_list_list, Jeremy Fitzhardinge, (Fri May 23, 9:41 am)
Re: [bisected] Re: [PATCH 05 of 12] xen: add p2m mfn_list_list, Jeremy Fitzhardinge, (Fri May 30, 4:04 am)
Re: [bisected] Re: [PATCH 05 of 12] xen: add p2m mfn_list_list, Jeremy Fitzhardinge, (Wed May 28, 10:02 am)
Re: [bisected] Re: [PATCH 05 of 12] xen: add p2m mfn_list_list, Jeremy Fitzhardinge, (Mon Jun 2, 9:12 am)
[PATCH 03 of 12] xen: efficiently support a holey p2m table, Jeremy Fitzhardinge, (Fri May 23, 9:41 am)
[PATCH 06 of 12] xen: add rebind_evtchn_irq, Jeremy Fitzhardinge, (Fri May 23, 9:41 am)
[PATCH 04 of 12] xen: make dummy_shared_info non-static, Jeremy Fitzhardinge, (Fri May 23, 9:41 am)
[PATCH 02 of 12] xen: add configurable max domain size, Jeremy Fitzhardinge, (Fri May 23, 9:41 am)
[PATCH 01 of 12] xen: make phys_to_machine structure dynamic, Jeremy Fitzhardinge, (Fri May 23, 9:41 am)