Re: [PATCH v3 01/20] driver core: Split devres APIs to device/devres.h
From: Andy Shevchenko
Date: Thu Feb 06 2025 - 10:13:09 EST
On Thu, Feb 06, 2025 at 08:13:12AM +0200, Raag Jadav wrote:
> On Thu, Feb 06, 2025 at 12:27:03AM +0800, kernel test robot wrote:
> > 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
>
> Andy, are we expecting this?
Oh, no, it's sparse error, but easy to fix. Need to have
return IOMEM_ERR_PTR(-EINVAL);
--
With Best Regards,
Andy Shevchenko