From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: linux-next: Tree for Apr 19 (zcache) Date: Mon, 23 Apr 2012 21:06:15 -0400 Message-ID: <20120424010615.GA4393@phenom.dumpdata.com> References: <20120419164643.d9f918d44c890722b7707508@canb.auug.org.au> <4F909200.6070104@xenotime.net> <0b74f96b-8450-4dfb-8798-36edd0e06a64@default> <4F90E7CA.6080201@linux.vnet.ibm.com> <20120420163745.GB31062@phenom.dumpdata.com> <4F91B3C1.5080507@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from acsinet15.oracle.com ([141.146.126.227]:41547 "EHLO acsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754221Ab2DXBLf (ORCPT ); Mon, 23 Apr 2012 21:11:35 -0400 Content-Disposition: inline In-Reply-To: <4F91B3C1.5080507@linux.vnet.ibm.com> Sender: linux-next-owner@vger.kernel.org List-ID: To: Seth Jennings Cc: Dan Magenheimer , Nitin Gupta , linux-next@vger.kernel.org, LKML , Randy Dunlap , Stephen Rothwell On Fri, Apr 20, 2012 at 02:06:41PM -0500, Seth Jennings wrote: > On 04/20/2012 11:37 AM, Konrad Rzeszutek Wilk wrote: > > On Thu, Apr 19, 2012 at 11:36:26PM -0500, Seth Jennings wrote: > >> One fix is this: > >> > >> diff --git a/drivers/staging/zcache/Kconfig b/drivers/staging/zcache/Kconfig > >> index 3ed2c8f..7048e01 100644 > >> --- a/drivers/staging/zcache/Kconfig > >> +++ b/drivers/staging/zcache/Kconfig > >> @@ -2,7 +2,7 @@ config ZCACHE > >> 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 > >> + depends on (CLEANCACHE || FRONTSWAP) && CRYPTO=y && X86 > >> select ZSMALLOC > >> select CRYPTO_LZO > >> default n > >> > >> I think this is the best way since ZCACHE is a bool and CRYPTO is the only > >> one of the dependencies that is a tristate. This forces both ZSMALLOC and > >> CRYPTO_LZO to be builtin if ZCACHE is selected. > >> > >> Any other suggestions? > > > > Could you do: > > > > default y if (CRYPTO=y || ZSMALLOC=m) > > default m if (CRYPTO=m || ZSMALLOC=y) > > ZCACHE is a bool and can't be built as a module. Duh! > > The requirement is the if ZCACHE=y, then ZSMALLOC and > CRYPTO must also =y. OK, your patch makes sense then. Can you repost it please with Greg KH on it so he can add it in the staging tree?