* [android-common:android16-6.12-2026-09 1/1] drivers/vfio/platform/vfio_platform_common.c:778:31: sparse: sparse: incorrect type in return expression (different address spaces)
@ 2026-11-07 4:38 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-07 4:38 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android16-6.12-2026-09
head: c0f000c5d6675d24f3ac8c0aa429fe8fad9e5d7a
commit: 47f17fcb3a7828602729e173d05778d160df4026 [1/1] ANDROID: vfio/platform: Expose reset handler registration
config: arm64-randconfig-r2310-20261107 (https://download.01.org/0day-ci/archive/20261107/202611070532.90M8GCcp-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 7.5.0
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261107/202611070532.90M8GCcp-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611070532.90M8GCcp-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/vfio/platform/vfio_platform_common.c:778:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@
drivers/vfio/platform/vfio_platform_common.c:778:31: sparse: expected void [noderef] __iomem *
drivers/vfio/platform/vfio_platform_common.c:778:31: sparse: got void *
drivers/vfio/platform/vfio_platform_common.c:782:31: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@
drivers/vfio/platform/vfio_platform_common.c:782:31: sparse: expected void [noderef] __iomem *
drivers/vfio/platform/vfio_platform_common.c:782:31: sparse: got void *
drivers/vfio/platform/vfio_platform_common.c:787:39: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@
drivers/vfio/platform/vfio_platform_common.c:787:39: sparse: expected void [noderef] __iomem *
drivers/vfio/platform/vfio_platform_common.c:787:39: sparse: got void *
vim +778 drivers/vfio/platform/vfio_platform_common.c
769
770 void __iomem *vfio_platform_region_ioaddr(struct device *dev,
771 unsigned int index,
772 resource_size_t *size)
773 {
774 struct vfio_platform_device *vdev = dev_get_drvdata(dev);
775 struct vfio_platform_region *reg;
776
777 if (!vdev || index >= vdev->num_regions)
> 778 return ERR_PTR(-EINVAL);
779
780 reg = &vdev->regions[index];
781 if (!(reg->type & VFIO_PLATFORM_REGION_TYPE_MMIO))
782 return ERR_PTR(-EINVAL);
783
784 if (!reg->ioaddr) {
785 reg->ioaddr = ioremap(reg->addr, reg->size);
786 if (!reg->ioaddr)
787 return ERR_PTR(-ENOMEM);
788 }
789
790 if (size)
791 *size = reg->size;
792
793 return reg->ioaddr;
794 }
795 EXPORT_SYMBOL_GPL(vfio_platform_region_ioaddr);
796
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-07 4:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-07 4:38 [android-common:android16-6.12-2026-09 1/1] drivers/vfio/platform/vfio_platform_common.c:778:31: sparse: sparse: incorrect type in return expression (different address spaces) kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.