Skip to contentSkip to conversation

mm/memblock: Add MEMBLOCK_RSRV_NOINIT into flagname[] array

PATCH Applied Anshuman Khandual 2 participants 2 messages Feb 9, 2024 – Feb 11, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/memblock: Add MEMBLOCK_RSRV_NOINIT into flagname[] array

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.

---
This applies on v6.8-rc3

 mm/memblock.c | 1 +
 1 file changed, 1 insertion(+)
mm/memblock.c +1 -0
index 4dcb2ee35eca..d9f4b82cbffe 100644
@@ -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)
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Anshuman Khandual

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.

Fixes 77e6c43e137c ("memblock: introduce MEMBLOCK_RSRV_NOINIT flag")
Quoted 21 lines

---
This applies on v6.8-rc3

 mm/memblock.c | 1 +
 1 file changed, 1 insertion(+)
mm/memblock.c +1 -0
index 4dcb2ee35eca..d9f4b82cbffe 100644
@@ -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)
Signature · 1 line
2.25.1
Signature · 2 lines
Sincerely yours,
Mike.