From 035bb2753573082e5ebd5fd9750798caf2581f12 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 27 Mar 2013 10:24:20 +1100 Subject: [PATCH] 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 --- drivers/xen/tmem.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.5