mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 10:07:52 +00:00
Make accept_memory() and range_contains_unaccepted_memory() take 'start' and 'size' arguments instead of 'start' and 'end'. Remove accept_page(), replacing it with direct calls to accept_memory(). The accept_page() name is going to be used for a different function. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Kirill A. Shutemov <[email protected]> Suggested-by: David Hildenbrand <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Mike Rapoport (Microsoft) <[email protected]> Cc: Tom Lendacky <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
28 lines
494 B
C
28 lines
494 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef _MM_INTERNAL_H
|
|
#define _MM_INTERNAL_H
|
|
|
|
/*
|
|
* Enable memblock_dbg() messages
|
|
*/
|
|
#ifdef MEMBLOCK_DEBUG
|
|
static int memblock_debug = 1;
|
|
#endif
|
|
|
|
#define pr_warn_ratelimited(fmt, ...) printf(fmt, ##__VA_ARGS__)
|
|
|
|
bool mirrored_kernelcore = false;
|
|
|
|
struct page {};
|
|
|
|
void memblock_free_pages(struct page *page, unsigned long pfn,
|
|
unsigned int order)
|
|
{
|
|
}
|
|
|
|
static inline void accept_memory(phys_addr_t start, unsigned long size)
|
|
{
|
|
}
|
|
|
|
#endif
|