]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: suppress unused var warning in get_irq_server()
authorDave Hansen <haveblue@us.ibm.com>
Sat, 7 Aug 2004 07:58:01 +0000 (00:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 7 Aug 2004 07:58:01 +0000 (00:58 -0700)
When normal IRQ balancing is used, the following warnings appear:

arch/ppc64/kernel/xics.c: In function `get_irq_server':
arch/ppc64/kernel/xics.c:242: warning: unused variable `cpumask'
arch/ppc64/kernel/xics.c:243: warning: unused variable `tmp'

Simply move the variables inside the #ifdef

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/xics.c

index 8a0d07650106dc75041b87dfdf1ee941afc84caa..c9f950c2cea37e5d3b5ed401ec96900213a95a88 100644 (file)
@@ -238,13 +238,13 @@ static unsigned int real_irq_to_virt(unsigned int real_irq)
 #ifdef CONFIG_SMP
 static int get_irq_server(unsigned int irq)
 {
-       cpumask_t cpumask = irq_affinity[irq];
-       cpumask_t tmp = CPU_MASK_NONE;
        unsigned int server;
 
 #ifdef CONFIG_IRQ_ALL_CPUS
        /* For the moment only implement delivery to all cpus or one cpu */
        if (smp_threads_ready) {
+               cpumask_t cpumask = irq_affinity[irq];
+               cpumask_t tmp = CPU_MASK_NONE;
                if (cpus_equal(cpumask, CPU_MASK_ALL)) {
                        server = default_distrib_server;
                } else {