memblock tests: fix undefined reference to `early_pfn_to_nid'
authorWei Yang <richard.weiyang@gmail.com>
Tue, 2 Apr 2024 13:26:59 +0000 (13:26 +0000)
committerMike Rapoport (IBM) <rppt@kernel.org>
Thu, 4 Apr 2024 08:08:32 +0000 (11:08 +0300)
commit7d8ed162e6a92268d4b2b84d364a931216102c8e
tree63216996ec82891b93c6c62ec3b922716ebd9f19
parent39cd87c4eb2b893354f3b850f916353f2658ae6f
memblock tests: fix undefined reference to `early_pfn_to_nid'

commit 6a9531c3a880 ("memblock: fix crash when reserved memory is not
added to memory") introduce the usage of early_pfn_to_nid, which is not
defined in memblock tests.

The original definition of early_pfn_to_nid is defined in mm.h, so let
add this in the corresponding mm.h.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
CC: Yajun Deng <yajun.deng@linux.dev>
CC: Mike Rapoport <rppt@kernel.org>
Link: https://lore.kernel.org/r/20240402132701.29744-2-richard.weiyang@gmail.com
Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
tools/include/linux/mm.h