Skip to contentSkip to conversation

riscv: remove free_initrd_mem

PATCH In review Christoph Hellwig 4 participants 5 messages May 20, 2019 – Jul 4, 2019 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: remove free_initrd_mem

The RISC-V free_initrd_mem is identical to the default one, except that it doesn't poison the freed memory. Remove it so that the default implementations gets used instead.

---
 arch/riscv/mm/init.c | 5 -----
 1 file changed, 5 deletions(-)
arch/riscv/mm/init.c +0 -5
index 8bf6f9c2d48c..b2341979d3eb 100644
@@ -92,11 +92,6 @@ static void __init setup_initrd(void)
 	initrd_start = 0;
 	initrd_end = 0;
 }
-
-void __init free_initrd_mem(unsigned long start, unsigned long end)
-{
-	free_reserved_area((void *)start, (void *)end, -1, "initrd");
-}
 #endif /* CONFIG_BLK_DEV_INITRD */
 
 void __init setup_bootmem(void)
Signature · 7 lines
2.20.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Reviewed-by on v1 1/1
#1 lore raw
Quoted 30 lines · Christoph Hellwig

The RISC-V free_initrd_mem is identical to the default one, except that it doesn't poison the freed memory. Remove it so that the default implementations gets used instead.

---
 arch/riscv/mm/init.c | 5 -----
 1 file changed, 5 deletions(-)
arch/riscv/mm/init.c +0 -6
index 8bf6f9c2d48c..b2341979d3eb 100644
@@ -92,11 +92,6 @@ static void __init setup_initrd(void)
        initrd_start = 0;
        initrd_end = 0;
 }
-
-void __init free_initrd_mem(unsigned long start, unsigned long end)
-{
-       free_reserved_area((void *)start, (void *)end, -1, "initrd");
-}
 #endif /* CONFIG_BLK_DEV_INITRD */
 
 void __init setup_bootmem(void)
--

2.20.1

Quoted 4 lines

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

LGTM.

Regards,
Anup

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

Reviewed-by on v1 1/1
#2 lore raw
In reply to Christoph Hellwig
Quoted 15 lines · Christoph Hellwig

The RISC-V free_initrd_mem is identical to the default one, except that it doesn't poison the freed memory. Remove it so that the default implementations gets used instead.

---
 arch/riscv/mm/init.c | 5 -----
 1 file changed, 5 deletions(-)
arch/riscv/mm/init.c +0 -0
index 8bf6f9c2d48c..b2341979d3eb 100644
@@ -92,11 +92,6 @@ static void __init setup_initrd(void)
 	initrd_start = 0;

arch/riscv/mm/init.c static void __init setup_initrd(void) · line 97

Quoted 10 lines
arch/riscv/mm/init.c +0 -5
 	initrd_end = 0;
 }
-
-void __init free_initrd_mem(unsigned long start, unsigned long end)
-{
-	free_reserved_area((void *)start, (void *)end, -1, "initrd");
-}
 #endif /* CONFIG_BLK_DEV_INITRD */
 
 void __init setup_bootmem(void)

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

#4 lore raw
In reply to Christoph Hellwig
Quoted 5 lines · Christoph Hellwig

The RISC-V free_initrd_mem is identical to the default one, except that it doesn't poison the freed memory. Remove it so that the default implementations gets used instead.

Thanks Christoph, queued for v5.3 with Anup and Palmer's Reviewed-by:s.

- Paul

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv