x86/xen: Link platform-pci-unplug.o only if CONFIG_XEN_PVHVM
authorJuergen Gross <jgross@suse.com>
Tue, 28 Aug 2018 07:40:14 +0000 (09:40 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 3 Sep 2018 14:50:33 +0000 (16:50 +0200)
commit3013c2be600fe22d336ab4de91aedde258f1f7d5
tree9ac84ffeec2b7e5ceba2afbed3f8e2dce9c69a1d
parentf030aade9165080f3539fb86fc2ce9ffc391813c
x86/xen: Link platform-pci-unplug.o only if CONFIG_XEN_PVHVM

Instead of using one large #ifdef CONFIG_XEN_PVHVM in
arch/x86/xen/platform-pci-unplug.c add the object file depending on
CONFIG_XEN_PVHVM being set.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: xen-devel@lists.xenproject.org
Cc: virtualization@lists.linux-foundation.org
Cc: akataria@vmware.com
Cc: rusty@rustcorp.com.au
Cc: hpa@zytor.com
Link: https://lkml.kernel.org/r/20180828074026.820-4-jgross@suse.com
arch/x86/xen/Makefile
arch/x86/xen/platform-pci-unplug.c