Skip to contentSkip to conversation

lib-average: Make config option selectable

PATCH In review Michael Buesch 2 participants 3 messages Mar 1, 2011 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib-average: Make config option selectable

Make CONFIG_AVERAGE selectable for out-of-tree users such as compat-wireless.

---

lib/Kconfig +8 -1
Index: linux-2.6.38-rc6/lib/Kconfig
===================================================================
@@ -223,6 +223,13 @@ config LRU_CACHE
 	tristate
 
 config AVERAGE
-	bool
+	bool "Averaging functions"
+	help
+	  This option is provided for the case where no in-kernel-tree
+	  modules require averaging functions, but a module built outside
+	  the kernel tree does. Such modules that use library averaging
+	  functions require Y here.
+
+	  If unsure, say N.
 
 endmenu
Signature · 1 line
Greetings, Michael.
#1 lore raw
Quoted 2 lines · Michael Buesch

Make CONFIG_AVERAGE selectable for out-of-tree users such as compat-wireless.

Is that really necessary? We haven't typically done this, and often just shipped the code in compat instead?

johannes

#2 lore raw
Quoted 6 lines · Johannes Berg
Quoted 2 lines · Michael Buesch

Make CONFIG_AVERAGE selectable for out-of-tree users such as compat-wireless.

Is that really necessary? We haven't typically done this, and often just shipped the code in compat instead?

Well, there are a lot more options in lib that do this (The help text is copied from the others).

compat-wireless does include a backport of the function, but only for <=2.6.37. So from .38 on compat-wireless expects the option to be enabled. Which is unfortunate, because it's impossible to enable without enabling something else that SELECTs it. I hit this situation in OpenWRT.

Signature · 1 line
Greetings, Michael.