Re: [PATCH 1/1] x86: Use resource_set_{range,size}() helpers

From: Andy Shevchenko
Date: Wed Apr 16 2025 - 06:24:04 EST


On Wed, Apr 16, 2025 at 01:22:21PM +0300, Andy Shevchenko wrote:
> On Wed, Apr 16, 2025 at 01:13:18PM +0300, Ilpo Järvinen wrote:

...

> > + resource_set_range(res, 0xC0000, SZ_128K);
> > res->flags = IORESOURCE_MEM | IORESOURCE_ROM_SHADOW |
> > IORESOURCE_PCI_FIXED;
>
> I'm wondering why not DEFINE_RES_MEM() in such cases?

For the reference:
1af56ff09e67 ("resource: replace open coded variants of DEFINE_RES_*_NAMED()")

--
With Best Regards,
Andy Shevchenko