mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
xen/pvhvm: Remove the xen_platform_pci int.
Since we have xen_has_pv_devices,xen_has_pv_disk_devices, xen_has_pv_nic_devices, and xen_has_pv_and_legacy_disk_devices to figure out the different 'unplug' behaviors - lets use those instead of this single int. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:
@@ -30,10 +30,9 @@
|
|||||||
#define XEN_PLATFORM_ERR_PROTOCOL -2
|
#define XEN_PLATFORM_ERR_PROTOCOL -2
|
||||||
#define XEN_PLATFORM_ERR_BLACKLIST -3
|
#define XEN_PLATFORM_ERR_BLACKLIST -3
|
||||||
|
|
||||||
/* store the value of xen_emul_unplug after the unplug is done */
|
|
||||||
int xen_platform_pci_unplug;
|
|
||||||
EXPORT_SYMBOL_GPL(xen_platform_pci_unplug);
|
|
||||||
#ifdef CONFIG_XEN_PVHVM
|
#ifdef CONFIG_XEN_PVHVM
|
||||||
|
/* store the value of xen_emul_unplug after the unplug is done */
|
||||||
|
static int xen_platform_pci_unplug;
|
||||||
static int xen_emul_unplug;
|
static int xen_emul_unplug;
|
||||||
|
|
||||||
static int check_platform_magic(void)
|
static int check_platform_magic(void)
|
||||||
|
|||||||
@@ -46,8 +46,6 @@ static inline int xen_must_unplug_disks(void) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int xen_platform_pci_unplug;
|
|
||||||
|
|
||||||
#if defined(CONFIG_XEN_PVHVM)
|
#if defined(CONFIG_XEN_PVHVM)
|
||||||
extern bool xen_has_pv_devices(void);
|
extern bool xen_has_pv_devices(void);
|
||||||
extern bool xen_has_pv_disk_devices(void);
|
extern bool xen_has_pv_disk_devices(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user