Re: [PATCH] resource: add a basic test for walk_iomem_res_desc

From: Andy Shevchenko
Date: Tue Jun 04 2024 - 17:46:15 EST


On Wed, Jun 05, 2024 at 12:38:27AM +0300, Andy Shevchenko wrote:
> On Tue, Jun 04, 2024 at 02:31:46PM -0700, Chia-I Wu wrote:

...

> > + res[2] = (struct resource){
> > + .start = offset,
> > + .end = offset + SZ_1K - 1,
> > + .name = "NESTED",
> > + };
>
> We have respective macros. Use them.

And use explicitly hardocded start in all of them instead of coding += for
offset variable. For the test cases is better when data is hardcoded, esp.
when it's an expected result (just to mention, here it seems an input data).

--
With Best Regards,
Andy Shevchenko