The patch titled Subject: mm-memblock-introduce-memblock_search_pfn_regions-fix has been added to the -mm tree. Its filename is mm-memblock-introduce-memblock_search_pfn_regions-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-memblock-introduce-memblock_search_pfn_regions-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-memblock-introduce-memblock_search_pfn_regions-fix.patch 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 and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm-memblock-introduce-memblock_search_pfn_regions-fix simplify code Cc: Jia He <jia.he@xxxxxxxxxxxxxxxx> Cc: Pasha Tatashin <Pavel.Tatashin@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memblock.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/mm/memblock.c~mm-memblock-introduce-memblock_search_pfn_regions-fix +++ a/mm/memblock.c @@ -1772,10 +1772,7 @@ static int __init_memblock memblock_sear /* search memblock with the input pfn, return the region idx */ int __init_memblock memblock_search_pfn_regions(unsigned long pfn) { - struct memblock_type *type = &memblock.memory; - int mid = memblock_search(type, PFN_PHYS(pfn)); - - return mid; + return memblock_search(&memblock.memory, PFN_PHYS(pfn)); } bool __init memblock_is_reserved(phys_addr_t addr) _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are ocfs2-return-erofs-when-filesystem-becomes-read-only-checkpatch-fixes.patch tools-modifying-page-types-to-include-shared-map-counts-checkpatch-fixes.patch tools-modifying-page-types-to-include-shared-map-counts-fix-checkpatch-fixes.patch tools-adding-support-for-idle-page-tracking-to-tool-fix.patch mpage-add-argument-structure-for-do_mpage_readpage-checkpatch-fixes.patch mm-drop-vm_bug_on-from-__get_free_pages-fix.patch mm-list_lruc-fold-__list_lru_count_one-into-its-caller.patch mm-fadvise-fix-signed-overflow-ubsan-complaint-fix.patch mm-sparsemem-defer-the-ms-section_mem_map-clearing-fix.patch mm-sparse-optimize-memmap-allocation-during-sparse_init-checkpatch-fixes.patch mm-memblock-introduce-memblock_search_pfn_regions-fix.patch mm-sparse-abstract-sparse-buffer-allocations-fix.patch mm-sparse-abstract-sparse-buffer-allocations-fix-fix.patch mm-soft-offline-close-the-race-against-page-allocation-fix.patch mm-oom-distinguish-blockable-mode-for-mmu-notifiers-checkpatch-fixes.patch mm-oom-distinguish-blockable-mode-for-mmu-notifiers-fix.patch mm-zero-out-the-vma-in-vma_init.patch mm-calculate-deferred-pages-after-skipping-mirrored-memory-fix.patch list_lru-prefetch-neighboring-list-entries-before-acquiring-lock-fix.patch