1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 #ifndef _MM_INTERNAL_H 3 #define _MM_INTERNAL_H 4 5 /* 6 * Enable memblock_dbg() messages 7 */ 8 #ifdef MEMBLOCK_DEBUG 9 static int memblock_debug = 1; 10 #endif 11 12 #define pr_warn_ratelimited(fmt, ...) printf(fmt, ##__VA_ARGS__) 13 14 bool mirrored_kernelcore = false; 15 16 struct page {}; 17 18 void __free_pages_core(struct page *page, unsigned int order) 19 { 20 } 21 22 void memblock_free_pages(struct page *page, unsigned long pfn, 23 unsigned int order) 24 { 25 } 26 27 #endif 28