internal.h 494 B

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