Li, Haicheng
2008-Jan-23 14:54 UTC
[Xen-devel] PV driver build error for latest Xen0: #398
Paste the error info here: CC [M] /home/build/nightly/builds_xen_unstable/xen3.2-hg-xen_unstable-16852-200 80123/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.o /home/build/nightly/builds_xen_unstable/xen3.2-hg-xen_unstable-16852-200 80123/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c: In function `bp_suspend'': /home/build/nightly/builds_xen_unstable/xen3.2-hg-xen_unstable-16852-200 80123/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c:61: error: void value not ignored as it ought to be make[2]: *** [/home/build/nightly/builds_xen_unstable/xen3.2-hg-xen_unstable-16852-20 080123/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.o] Error 1 And it should be c/s 393 that introduced this issue: diff -r 7070d34f251c -r 17a1a39df565 include/asm-i386/mach-xen/asm/hypervisor.h --- a/include/asm-i386/mach-xen/asm/hypervisor.h Mon Jan 21 11:43:31 2008 +0000 +++ b/include/asm-i386/mach-xen/asm/hypervisor.h Tue Jan 22 10:09:52 2008 +0000 @@ -175,7 +175,7 @@ HYPERVISOR_block( return rc; } -static inline int +static inline void __noreturn HYPERVISOR_shutdown( unsigned int reason) { -- haicheng _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jan Beulich
2008-Jan-23 15:36 UTC
[PATCH] Re: [Xen-devel] PV driver build error for latest Xen0: #398
>And it should be c/s 393 that introduced this issue:Oh, I''m sorry, I forgot to submit the Xen side patch along with the Linux side one. Here it is: Signed-off-by: Jan Beulich <jbeulich@novell.com> Index: 2008-01-07/unmodified_drivers/linux-2.6/platform-pci/evtchn.c ==================================================================--- 2008-01-07.orig/unmodified_drivers/linux-2.6/platform-pci/evtchn.c 2007-11-12 08:47:41.000000000 +0100 +++ 2008-01-07/unmodified_drivers/linux-2.6/platform-pci/evtchn.c 2008-01-17 17:53:37.000000000 +0100 @@ -118,8 +118,8 @@ void unmask_evtchn(int port) ever bind event channels to vcpu 0 in HVM guests. */ if (unlikely(cpu != 0)) { evtchn_unmask_t op = { .port = port }; - (void)HYPERVISOR_event_channel_op(EVTCHNOP_unmask, - &op); + VOID(HYPERVISOR_event_channel_op(EVTCHNOP_unmask, + &op)); put_cpu(); return; } @@ -227,7 +227,8 @@ void unbind_from_irqhandler(unsigned int mask_evtchn(evtchn); if (irq_evtchn[irq].close) { struct evtchn_close close = { .port = evtchn }; - HYPERVISOR_event_channel_op(EVTCHNOP_close, &close); + if (HYPERVISOR_event_channel_op(EVTCHNOP_close, &close)) + BUG(); } } @@ -310,7 +311,7 @@ static irqreturn_t evtchn_interrupt(int void force_evtchn_callback(void) { - (void)HYPERVISOR_xen_version(0, NULL); + VOID(HYPERVISOR_xen_version(0, NULL)); } EXPORT_SYMBOL(force_evtchn_callback); Index: 2008-01-07/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c ==================================================================--- 2008-01-07.orig/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c 2007-11-02 17:25:53.000000000 +0100 +++ 2008-01-07/unmodified_drivers/linux-2.6/platform-pci/machine_reboot.c 2008-01-17 18:02:17.000000000 +0100 @@ -58,7 +58,7 @@ static int bp_suspend(void) BUG_ON(!irqs_disabled()); - suspend_cancelled = HYPERVISOR_shutdown(SHUTDOWN_suspend); + suspend_cancelled = HYPERVISOR_suspend(0); if (!suspend_cancelled) { write_lock(&suspend_lock); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel