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

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


On Tue, Jun 04, 2024 at 02:31:46PM -0700, Chia-I Wu wrote:
> This mainly tests that find_next_iomem_res() does not miss resources.

In the Subject: walk_iomem_res_desc()

> Signed-off-by: Chia-I Wu <olvaffe@xxxxxxxxx>

...

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

We have respective macros. Use them.

--
With Best Regards,
Andy Shevchenko