Commit c55b31a1 authored by Rebecca Mckeever's avatar Rebecca Mckeever Committed by Mike Rapoport

memblock tests: set memblock_debug to enable memblock_dbg() messages

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: default avatarRebecca Mckeever <remckee0@gmail.com>
Signed-off-by: default avatarMike Rapoport <rppt@linux.ibm.com>
Link: https://lore.kernel.org/r/aee4200cce1c09992ed055006a81fde1b6b5b567.1656907314.git.remckee0@gmail.com
parent 76586c00
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
#ifndef _MM_INTERNAL_H #ifndef _MM_INTERNAL_H
#define _MM_INTERNAL_H #define _MM_INTERNAL_H
/*
* Enable memblock_dbg() messages
*/
#ifdef MEMBLOCK_DEBUG
static int memblock_debug = 1;
#endif
struct page {}; struct page {};
void memblock_free_pages(struct page *page, unsigned long pfn, void memblock_free_pages(struct page *page, unsigned long pfn,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment