Commit f376d4ad authored by David S. Miller's avatar David S. Miller

enic: Fix sparse warning in vnic_devcmd_init().

>> 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: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ecf842f6
...@@ -1089,8 +1089,8 @@ EXPORT_SYMBOL(vnic_dev_get_pdev); ...@@ -1089,8 +1089,8 @@ EXPORT_SYMBOL(vnic_dev_get_pdev);
int vnic_devcmd_init(struct vnic_dev *vdev) int vnic_devcmd_init(struct vnic_dev *vdev)
{ {
void __iomem *res;
int err; int err;
void *res;
res = vnic_dev_get_res(vdev, RES_TYPE_DEVCMD2, 0); res = vnic_dev_get_res(vdev, RES_TYPE_DEVCMD2, 0);
if (res) { if (res) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment