The patch titled Subject: devres: show which resource was invalid in __devm_ioremap_resource() has been added to the -mm mm-nonmm-unstable branch. Its filename is devres-show-which-resource-was-invalid-in-__devm_ioremap_resource.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/devres-show-which-resource-was-invalid-in-__devm_ioremap_resource.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Ben Dooks <ben.dooks@xxxxxxxxxxxxxxx> Subject: devres: show which resource was invalid in __devm_ioremap_resource() Date: Wed, 21 Jun 2023 17:30:50 +0100 The other error prints in this call show the resource which wsan't valid, so add this to the first print when it checks for basic validity of the resource. Link: https://lkml.kernel.org/r/20230621163050.477668-1-ben.dooks@xxxxxxxxxxxxxxx Signed-off-by: Ben Dooks <ben.dooks@xxxxxxxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/devres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/lib/devres.c~devres-show-which-resource-was-invalid-in-__devm_ioremap_resource +++ a/lib/devres.c @@ -129,7 +129,7 @@ __devm_ioremap_resource(struct device *d BUG_ON(!dev); if (!res || resource_type(res) != IORESOURCE_MEM) { - dev_err(dev, "invalid resource\n"); + dev_err(dev, "invalid resource %pR\n", res); return IOMEM_ERR_PTR(-EINVAL); } _ Patches currently in -mm which might be from ben.dooks@xxxxxxxxxxxxxxx are devres-show-which-resource-was-invalid-in-__devm_ioremap_resource.patch