aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2011-10-30 10:17:17 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2011-10-30 10:16:47 -0400
commit7bf4074dd9d41d28447f1b106d91ad0ad0ea454a (patch)
tree30e86deed3af3140415067953cc0a5d7060ad3ed /drivers/s390
parent246ccea184423ccdec3be1ca3d400cc3c547404d (diff)
[S390] sparse: fix sparse symbol shadow warning
to_kvmdev and dev_to_virtio both use container_of. Avoid to nest the two macros to quiet the following sparse warning: drivers/s390/kvm/kvm_virtio.c:337:20: warning: symbol '__mptr' shadows an earlier one drivers/s390/kvm/kvm_virtio.c:337:20: originally declared here Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/kvm/kvm_virtio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/kvm/kvm_virtio.c b/drivers/s390/kvm/kvm_virtio.c
index 83c69fbc43fc..3c2c923d5c0a 100644
--- a/drivers/s390/kvm/kvm_virtio.c
+++ b/drivers/s390/kvm/kvm_virtio.c
@@ -334,10 +334,10 @@ static void scan_devices(void)
334 */ 334 */
335static int match_desc(struct device *dev, void *data) 335static int match_desc(struct device *dev, void *data)
336{ 336{
337 if ((ulong)to_kvmdev(dev_to_virtio(dev))->desc == (ulong)data) 337 struct virtio_device *vdev = dev_to_virtio(dev);
338 return 1; 338 struct kvm_device *kdev = to_kvmdev(vdev);
339 339
340 return 0; 340 return kdev->desc == data;
341} 341}
342 342
343/* 343/*