mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-08 16:04:49 +00:00
If Memblock simulator was compiled with MEMBLOCK_DEBUG=1, set memblock_debug to 1 so that memblock_dbg() will print debug information when memblock functions are tested in Memblock simulator. Signed-off-by: Rebecca Mckeever <remckee0@gmail.com> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Link: https://lore.kernel.org/r/aee4200cce1c09992ed055006a81fde1b6b5b567.1656907314.git.remckee0@gmail.com
20 lines
313 B
C
20 lines
313 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
|
|
|
|
struct page {};
|
|
|
|
void memblock_free_pages(struct page *page, unsigned long pfn,
|
|
unsigned int order)
|
|
{
|
|
}
|
|
|
|
#endif
|