Skip to contentSkip to conversation

arm: msm: smd: ifdef dsp irq handler

PATCH In review Daniel Walker 2 participants 2 messages Mar 26, 2010 – Mar 27, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 6/7 arm: msm: smd: ifdef dsp irq handler

This irq handler isn't used in all cases, so add the proper ifdef. This eliminates a compiler warning due to the function not getting used.

---
 arch/arm/mach-msm/smd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-msm/smd.c +2 -0
index f3558f5..de9343e 100644
@@ -378,11 +378,13 @@ static irqreturn_t smd_modem_irq_handler(int irq, void *data)
 	return IRQ_HANDLED;
 }
 
+#if defined(CONFIG_QDSP6)
 static irqreturn_t smd_dsp_irq_handler(int irq, void *data)
 {
 	handle_smd_irq(&smd_ch_list_dsp, notify_dsp_smd);
 	return IRQ_HANDLED;
 }
+#endif
 
 static void smd_fake_irq_handler(unsigned long arg)
 {
Signature · 1 line
1.6.2.3
#1 lore raw
Quoted 4 lines · Daniel Walker

This irq handler isn't used in all cases, so add the proper ifdef. This eliminates a compiler warning due to the function not getting used.

ACK.

Quoted 22 lines
---
 arch/arm/mach-msm/smd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-msm/smd.c +2 -0
index f3558f5..de9343e 100644
@@ -378,11 +378,13 @@ static irqreturn_t smd_modem_irq_handler(int irq, void *data)
 	return IRQ_HANDLED;
 }
 
+#if defined(CONFIG_QDSP6)
 static irqreturn_t smd_dsp_irq_handler(int irq, void *data)
 {
 	handle_smd_irq(&smd_ch_list_dsp, notify_dsp_smd);
 	return IRQ_HANDLED;
 }
+#endif
 
 static void smd_fake_irq_handler(unsigned long arg)
 {
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html