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