From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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)
Date: Sat, 07 Nov 2026 05:38:10 +0100 [thread overview]
Message-ID: <202611070532.90M8GCcp-lkp@intel.com> (raw)
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
reply other threads:[~2026-11-07 4:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202611070532.90M8GCcp-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.