xen: don't compile pv-specific parts if XEN_PV isn't configured
authorJuergen Gross <jgross@suse.com>
Thu, 14 Sep 2017 12:38:58 +0000 (14:38 +0200)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Mon, 18 Sep 2017 13:13:23 +0000 (09:13 -0400)
commitfe9c1c9555a529bf678148f719c1b9f1730f68a3
tree9ca0709dac937aed01ca763d089ba5bdeea02f92
parent51ae253870f55e14ba2854ce9577ac2920efef0c
xen: don't compile pv-specific parts if XEN_PV isn't configured

xenbus_client.c contains some functions specific for pv guests.
Enclose them with #ifdef CONFIG_XEN_PV to avoid compiling them when
they are not needed (e.g. on ARM).

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/xenbus/xenbus_client.c