1 // SPDX-License-Identifier: GPL-2.0-or-later 2 3 #include <linux/printk.h> 4 #include <linux/numa.h> 5 6 /* Stub functions: */ 7 8 #ifndef memory_add_physaddr_to_nid 9 int memory_add_physaddr_to_nid(u64 start) 10 { 11 pr_info_once("Unknown online node for memory at 0x%llx, assuming node 0\n", 12 start); 13 return 0; 14 } 15 EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid); 16 #endif 17 18 #ifndef phys_to_target_node 19 int phys_to_target_node(u64 start) 20 { 21 pr_info_once("Unknown target node for memory at 0x%llx, assuming node 0\n", 22 start); 23 return 0; 24 } 25 EXPORT_SYMBOL_GPL(phys_to_target_node); 26 #endif 27