Skip to contentSkip to conversation

devres-show-which-resource-was-invalid-in-__devm_ioremap_resource.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Jun 24, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: devres: show which resource was invalid in __devm_ioremap_resource()
has been removed from the -mm tree. Its filename was
devres-show-which-resource-was-invalid-in-__devm_ioremap_resource.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Ben Dooks <[email protected]>
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.

---

 lib/devres.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/devres.c renamed from lib/devres.c~devres-show-which-resource-was-invalid-in-__devm_ioremap_resource +1 -1
@@ -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 [email protected] are