linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: janani-sankarababu <jananis37@gmail.com>
To: mingo@kernel.org
Cc: akpm@linux-foundation.org, keescook@chromium.org,
	jeyu@redhat.com, tglx@linutronix.de, rostedt@goodmis.org,
	viresh.kumar@linaro.org, tj@kernel.org, prarit@redhat.com,
	lokeshvutla@ti.com, linux-kernel@vger.kernel.org,
	janani-sankarababu <jananis37@gmail.com>
Subject: [PATCH 2/2] init/main.c: Fixes quoted string split across lines & missing blank line after declaration
Date: Fri, 28 Jul 2017 11:56:46 +0530	[thread overview]
Message-ID: <1501223206-24577-1-git-send-email-jananis37@gmail.com> (raw)

Signed-off-by: Janani S <jananis37@gmail.com>
---
 init/main.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/init/main.c b/init/main.c
index f8eb4966..920b829 100644
--- a/init/main.c
+++ b/init/main.c
@@ -176,6 +176,7 @@ static bool __init obsolete_checksetup(char *line)
 	p = __setup_start;
 	do {
 		int n = strlen(p->str);
+
 		if (parameqn(line, p->str, n)) {
 			if (p->early) {
 				/* Already done in parse_early_param?
@@ -302,6 +303,7 @@ static int __init unknown_bootoption(char *param, char *val,
 	if (val) {
 		/* Environment option */
 		unsigned int i;
+
 		for (i = 0; envp_init[i]; i++) {
 			if (i == MAX_INIT_ENVS) {
 				panic_later = "env";
@@ -314,6 +316,7 @@ static int __init unknown_bootoption(char *param, char *val,
 	} else {
 		/* Command line option */
 		unsigned int i;
+
 		for (i = 0; argv_init[i]; i++) {
 			if (i == MAX_INIT_ARGS) {
 				panic_later = "init";
@@ -1020,7 +1023,7 @@ static int __ref kernel_init(void *unused)
 	    !try_to_run_init_process("/bin/sh"))
 		return 0;
 
-	panic("No working init found.  Try passing init= option to kernel. "
+	panic("No working init found.  Try passing init= option to kernel.\n"
 	      "See Linux Documentation/admin-guide/init.rst for guidance.");
 }
 
-- 
1.9.1

             reply	other threads:[~2017-07-28  6:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-28  6:26 janani-sankarababu [this message]
2017-07-28 12:30 ` [PATCH 2/2] init/main.c: Fixes quoted string split across lines & missing blank line after declaration Steven Rostedt

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=1501223206-24577-1-git-send-email-jananis37@gmail.com \
    --to=jananis37@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=jeyu@redhat.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lokeshvutla@ti.com \
    --cc=mingo@kernel.org \
    --cc=prarit@redhat.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=tj@kernel.org \
    --cc=viresh.kumar@linaro.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).