aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-mpc5200.c
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2025-07-19 11:26:04 +0000
committerAndrew Morton <[email protected]>2025-07-25 00:57:59 +0000
commit91a229bb7ba86b2592c3f18c54b7b2c5e6fe0f95 (patch)
tree14c07f0da9ed1d5971b8ccc707e5449b6a2fe041 /drivers/gpio/gpio-mpc5200.c
parentmm/damon/core: commit damos_quota_goal->nid (diff)
downloadkernel-91a229bb7ba86b2592c3f18c54b7b2c5e6fe0f95.tar.gz
kernel-91a229bb7ba86b2592c3f18c54b7b2c5e6fe0f95.zip
resource: fix false warning in __request_region()
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 warning appeared on a machine with multiple cxl memory expanders. One of the NUMA node id is 6, which is the same as the value of IORES_DESC_DEVICE_PRIVATE_MEMORY. In this environment it was just a spurious warning, but when I saw the warning I suspected a real problem so it's better to fix it. This change fixes this by restricting the warning to only iomem_resource. This also adds a missing new line to the warning message. Link: https://lkml.kernel.org/r/[email protected] Fixes: 7dab174e2e27 ("dax/hmem: Move hmem device registration to dax_hmem.ko") Signed-off-by: Akinobu Mita <[email protected]> Reviewed-by: Dan Williams <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-mpc5200.c')
0 files changed, 0 insertions, 0 deletions