xmem/tmem: fix 'undefined variable' build error.
authorFrederico Cadete <frederico@cadete.eu>
Sat, 25 May 2013 20:48:57 +0000 (22:48 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 28 May 2013 13:54:48 +0000 (09:54 -0400)
commit1d7004f0593f631b78745e4c835d8e09b31f4996
treee8c832f881ea34ae24e8e74e307ebe69f043b70e
parentfce92683570c2ddcdb82cde67b0b07800106fbd9
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: Frederico Cadete <frederico@cadete.eu>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/tmem.c