mm/memblock: add MEMBLOCK_RSRV_NOINIT into flagname[] array
authorAnshuman Khandual <anshuman.khandual@arm.com>
Fri, 9 Feb 2024 03:09:12 +0000 (08:39 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 20 Feb 2024 22:20:49 +0000 (14:20 -0800)
The commit 77e6c43e137c ("memblock: introduce MEMBLOCK_RSRV_NOINIT flag")
skipped adding this newly introduced memblock flag into flagname[] array,
thus preventing a correct memblock flags output for applicable memblock
regions.

Link: https://lkml.kernel.org/r/20240209030912.1382251-1-anshuman.khandual@arm.com
Fixes: 77e6c43e137c ("memblock: introduce MEMBLOCK_RSRV_NOINIT flag")
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Mike Rapoport <rppt@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memblock.c

index 4dcb2ee35eca856a43694f4402dea0c1c9bf6d8a..d9f4b82cbffeb8bc5ba3b0be1f9aac5d4337da7d 100644 (file)
@@ -2249,6 +2249,7 @@ static const char * const flagname[] = {
        [ilog2(MEMBLOCK_MIRROR)] = "MIRROR",
        [ilog2(MEMBLOCK_NOMAP)] = "NOMAP",
        [ilog2(MEMBLOCK_DRIVER_MANAGED)] = "DRV_MNG",
+       [ilog2(MEMBLOCK_RSRV_NOINIT)] = "RSV_NIT",
 };
 
 static int memblock_debug_show(struct seq_file *m, void *private)