aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-06-27 09:28:38 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-06-28 11:19:50 -0400
commit65e053a7038c608f89272d4fb1f899890c579f0a (patch)
tree50cc3a129092ea3e0105a821c9de77eea80dd916
parent098b1aeaf4d6149953b8f1f8d55c21d85536fbff (diff)
xen: ifdef CONFIG_HIBERNATE_CALLBACKS xen_*_suspend
xen_hvm_post_suspend, xen_pre_suspend, xen_post_suspend are only used if CONFIG_HIBERNATE_CALLBACKS is defined, resulting in: drivers/xen/manage.c:46:13: warning: ‘xen_hvm_post_suspend’ defined but not used [-Wunused-function] drivers/xen/manage.c:52:13: warning: ‘xen_pre_suspend’ defined but not used [-Wunused-function] drivers/xen/manage.c:59:13: warning: ‘xen_post_suspend’ defined but not used [-Wunused-function] If the kernel config is missing CONFIG_HIBERNATE_CALLBACKS. Simply ifdef CONFIG_HIBERNATE_CALLBACKS the three functions. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
-rw-r--r--drivers/xen/manage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
index 412b96cc5305..b1005d4a953d 100644
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -43,6 +43,7 @@ struct suspend_info {
43 void (*post)(int cancelled); 43 void (*post)(int cancelled);
44}; 44};
45 45
46#ifdef CONFIG_HIBERNATE_CALLBACKS
46static void xen_hvm_post_suspend(int cancelled) 47static void xen_hvm_post_suspend(int cancelled)
47{ 48{
48 xen_arch_hvm_post_suspend(cancelled); 49 xen_arch_hvm_post_suspend(cancelled);
@@ -63,7 +64,6 @@ static void xen_post_suspend(int cancelled)
63 xen_mm_unpin_all(); 64 xen_mm_unpin_all();
64} 65}
65 66
66#ifdef CONFIG_HIBERNATE_CALLBACKS
67static int xen_suspend(void *data) 67static int xen_suspend(void *data)
68{ 68{
69 struct suspend_info *si = data; 69 struct suspend_info *si = data;