Re: build issue #503 for v2.6.26-rc2-433-gf26a398 : undefined reference to `request_firmware'

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: James Bottomley
Date: Saturday, May 17, 2008 - 3:04 am

On Fri, 2008-05-16 at 19:06 +0200, Toralf Förster wrote:

There's a slight fault in the stub logic.  It fails for FW_LOADER=m and
the user =y.

This should fix it.

James

---

diff --git a/include/linux/firmware.h b/include/linux/firmware.h
index 4d10c73..6c7eff2 100644
--- a/include/linux/firmware.h
+++ b/include/linux/firmware.h
@@ -13,7 +13,7 @@ struct firmware {
 
 struct device;
 
-#if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE)
+#if defined(CONFIG_FW_LOADER) || (defined(CONFIG_FW_LOADER_MODULE) && defined(MODULE))
 int request_firmware(const struct firmware **fw, const char *name,
 		     struct device *device);
 int request_firmware_nowait(


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

Messages in current thread:
Re: build issue #503 for v2.6.26-rc2-433-gf26a398 : undef ..., Rafael J. Wysocki, (Fri May 16, 1:30 pm)
Re: build issue #503 for v2.6.26-rc2-433-gf26a398 : undef ..., James Bottomley, (Sat May 17, 3:04 am)
Re: build issue #503 for v2.6.26-rc2-433-gf26a398 : undef ..., James Bottomley, (Fri May 23, 10:59 am)