internal.h 417 B

1234567891011121314151617181920212223
  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. #endif