Skip to contentSkip to conversation

staging: zcache: make zcache builtin only

PATCH In review Seth Jennings 2 participants 2 messages Mar 5, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: zcache: make zcache builtin only

zcache cannot currently be loaded as a module. However the Kconfig allows it to be built as a module; something that the user probably does not intend since the module is not loadable.

This patch switches zcache from a tristate to a bool in the Kconfig

---
 drivers/staging/zcache/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/zcache/Kconfig +1 -1
index 5a36fcf..3ed2c8f 100644
@@ -1,5 +1,5 @@
 config ZCACHE
-	tristate "Dynamic compression of swap pages and clean pagecache pages"
+	bool "Dynamic compression of swap pages and clean pagecache pages"
 	# X86 dependency is because zsmalloc uses non-portable pte/tlb
 	# functions
 	depends on (CLEANCACHE || FRONTSWAP) && CRYPTO && X86
Signature · 1 line
1.7.5.4
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines

From: Seth Jennings [mailto:[email protected]]
Sent: Monday, March 05, 2012 9:47 AM
To: Greg Kroah-Hartman
Cc: Seth Jennings; Dan Magenheimer; Thadeu Lima de Souza Cascardo; Konrad Rzeszutek Wilk; Nitin Gupta; Robert Jennings; [email protected]; [email protected]
Subject: [PATCH] staging: zcache: make zcache builtin only

Quoted 8 lines

zcache cannot currently be loaded as a module. However the Kconfig allows it to be built as a module; something that the user probably does not intend since the module is not loadable.

This patch switches zcache from a tristate to a bool in the Kconfig

Quoted 17 lines
---
 drivers/staging/zcache/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/zcache/Kconfig +1 -2
index 5a36fcf..3ed2c8f 100644
@@ -1,5 +1,5 @@
 config ZCACHE
-	tristate "Dynamic compression of swap pages and clean pagecache pages"
+	bool "Dynamic compression of swap pages and clean pagecache pages"
 	# X86 dependency is because zsmalloc uses non-portable pte/tlb
 	# functions
 	depends on (CLEANCACHE || FRONTSWAP) && CRYPTO && X86
--

1.7.5.4