Skip to content

Commit

Permalink
enic: Fix sparse warning in vnic_devcmd_init().
Browse files Browse the repository at this point in the history
>> 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>
  • Loading branch information
David S. Miller committed Aug 18, 2015
1 parent ecf842f commit f376d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/cisco/enic/vnic_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f376d4a

Please sign in to comment.