Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
libnvdimm/e820: Fix build error without MEMORY_HOTPLUG
If MEMORY_HOTPLUG is n, build fails:
drivers/nvdimm/e820.c: In function ‘e820_register_one’:
drivers/nvdimm/e820.c:24:12: error: implicit declaration of function ‘phys_to_target_node’; did you mean ‘set_page_node’? [-Werror=implicit-function-declaration]
int nid = phys_to_target_node(res->start);
^~~~~~~~~~~~~~~~~~~
set_page_node
Fixes: 7b27a86 ("libnvdimm/e820: Retrieve and populate correct 'target_node' info")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>- Loading branch information