[PATCH v6 14/16] powerpc: Switch to generic free_initrd_mem.

Shea Levy shea at shealevy.com
Sun Apr 1 07:59:28 PDT 2018

The first patch in this series added a weakly-defined generic
implementation, which is functionally identical to the
architecture-specific one removed here.

Series boot-tested on RISC-V (which now uses the generic
implementation) and x86_64 (which doesn't).

Signed-off-by: Shea Levy <shea at shealevy.com>
 arch/powerpc/mm/mem.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index fe8c61149fb8..e85b2a3cd264 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -404,13 +404,6 @@ void free_initmem(void)
-void __init free_initrd_mem(unsigned long start, unsigned long end)
-	free_reserved_area((void *)start, (void *)end, -1, "initrd");
  * This is called when a page has been modified by the kernel.
  * It just marks the page as not i-cache clean.  We do the i-cache

More information about the linux-riscv mailing list