mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
xen/tmem: Fix compile warning.
We keep on getting: drivers/xen/tmem.c:65:13: warning: ‘disable_frontswap_selfshrinking’ defined but not used [-Wunused-variable] if CONFIG_FRONTSWAP=y and # CONFIG_CLEANCACHE is not set Found by 0 day test project Reported-by: Fengguang Wu <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
This commit is contained in:
parent
e8f9cb034b
commit
23972c6399
1 changed files with 2 additions and 4 deletions
|
|
@ -61,14 +61,12 @@ __setup("nofrontswap", no_frontswap);
|
|||
#endif
|
||||
#endif /* CONFIG_FRONTSWAP */
|
||||
|
||||
#ifdef CONFIG_FRONTSWAP
|
||||
#ifdef CONFIG_XEN_SELFBALLOONING
|
||||
static bool disable_frontswap_selfshrinking __read_mostly;
|
||||
#ifdef CONFIG_XEN_TMEM_MODULE
|
||||
module_param(disable_frontswap_selfshrinking, bool, S_IRUGO);
|
||||
#else
|
||||
#define disable_frontswap_selfshrinking 1
|
||||
#endif
|
||||
#endif /* CONFIG_FRONTSWAP */
|
||||
#endif /* CONFIG_XEN_SELFBALLOONING */
|
||||
|
||||
#define TMEM_CONTROL 0
|
||||
#define TMEM_NEW_POOL 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue