public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] always enable FW_LOADER unless EMBEDDED=y
@ 2008-06-10 16:04 Adrian Bunk
  2008-06-10 16:24 ` Greg KH
  0 siblings, 1 reply; 10+ messages in thread
From: Adrian Bunk @ 2008-06-10 16:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: David Woodhouse, James Bottomley, Greg KH, Andrew Morton

James Bottomley recently discovered that we have 
{request,release}_firmware() dummies for the case of the actual 
functions not being available and has a fix for the bug that was 
actually causing build errors for built-in users with 
CONFIG_FW_LOADER=m.

But now missing selects on FW_LOADER are no longer visible at 
compile-time at all and can become runtime problems.

FW_LOADER is infrastructure with relatively small codesize we can 
safely enable for everyone, and only for people who really need small 
kernels (and can be expected to know what they are doing) it matters 
being able to disable it.

This patch therefore always sets FW_LOADER=y and allows users only to 
disable it with EMBEDDED=y.

As a bonus, we can then get rid of all "select FW_LOADER" plus the due 
to it required "depends on HOTPLUG" which removes some complexity from 
our Kconfig files.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---

This patch has been sent on:
- 2 Jun 2008

462ee1ceb263f523b6f4e3bd30a0f63810f05c67 diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig
index d7da109..629e255 100644
--- a/drivers/base/Kconfig
+++ b/drivers/base/Kconfig
@@ -27,8 +27,9 @@ config PREVENT_FIRMWARE_BUILD
 	  If unsure say Y here.
 
 config FW_LOADER
-	tristate "Userspace firmware loading support"
+	tristate "Userspace firmware loading support" if EMBEDDED
 	depends on HOTPLUG
+	default y
 	---help---
 	  This option is provided for the case where no in-kernel-tree modules
 	  require userspace firmware loading support, but a module built outside


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-06-11 19:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10 16:04 [2.6 patch] always enable FW_LOADER unless EMBEDDED=y Adrian Bunk
2008-06-10 16:24 ` Greg KH
2008-06-10 18:12   ` Adrian Bunk
2008-06-10 21:28     ` Greg KH
2008-06-11  8:23       ` Adrian Bunk
2008-06-11  9:20         ` Boaz Harrosh
2008-06-11  9:59           ` Adrian Bunk
2008-06-11 11:41             ` Boaz Harrosh
2008-06-11 18:20         ` Greg KH
2008-06-11 19:38           ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox