From: Andrew Morton Date: Tue, 26 Mar 2013 23:24:20 +0000 (+1100) Subject: xen-tmem-enable-xen-tmem-shim-to-be-built-loaded-as-a-module-fix X-Git-Tag: next-20130404~3^2~452 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=035bb2753573082e5ebd5fd9750798caf2581f12;p=karo-tx-linux.git xen-tmem-enable-xen-tmem-shim-to-be-built-loaded-as-a-module-fix fix build (disable_frontswap_selfshrinking undeclared) Cc: Andor Daam Cc: Bob Liu Cc: Dan Magenheimer Cc: Florian Schmaus Cc: Konrad Rzeszutek Wilk Cc: Minchan Kim Cc: Stefan Hengelein Cc: Wanpeng Li Signed-off-by: Andrew Morton --- diff --git a/drivers/xen/tmem.c b/drivers/xen/tmem.c index ba46717dc707..8adde8e8428c 100644 --- a/drivers/xen/tmem.c +++ b/drivers/xen/tmem.c @@ -382,6 +382,8 @@ static struct frontswap_ops tmem_frontswap_ops = { .invalidate_area = tmem_frontswap_flush_area, .init = tmem_frontswap_init }; +#else /* CONFIG_FRONTSWAP */ +#define disable_frontswap_selfshrinking 1 #endif static int xen_tmem_init(void)