Re: [PATCH v3 01/20] driver core: Split devres APIs to device/devres.h

kernel test robot
2025-02-05T16:27:13Z

Hi Raag,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 2014c95afecee3e76ca4a56956a936e23283f05b]

url: https://github.com/intel-lab-lkp/linux/commits/Raag-Jadav/driver-core-Split-devres-APIs-to-device-devres-h/20250203-161554
base: 2014c95afecee3e76ca4a56956a936e23283f05b
patch link: https://lore.kernel.org/r/20250203080902.1864382-2-raag.jadav%40intel.com
patch subject: [PATCH v3 01/20] driver core: Split devres APIs to device/devres.h
config: um-randconfig-r112-20250205 (https://download.01.org/0day-ci/archive/20250206/202502060025.XJwUub6I-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 355d0b186f178668b103068537e517f3d52ad639)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250206/202502060025.XJwUub6I-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/202502060025.XJwUub6I-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
drivers/net/pcs/pcs-xpcs-plat.c: note: in included file (through include/linux/device.h):
>> include/linux/device/devres.h:106:23: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] __iomem * @@ got void * @@
include/linux/device/devres.h:106:23: sparse: expected void [noderef] __iomem *
include/linux/device/devres.h:106:23: sparse: got void *

vim +106 include/linux/device/devres.h

102
103 static inline
104 void __iomem *devm_ioremap_resource(struct device *dev, const struct resource *res)
105 {
> 106 return ERR_PTR(-EINVAL);
107 }
108

--
0-DAY CI Kernel Test Service