From: David S. Miller Date: Tue, 20 Feb 2007 09:26:48 +0000 (-0800) Subject: [SPARC64]: virt_irq_free only needed when CONFIG_PCI_MSI X-Git-Tag: 2.1b_release~29484^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5746c99dfa09231fa24cac1986de4661ea79a80f;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git [SPARC64]: virt_irq_free only needed when CONFIG_PCI_MSI Noticed by Meelis Roos. Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/kernel/irq.c b/arch/sparc64/kernel/irq.c index b5ff3ee..c443db1 100644 --- a/arch/sparc64/kernel/irq.c +++ b/arch/sparc64/kernel/irq.c @@ -109,6 +109,7 @@ static unsigned char virt_irq_alloc(unsigned int real_irq) return ent; } +#ifdef CONFIG_PCI_MSI static void virt_irq_free(unsigned int virt_irq) { unsigned int real_irq; @@ -121,6 +122,7 @@ static void virt_irq_free(unsigned int virt_irq) __bucket(real_irq)->virt_irq = 0; } +#endif static unsigned int virt_to_real_irq(unsigned char virt_irq) {