[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202509060307.JubgnLhc-lkp@intel.com>
Date: Sat, 6 Sep 2025 03:19:36 +0800
From: kernel test robot <lkp@...el.com>
To: Krzysztof Kozlowski <krzk@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.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: c8ed9b5c02a5ceb3d8244f3862a7e64cf0b5648e
commit: 9fe58ecd1ed8162a96447fe6fbcbfb2f74be0b54 mux: mmio: Fix missing CONFIG_REGMAP_MMIO
date: 9 weeks ago
config: um-randconfig-r132-20250905 (https://download.01.org/0day-ci/archive/20250906/202509060307.JubgnLhc-lkp@intel.com/config)
compiler: gcc-13 (Debian 13.3.0-16) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250906/202509060307.JubgnLhc-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/202509060307.JubgnLhc-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
a0c74f6c9ea9ce Mark Brown 2023-07-18 85
a0c74f6c9ea9ce Mark Brown 2023-07-18 86
a0c74f6c9ea9ce Mark Brown 2023-07-18 87 static inline void __iomem *
a0c74f6c9ea9ce Mark Brown 2023-07-18 88 devm_platform_ioremap_resource(struct platform_device *pdev,
a0c74f6c9ea9ce Mark Brown 2023-07-18 89 unsigned int index)
a0c74f6c9ea9ce Mark Brown 2023-07-18 90 {
a0c74f6c9ea9ce Mark Brown 2023-07-18 @91 return ERR_PTR(-EINVAL);
a0c74f6c9ea9ce Mark Brown 2023-07-18 92 }
a0c74f6c9ea9ce 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