Fix compiler warnings.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 22 Aug 2005 23:07:37 +0000 (23:07 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 22 Aug 2005 23:07:37 +0000 (23:07 +0000)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
linux-2.6-xen-sparse/arch/xen/i386/kernel/mpparse.c
linux-2.6-xen-sparse/arch/xen/i386/kernel/smpboot.c
linux-2.6-xen-sparse/arch/xen/kernel/evtchn.c
linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c

index 2e8aa94670eadc99817baa7794b9b9701835a0c6..3a984a61a646daa0c10498de81076ff3b68a173f 100644 (file)
@@ -784,7 +784,9 @@ static int __init smp_scan_config (unsigned long base, unsigned long length)
 
 void __init find_smp_config (void)
 {
+#ifndef CONFIG_XEN
        unsigned int address;
+#endif
 
        /*
         * FIXME: Linux assumes you have 640K of base ram..
index 45787ddf5b646ec891e05dade040a245b810bf76..96c4317c71475faa65aa08380bb1f3f23d527d45 100644 (file)
@@ -1604,6 +1604,9 @@ static void smp_intr_exit(void)
        unbind_ipi_from_irq(CALL_FUNCTION_VECTOR);
 }
 
+extern void local_setup_timer_irq(void);
+extern void local_teardown_timer_irq(void);
+
 void smp_suspend(void)
 {
        /* XXX todo: take down time and ipi's on all cpus */
index f1c4d138f94488af26356e681fbe281a4ccead2f..47fdcc9fdfdcc0c31bd25ab27d4e764e9bdfba96 100644 (file)
@@ -435,9 +435,11 @@ void unbind_evtchn_from_irqhandler(unsigned int evtchn, void *dev_id)
     unbind_evtchn_from_irq(evtchn);
 }
 
+#ifdef CONFIG_SMP
 static void do_nothing_function(void *ign)
 {
 }
+#endif
 
 /* Rebind an evtchn so that it gets delivered to a specific cpu */
 static void rebind_irq_to_cpu(unsigned irq, unsigned tcpu)
index 40155615c1a882bf565f62b7e877841655843870..1f460f91ef7528eb33ee254b0c193183c11beaca 100644 (file)
@@ -11,6 +11,8 @@
  * Copyright (c) 2005, Christopher Clark
  */
 
+#include <linux/spinlock.h>
+#include <asm-xen/balloon.h>
 #include "common.h"
 
 /*