diff options
| author | Kaitao Cheng <chengkaitao@kylinos.cn> | 2026-09-19 21:53:27 +0800 |
|---|---|---|
| committer | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-10-13 12:45:55 +0300 |
| commit | ea27be9f7ce90a05e779d20b60969ce2a9834f77 (patch) | |
| tree | dad024c6c9831862ea04509c1ddf3f21389e7693 /include/linux | |
| parent | fba3e86fb848f79c4573243affcd7d79d378958d (diff) | |
| download | linux-ea27be9f7ce90a05e779d20b60969ce2a9834f77.tar.gz linux-ea27be9f7ce90a05e779d20b60969ce2a9834f77.zip | |
memblock: Remove unused memblock_alloc_exact_nid_raw()
memmap_alloc() was the only in-kernel caller of
memblock_alloc_exact_nid_raw(). After removing its unused exact_nid
argument, the function no longer has any callers.
Remove memblock_alloc_exact_nid_raw() and its declaration. The remaining
callers of memblock_alloc_internal() always allow allocation to fall back
to other NUMA nodes, so remove its exact_nid argument and pass false
directly to memblock_alloc_range_nid().
Suggested-by: Lorenzo Stoakes <ljs@kernel.org>
Signed-off-by: Kaitao Cheng <chengkaitao@kylinos.cn>
Link: https://patch.msgid.link/20260919135327.74089-4-kaitao.cheng@linux.dev
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/memblock.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index aa845f488327..01a2dea5aa11 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -412,9 +412,6 @@ static __always_inline phys_addr_t memblock_phys_alloc(phys_addr_t size, MEMBLOCK_ALLOC_ACCESSIBLE); } -void *memblock_alloc_exact_nid_raw(phys_addr_t size, phys_addr_t align, - phys_addr_t min_addr, phys_addr_t max_addr, - int nid); void *memblock_alloc_try_nid_raw(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid); |
