From: David S. Miller Date: Tue, 18 Aug 2015 04:24:59 +0000 (-0700) Subject: enic: Fix sparse warning in vnic_devcmd_init(). X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f376d4adfdd2d860aea3e99aa86e98324621ece7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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] * Reported-by: kbuild test robot Signed-off-by: David S. Miller --- 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) {