linux-next: origin tree build failure

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephen Rothwell
Date: Tuesday, October 14, 2008 - 3:59 pm

Hi Linus, Mark,

Today's linux-next build (just Linus' tree) (x86_64 allmodconfig) failed
like this:

drivers/mfd/wm8350-core.c: In function 'wm8350_device_init':
drivers/mfd/wm8350-core.c:1220: error: 'NO_IRQ' undeclared (first use in this function)

Caused by commit ebccec0fa4e35dff0c18663a492a65f4dc6cad7a ("mfd: Add
WM8350 interrupt support").

I applied the following (probably incorrect) patch.  Maybe this driver
needs to be restricted to certain architectures?  (NO_IRQ appears to only
be defined for arm, blackfin, powerpc, mn10300 and parisc)

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 15 Oct 2008 09:57:33 +1100
Subject: [PATCH] wm8350-core needs NO_IRQ

and that is not defined for most architectures.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/mfd/wm8350-core.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/mfd/wm8350-core.c b/drivers/mfd/wm8350-core.c
index 25a7a5d..6e3a509 100644
--- a/drivers/mfd/wm8350-core.c
+++ b/drivers/mfd/wm8350-core.c
@@ -1156,6 +1156,10 @@ static void wm8350_client_dev_register(struct wm8350 *wm8350,
 	}
 }
 
+#ifndef NO_IRQ
+#define NO_IRQ	0
+#endif
+
 int wm8350_device_init(struct wm8350 *wm8350, int irq,
 		       struct wm8350_platform_data *pdata)
 {
-- 
1.5.6.5

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: origin tree build failure, Stephen Rothwell, (Tue Oct 14, 3:59 pm)
Re: linux-next: origin tree build failure, Linus Torvalds, (Tue Oct 14, 4:43 pm)
Re: linux-next: origin tree build failure, Linus Torvalds, (Tue Oct 14, 4:51 pm)
Re: linux-next: origin tree build failure, David Miller, (Tue Oct 14, 4:52 pm)
Re: linux-next: origin tree build failure, Mark Brown, (Tue Oct 14, 5:05 pm)
Re: linux-next: origin tree build failure, Linus Torvalds, (Tue Oct 14, 5:34 pm)
Re: linux-next: origin tree build failure, Alan Cox, (Wed Oct 15, 2:02 am)
Re: linux-next: origin tree build failure, Ingo Molnar, (Wed Oct 15, 2:33 am)
Re: linux-next: origin tree build failure, Mark Brown, (Wed Oct 15, 4:01 am)