Commit 1d7004f0 authored by Frederico Cadete's avatar Frederico Cadete Committed by Konrad Rzeszutek Wilk
Browse files

xmem/tmem: fix 'undefined variable' build error.

In the (not so useful) kernel configuration where CONFIG_SWAP
is undefined and CONFIG_XEN_SELFBALLOONING is defined,
xen_tmem_init would use undefined variable 'static bool frontswap'.

Added #else to have #define frontswap (0) in the case where
CONFIG_FRONTSWAP is not defined.
Signed-off-by: default avatarFrederico Cadete <>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <>
parent fce92683
......@@ -41,6 +41,8 @@ module_param(selfballooning, bool, S_IRUGO);
static bool frontswap __read_mostly = true;
module_param(frontswap, bool, S_IRUGO);
#define frontswap (0)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment