summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-25 17:27:19 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-25 17:27:19 -1000
commit394023fbe34fccec5d4db2576169d21e14c8d3d4 (patch)
treec5ca434c2b35eb7c690365fa6455fa56a2deeae2 /tools/include
parent390febb5805d3bb830402679f277f1d5f309e6bc (diff)
parent7933ad3f669670ca5f5f13de2b5cb0f92b91abf5 (diff)
Merge tag 'memblock-v7.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mm/memblock
Pull memblock updates from Mike Rapoport: "Performance improvement: - Use binary search in memblock_add_range() and memblock_isolate_range() Cleanups: - Several simplifications in memblock and mm_init that remove redundant code - After rework of sparsemem buffer preallocation, memmap_alloc() does not require exact_nid parameter. Remove that parameter, drop now unused memblock_alloc_exact_nid_raw() and adjust memblock tests accordingly memblock test updates: - add coverage for lowmem allocations - fix 32-bit build warnings" * tag 'memblock-v7.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mm/memblock: memblock: use binary search to locate candidate regions memblock: drop for_each_memblock_type() and open code its users memblock: Remove unused memblock_alloc_exact_nid_raw() memblock tests: Move exact nid tests to memblock_alloc_range_nid() mm: Remove unused exact_nid parameter from memmap_alloc() memblock: initialize the region merge end index tools: use __pa() in virt_to_phys() memblock tests: zero-extend simulated memory addresses memblock tests: use physical addresses for region removal memblock: reject non-page-aligned reserve_mem regions memblock tests: cover allocations below the low address limit memblock tests: model the low allocation limit within dummy memory mm/mm_init: remove zone_absent_pages_in_node() memblock: remove conditional return with no effect memblock: simplify reset_all_zones_managed_pages()
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/linux/mm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/include/linux/mm.h b/tools/include/linux/mm.h
index d586a510e6e1..bce7616cd7c4 100644
--- a/tools/include/linux/mm.h
+++ b/tools/include/linux/mm.h
@@ -30,7 +30,7 @@ static inline void *phys_to_virt(unsigned long address)
#define virt_to_phys virt_to_phys
static inline phys_addr_t virt_to_phys(volatile void *address)
{
- return (phys_addr_t)address;
+ return __pa(address);
}
static inline void totalram_pages_add(long count)