]> git.baikalelectronics.ru Git - kernel.git/commit
xen: ifdef CONFIG_HIBERNATE_CALLBACKS xen_*_suspend
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 27 Jun 2013 13:28:38 +0000 (14:28 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 28 Jun 2013 15:19:50 +0000 (11:19 -0400)
commit347b024adbad8288c9a25b4bb49e250412504ba6
tree50cc3a129092ea3e0105a821c9de77eea80dd916
parent0bed1096d49aa7219c076b75fc45be65fadf728d
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>
drivers/xen/manage.c