From: Dan Magenheimer Subject: RE: [PATCH] xen-tmem: Build cleancache shim to Xen Transcendent Memory only if Cleancache is enabled Date: Tue, 14 Jun 2011 09:09:23 -0700 (PDT) Message-ID: References: <1307696223.28682.21.camel@nikanth.blr.corp.google.com> <62886fcb-651d-4529-98a1-58443dd83e9e@default> <4DF737EC0200007800046F1F@nat28.tlf.novell.com 1308040987.28682.52.camel@nikanth.blr.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1308040987.28682.52.camel@nikanth.blr.corp.google.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Nikanth Karthikesan , Jan Beulich Cc: Jeremy Fitzhardinge , xen-devel@lists.xensource.com, Konrad Wilk List-Id: xen-devel@lists.xenproject.org > From: Nikanth Karthikesan [mailto:nikanth@google.com] > Sent: Tuesday, June 14, 2011 2:43 AM > To: Jan Beulich > Cc: Dan Magenheimer; Jeremy Fitzhardinge; xen-devel@lists.xensource.com; = Konrad Wilk > Subject: RE: [Xen-devel] [PATCH] xen-tmem: Build cleancache shim to Xen T= ranscendent Memory only if > Cleancache is enabled >=20 > On Tue, 2011-06-14 at 09:29 +0100, Jan Beulich wrote: > > >>> On 13.06.11 at 16:58, Dan Magenheimer = wrote: > > >> +obj-$(CONFIG_CLEAN_CACHE)=09+=3D tmem.o > > > > > > Hi Nikanth -- > > > > > > Thanks for the suggested patch. However, tmem.c works with both > > > cleancache and frontswap... the shim in place only works with > > > cleancache but there is a posted patch for it to work with > > > frontswap as well. So your patch would just need to be > > > redone when frontswap is included soon. > > > > > > BUT... is there a way to do an inclusive-or operation > > > in a Makefile?... something like this (though I know this > > > exact syntax won't work)... > > > > > > obj-($CONFIG_CLEANCACHE||$CONFIG_FRONTSWAP) > > > > You can specify the same object more than once, i.e. > > > > obj-$(CONFIG_CLEAN_CACHE)=09+=3D tmem.o > > obj-$(CONFIG_FRONTSWAP)=09+=3D tmem.o > > >=20 > Cool! >=20 > So, can this patch be merged then? It would be easy to patch for > frontswap, in the frontswap patchset. I'm OK with the Makefile change, but the second part of your patch that removes the #ifdef CONFIG_CLEANCACHE will just need to be put in again when frontswap is added (as it will be possible that CONFIG_FRONTSWAP=3Dy but CONFIG_CLEANCACHE=3Dn). Is there a rush on this (i.e. is the compiler warning impeding your work somehow)? As I said, it should all be cleaned up soon so would prefer not to submit these piecemeal. Thanks, Dan