From: Randy Dunlap <rdunlap@infradead.org>
To: Vasyl Vavrychuk <vvavrychuk@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] [RFC] initrd/initramfs: extracted common code to init_rootfs.c file
Date: Mon, 16 Jul 2018 10:08:19 -0700 [thread overview]
Message-ID: <7464d5bb-504a-20e8-ea42-821297efe502@infradead.org> (raw)
In-Reply-To: <1531728723-11992-1-git-send-email-vvavrychuk@gmail.com>
On 07/16/2018 01:12 AM, Vasyl Vavrychuk wrote:
> Extracted from initramfs to common place code that sits on top of
> iniramfs and initrd and initializes one or another depending on
> configuration.
>
> Signed-off-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>
Just nits here...
> ---
> init/Makefile | 5 +-
> init/default_rootfs.c | 52 ++++++++++++++++
> init/do_mounts_initrd.c | 2 -
> init/init_rootfs.c | 162 ++++++++++++++++++++++++++++++++++++++++++++++++
> init/initramfs.c | 156 +---------------------------------------------
> init/initramfs.h | 4 ++
> init/noinitramfs.c | 52 ----------------
> 7 files changed, 222 insertions(+), 211 deletions(-)
Does this change save us anything? More source code. How about
object code?
> create mode 100644 init/default_rootfs.c
> create mode 100644 init/init_rootfs.c
> create mode 100644 init/initramfs.h
> delete mode 100644 init/noinitramfs.c
>
> diff --git a/init/default_rootfs.c b/init/default_rootfs.c
> new file mode 100644
> index 0000000..f4bad84
> --- /dev/null
> +++ b/init/default_rootfs.c
> @@ -0,0 +1,52 @@
> +/*
> + * init/noinitramfs.c
wrong source file name.
> diff --git a/init/initramfs.h b/init/initramfs.h
> new file mode 100644
> index 0000000..3ecad6f
> --- /dev/null
> +++ b/init/initramfs.h
> @@ -0,0 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0
> +#include <linux/init.h>
> +
> +char * __init initramfs_unpack_to_rootfs(char *buf, unsigned long len);
Unfortunately, the format for SPDX identifiers in C header files is thus:
/* SPDX-License-Identifier: <SPDX License Expression> */
according to Documentation/process/license-rules.rst.
thanks,
--
~Randy
prev parent reply other threads:[~2018-07-16 17:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-16 8:12 Vasyl Vavrychuk
2018-07-16 17:08 ` Randy Dunlap [this message]
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=7464d5bb-504a-20e8-ea42-821297efe502@infradead.org \
--to=rdunlap@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vvavrychuk@gmail.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
all inboxes | Powered by JetHome®