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