Re: [PATCH] resource: fix false warning in __request_region()

From: Andrew Morton
Date: Sat Jul 19 2025 - 19:31:54 EST


On Sat, 19 Jul 2025 20:26:04 +0900 Akinobu Mita <akinobu.mita@xxxxxxxxx> wrote:

> A warning is raised when __request_region() detects a conflict with a
> resource whose resource.desc is IORES_DESC_DEVICE_PRIVATE_MEMORY.
>
> But this warning is only valid for iomem_resources.
> The hmem device resource uses resource.desc as the numa node id, which can
> cause spurious warnings.
>
> This change fixes this by restricting the warning to only iomem_resource.
> This also adds a missing new line to the warning message.

What are the circumstance which cause this warning? Are real world
users hitting this? If so, should we backport this fix into earlier
kernels?