From: Mike Rapoport <rppt@linux.ibm.com>
To: Anup Patel <Anup.Patel@wdc.com>
Cc: Palmer Dabbelt <palmer@sifive.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Atish Patra <Atish.Patra@wdc.com>,
Paul Walmsley <paul.walmsley@sifive.com>,
Christoph Hellwig <hch@infradead.org>,
"linux-riscv@lists.infradead.org"
<linux-riscv@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v5 1/6] RISC-V: Move free_initrd_mem() to kernel/setup.c
Date: Wed, 13 Feb 2019 11:59:52 +0200 [thread overview]
Message-ID: <20190213095951.GB21478@rapoport-lnx> (raw)
In-Reply-To: <20190213080647.68204-2-anup.patel@wdc.com>
On Wed, Feb 13, 2019 at 08:07:17AM +0000, Anup Patel wrote:
> We move free_initrd_mem() to kernel/setup.c so that all initrd related
> functions are in one place.
A few patches after you move setup_bootmem() that calls setup_initrd() to
mm/init.c. I'd say it makes more sense to move setup_intird() to
mm/init.c.
> Signed-off-by: Anup Patel <anup.patel@wdc.com>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
> ---
> arch/riscv/kernel/setup.c | 4 ++++
> arch/riscv/mm/init.c | 7 -------
> 2 files changed, 4 insertions(+), 7 deletions(-)
>
> diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c
> index 77564310235f..36f60b4d2147 100644
> --- a/arch/riscv/kernel/setup.c
> +++ b/arch/riscv/kernel/setup.c
> @@ -96,6 +96,10 @@ static void __init setup_initrd(void)
> initrd_start = 0;
> initrd_end = 0;
> }
> +
> +void free_initrd_mem(unsigned long start, unsigned long end)
> +{
> +}
> #endif /* CONFIG_BLK_DEV_INITRD */
>
> pgd_t swapper_pg_dir[PTRS_PER_PGD] __page_aligned_bss;
> diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
> index 658ebf645f42..504a5e491f5a 100644
> --- a/arch/riscv/mm/init.c
> +++ b/arch/riscv/mm/init.c
> @@ -14,7 +14,6 @@
> #include <linux/init.h>
> #include <linux/mm.h>
> #include <linux/memblock.h>
> -#include <linux/initrd.h>
> #include <linux/swap.h>
> #include <linux/sizes.h>
>
> @@ -64,9 +63,3 @@ void free_initmem(void)
> {
> free_initmem_default(0);
> }
> -
> -#ifdef CONFIG_BLK_DEV_INITRD
> -void free_initrd_mem(unsigned long start, unsigned long end)
> -{
> -}
> -#endif /* CONFIG_BLK_DEV_INITRD */
> --
> 2.17.1
>
--
Sincerely yours,
Mike.
next prev parent reply other threads:[~2019-02-13 10:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-13 8:07 [PATCH v5 0/6] Fixmap support and MM cleanups Anup Patel
2019-02-13 8:07 ` [PATCH v5 1/6] RISC-V: Move free_initrd_mem() to kernel/setup.c Anup Patel
2019-02-13 9:59 ` Mike Rapoport [this message]
2019-02-13 11:24 ` Anup Patel
2019-02-13 8:07 ` [PATCH v5 2/6] RISC-V: Setup init_mm before parse_early_param() Anup Patel
2019-02-13 8:07 ` [PATCH v5 3/6] RISC-V: Move setup_bootmem() to mm/init.c Anup Patel
2019-02-13 8:07 ` [PATCH v5 4/6] RISC-V: Move setup_vm() " Anup Patel
2019-02-13 8:07 ` [PATCH v5 5/6] RISC-V: Implement compile-time fixed mappings Anup Patel
2019-02-13 8:07 ` [PATCH v5 6/6] RISC-V: Free-up initrd in free_initrd_mem() Anup Patel
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=20190213095951.GB21478@rapoport-lnx \
--to=rppt@linux.ibm.com \
--cc=Anup.Patel@wdc.com \
--cc=Atish.Patra@wdc.com \
--cc=aou@eecs.berkeley.edu \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@sifive.com \
--cc=paul.walmsley@sifive.com \
/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).