riscv: remove free_initrd_mem
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
@@ -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
Quoted 30 lines · Christoph Hellwig
The RISC-V
free_initrd_memis identical to the default one, except that it doesn't poison the freed memory. Remove it so that the default implementations gets used instead.Signed-off-by Christoph Hellwig <[email protected]>--- arch/riscv/mm/init.c | 5 ----- 1 file changed, 5 deletions(-)arch/riscv/mm/init.c +0
-6@@ -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
Quoted 15 lines · Christoph Hellwig
The RISC-V
free_initrd_memis identical to the default one, except that it doesn't poison the freed memory. Remove it so that the default implementations gets used instead.Signed-off-by Christoph Hellwig <[email protected]>--- arch/riscv/mm/init.c | 5 ----- 1 file changed, 5 deletions(-)arch/riscv/mm/init.c +0
-0@@ -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
-5initrd_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
Paul, are you going to pick this one up?
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 5 lines · Christoph Hellwig
The RISC-V
free_initrd_memis identical to the default one, except that it doesn't poison the freed memory. Remove it so that the default implementations gets used instead.Signed-off-by Christoph Hellwig <[email protected]>
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