Skip to content

Commit

Permalink
riscv: remove free_initrd_mem
Browse files Browse the repository at this point in the history
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 <hch@lst.de>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
  • Loading branch information
Christoph Hellwig authored and paul-walmsley-sifive committed Jul 4, 2019
1 parent df7e905 commit 2ebca1c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/riscv/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,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)
Expand Down

0 comments on commit 2ebca1c

Please sign in to comment.