resource-make-alloc_free_mem_region-works-for-iomem_resource.patch removed from -mm tree
The quilt patch titled
Subject: resource: make alloc_free_mem_region() works for iomem_resource
has been removed from the -mm tree. Its filename was
resource-make-alloc_free_mem_region-works-for-iomem_resource.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Huang Ying <[email protected]>
Subject: resource: make alloc_free_mem_region() works for iomem_resource
Date: Fri, 6 Sep 2024 11:07:12 +0800
During developing a kunit test case for region_intersects(), some fake resources need to be inserted into iomem_resource. To do that, a resource hole needs to be found first in iomem_resource.
However, alloc_free_mem_region() cannot work for iomem_resource now. Because the start address to check cannot be 0 to detect address wrapping 0 in gfr_continue(), while iomem_resource.start == 0. To make alloc_free_mem_region() works for iomem_resource, gfr_start() is changed to avoid to return 0 even if base->start == 0. We don't need to check 0 as start address.
---
kernel/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/resource.c renamed from kernel/resource.c~resource-make-alloc_free_mem_region-works-for-iomem_resource +1 -1
@@ -1830,7 +1830,7 @@ static resource_size_t gfr_start(structreturn end - size +1 ; } -return ALIGN (base->start, align); +return ALIGN (max (base->start, align), align); } static bool gfr_continue(struct resource *base, resource_size_t addr,
_
Patches currently in -mm which might be from [email protected] are