2022-02-02 12:03:09 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#ifndef _MM_INTERNAL_H
|
|
|
|
#define _MM_INTERNAL_H
|
|
|
|
|
2022-07-03 23:06:57 -05:00
|
|
|
/*
|
|
|
|
* Enable memblock_dbg() messages
|
|
|
|
*/
|
|
|
|
#ifdef MEMBLOCK_DEBUG
|
|
|
|
static int memblock_debug = 1;
|
|
|
|
#endif
|
|
|
|
|
2022-07-27 18:07:33 +08:00
|
|
|
#define pr_warn_ratelimited(fmt, ...) printf(fmt, ##__VA_ARGS__)
|
|
|
|
|
|
|
|
bool mirrored_kernelcore = false;
|
|
|
|
|
2022-02-02 12:03:09 +01:00
|
|
|
struct page {};
|
|
|
|
|
|
|
|
void memblock_free_pages(struct page *page, unsigned long pfn,
|
|
|
|
unsigned int order)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-08-09 14:48:51 +03:00
|
|
|
static inline void accept_memory(phys_addr_t start, unsigned long size)
|
2023-09-11 22:32:56 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2025-04-07 10:43:51 +09:00
|
|
|
static inline unsigned long free_reserved_area(void *start, void *end,
|
|
|
|
int poison, const char *s)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-02-02 12:03:09 +01:00
|
|
|
#endif
|