internal.h 597 B

1234567891011121314151617181920212223242526272829303132
  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(unsigned long pfn, unsigned int order)
  14. {
  15. }
  16. static inline void accept_memory(phys_addr_t start, unsigned long size)
  17. {
  18. }
  19. static inline unsigned long free_reserved_area(void *start, void *end,
  20. int poison, const char *s)
  21. {
  22. return 0;
  23. }
  24. #endif