enic: Fix sparse warning in vnic_devcmd_init().
authorDavid S. Miller <davem@davemloft.net>
Tue, 18 Aug 2015 04:24:59 +0000 (21:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Aug 2015 04:24:59 +0000 (21:24 -0700)
>> drivers/net/ethernet/cisco/enic/vnic_dev.c:1095:13: sparse: incorrect type in assignment (different address spaces)
   drivers/net/ethernet/cisco/enic/vnic_dev.c:1095:13:    expected void *res
   drivers/net/ethernet/cisco/enic/vnic_dev.c:1095:13:    got void [noderef] <asn:2>*

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/vnic_dev.c

index ff2da7ece7d496cabbc7a01404891deff36c5610..9f6c641ca66ec17215514d551e66b807dd9c3aad 100644 (file)
@@ -1089,8 +1089,8 @@ EXPORT_SYMBOL(vnic_dev_get_pdev);
 
 int vnic_devcmd_init(struct vnic_dev *vdev)
 {
+       void __iomem *res;
        int err;
-       void *res;
 
        res = vnic_dev_get_res(vdev, RES_TYPE_DEVCMD2, 0);
        if (res) {