[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202506141507.mLBNmMsd-lkp@intel.com>
Date: Sat, 14 Jun 2025 15:36:19 +0800
From: kernel test robot <lkp@...el.com>
To: Andrew Davis <afd@...com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Krzysztof Kozlowski <krzk@...nel.org>
Subject: include/linux/platform_device.h:91:23: sparse: sparse: incorrect
type in return expression (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4774cfe3543abb8ee98089f535e28ebfd45b975a
commit: 61de83fd8256e185588670d3cf0bccc3e913819c mux: mmio: Do not use syscon helper to build regmap
date: 6 weeks ago
config: s390-randconfig-r112-20250614 (https://download.01.org/0day-ci/archive/20250614/202506141507.mLBNmMsd-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 8.5.0
reproduce: (https://download.01.org/0day-ci/archive/20250614/202506141507.mLBNmMsd-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506141507.mLBNmMsd-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/mux/mmio.c: note: in included file:
>> include/linux/platform_device.h:91:23: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@
include/linux/platform_device.h:91:23: sparse: expected void [noderef] __iomem *
include/linux/platform_device.h:91:23: sparse: got void *
vim +91 include/linux/platform_device.h
a0c74f6c9ea9ceb Mark Brown 2023-07-18 85
a0c74f6c9ea9ceb Mark Brown 2023-07-18 86
a0c74f6c9ea9ceb Mark Brown 2023-07-18 87 static inline void __iomem *
a0c74f6c9ea9ceb Mark Brown 2023-07-18 88 devm_platform_ioremap_resource(struct platform_device *pdev,
a0c74f6c9ea9ceb Mark Brown 2023-07-18 89 unsigned int index)
a0c74f6c9ea9ceb Mark Brown 2023-07-18 90 {
a0c74f6c9ea9ceb Mark Brown 2023-07-18 @91 return ERR_PTR(-EINVAL);
a0c74f6c9ea9ceb Mark Brown 2023-07-18 92 }
a0c74f6c9ea9ceb Mark Brown 2023-07-18 93
:::::: The code at line 91 was first introduced by commit
:::::: a0c74f6c9ea9cebd7a8f38142bf87e7c12c2905d platform: Provide stubs for !HAS_IOMEM builds
:::::: TO: Mark Brown <broonie@...nel.org>
:::::: CC: Mark Brown <broonie@...nel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists