From: Rebecca Mckeever Date: Mon, 4 Jul 2022 04:06:57 +0000 (-0500) Subject: memblock tests: set memblock_debug to enable memblock_dbg() messages X-Git-Tag: v6.0-rc1~51^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c55b31a124a68171e5915b1036ca42d8a683eca2;p=thirdparty%2Flinux.git 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: Rebecca Mckeever Signed-off-by: Mike Rapoport Link: https://lore.kernel.org/r/aee4200cce1c09992ed055006a81fde1b6b5b567.1656907314.git.remckee0@gmail.com --- diff --git a/tools/testing/memblock/internal.h b/tools/testing/memblock/internal.h index 94b52a8718b55..c2a492c05e0c6 100644 --- a/tools/testing/memblock/internal.h +++ b/tools/testing/memblock/internal.h @@ -2,6 +2,13 @@ #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,