linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: shea@shealevy.com (Shea Levy)
To: linux-riscv@lists.infradead.org
Subject: [PATCH v2] riscv: Implement free_initrd_mem.
Date: Tue, 20 Feb 2018 08:57:21 -0500	[thread overview]
Message-ID: <20180220135721.966-1-shea@shealevy.com> (raw)
In-Reply-To: <20180220135043.15411-1-shea@shealevy.com>

v2: Remove incorrect page alignment.

Signed-off-by: Shea Levy <shea@shealevy.com>
---
 arch/riscv/mm/init.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
index c77df8142be2..1b6daa5184e0 100644
--- a/arch/riscv/mm/init.c
+++ b/arch/riscv/mm/init.c
@@ -66,5 +66,6 @@ void free_initmem(void)
 #ifdef CONFIG_BLK_DEV_INITRD
 void free_initrd_mem(unsigned long start, unsigned long end)
 {
+	free_reserved_area((void *)start, (void *)end, -1, "initrd");
 }
 #endif /* CONFIG_BLK_DEV_INITRD */
-- 
2.16.1

  reply	other threads:[~2018-02-20 13:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-20 13:50 [PATCH] riscv: Implement free_initrd_mem Shea Levy
2018-02-20 13:57 ` Shea Levy [this message]
2018-02-23  0:41 ` Palmer Dabbelt
2018-03-08 19:14   ` Shea Levy
2018-03-08 19:35     ` Palmer Dabbelt
2018-03-08 19:47       ` Shea Levy
2018-03-08 20:31         ` Palmer Dabbelt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180220135721.966-1-shea@shealevy.com \
    --to=shea@shealevy.com \
    --cc=linux-riscv@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).