Skip to content

Commit 2ebca1c

Browse files
Christoph Hellwigpaul-walmsley-sifive
authored andcommitted
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. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Anup Patel <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Signed-off-by: Paul Walmsley <[email protected]>
1 parent df7e905 commit 2ebca1c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/riscv/mm/init.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ static void __init setup_initrd(void)
8686
initrd_start = 0;
8787
initrd_end = 0;
8888
}
89-
90-
void __init free_initrd_mem(unsigned long start, unsigned long end)
91-
{
92-
free_reserved_area((void *)start, (void *)end, -1, "initrd");
93-
}
9489
#endif /* CONFIG_BLK_DEV_INITRD */
9590

9691
void __init setup_bootmem(void)

0 commit comments

Comments
 (0)