diff options
author | David S. Miller <davem@davemloft.net> | 2015-08-17 21:24:59 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-17 21:24:59 -0700 |
commit | f376d4adfdd2d860aea3e99aa86e98324621ece7 (patch) | |
tree | 8838d544b16273ccfdcaf4ad210597b4498cf59b /drivers/net/ethernet/cisco | |
parent | ecf842f65c76f7dc2420a5295dfbf01ec7232320 (diff) | |
download | linux-f376d4adfdd2d860aea3e99aa86e98324621ece7.tar.bz2 |
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: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/vnic_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cisco/enic/vnic_dev.c b/drivers/net/ethernet/cisco/enic/vnic_dev.c index ff2da7ece7d4..9f6c641ca66e 100644 --- a/drivers/net/ethernet/cisco/enic/vnic_dev.c +++ b/drivers/net/ethernet/cisco/enic/vnic_dev.c @@ -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) { |