resource-replace-open-coded-resource_overlaps.patch removed from -mm tree
The quilt patch titled
Subject: resource: replace open coded resource_overlaps()
has been removed from the -mm tree. Its filename was
resource-replace-open-coded-resource_overlaps.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: Andy Shevchenko <[email protected]>
Subject: resource: replace open coded resource_overlaps()
Date: Tue, 15 Sep 2026 10:53:53 +0200
In iomem_map_sanity_check() a piece of code resembles the content of the resource_overlaps(). Replace open coded piece with the call to the existing helper.
Signed-off-by Andy Shevchenko <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
Reviewed-by Bradley Morgan <[email protected]>
Cc Bjorn Helgaas <[email protected]>
---
kernel/resource.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-)
kernel/resource.c renamed from kernel/resource.c~resource-replace-open-coded-resource_overlaps +6 -8
@@ -1833,7 +1833,7 @@ __setup("reserve=", reserve_setup);*/ int iomem_map_sanity_check (resource_size_t addr,unsigned long size) { -resource_size_t end = addr + size -1 ; +struct resource mem =DEFINE_RES_MEM (addr, size);struct resource *p;int err =0 ;
@@ -1843,12 +1843,10 @@ int iomem_map_sanity_check(resource_size* We can probably skip the resources without * IORESOURCE_IO attribute? */ -if (p->start > end) +if (!resource_overlaps (p, &mem))continue ; -if (p->end < addr) -continue ; -if (PFN_DOWN (p->start) <=PFN_DOWN (addr) && -PFN_DOWN (p->end) >=PFN_DOWN (end)) +if (PFN_DOWN (p->start) <=PFN_DOWN (mem.start) && +PFN_DOWN (p->end) >=PFN_DOWN (mem.end))continue ;/* * if a resource is "BUSY", it's not a hardware resource
@@ -1859,8 +1857,8 @@ int iomem_map_sanity_check(resource_sizeif (p->flags &IORESOURCE_BUSY )continue ; -pr_debug ("resource sanity check: requesting [mem %pa-%pa], which spans more than %s %pR\n" , - &addr, &end, p->name, p); +pr_debug ("resource sanity check: requesting %pR, which spans more than %s %pR\n" , + &mem, p->name, p); err =-1 ;break ; }
_
Patches currently in -mm which might be from [email protected] are