diff options
Diffstat (limited to 'drivers/s390/kvm/kvm_virtio.c')
-rw-r--r-- | drivers/s390/kvm/kvm_virtio.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c index aec60d55b10d..94f49ffa70ba 100644 --- a/drivers/s390/kvm/kvm_virtio.c +++ b/drivers/s390/kvm/kvm_virtio.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/virtio_console.h> | 20 | #include <linux/virtio_console.h> |
21 | #include <linux/interrupt.h> | 21 | #include <linux/interrupt.h> |
22 | #include <linux/virtio_ring.h> | 22 | #include <linux/virtio_ring.h> |
23 | #include <linux/export.h> | ||
23 | #include <linux/pfn.h> | 24 | #include <linux/pfn.h> |
24 | #include <asm/io.h> | 25 | #include <asm/io.h> |
25 | #include <asm/kvm_para.h> | 26 | #include <asm/kvm_para.h> |
@@ -33,7 +34,7 @@ | |||
33 | * The pointer to our (page) of device descriptions. | 34 | * The pointer to our (page) of device descriptions. |
34 | */ | 35 | */ |
35 | static void *kvm_devices; | 36 | static void *kvm_devices; |
36 | struct work_struct hotplug_work; | 37 | static struct work_struct hotplug_work; |
37 | 38 | ||
38 | struct kvm_device { | 39 | struct kvm_device { |
39 | struct virtio_device vdev; | 40 | struct virtio_device vdev; |
@@ -334,10 +335,10 @@ static void scan_devices(void) | |||
334 | */ | 335 | */ |
335 | static int match_desc(struct device *dev, void *data) | 336 | static int match_desc(struct device *dev, void *data) |
336 | { | 337 | { |
337 | if ((ulong)to_kvmdev(dev_to_virtio(dev))->desc == (ulong)data) | 338 | struct virtio_device *vdev = dev_to_virtio(dev); |
338 | return 1; | 339 | struct kvm_device *kdev = to_kvmdev(vdev); |
339 | 340 | ||
340 | return 0; | 341 | return kdev->desc == data; |
341 | } | 342 | } |
342 | 343 | ||
343 | /* | 344 | /* |