Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751776AbdG1GbW (ORCPT ); Fri, 28 Jul 2017 02:31:22 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:37205 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751652AbdG1GbV (ORCPT ); Fri, 28 Jul 2017 02:31:21 -0400 From: janani-sankarababu 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 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 Message-Id: <1501223206-24577-1-git-send-email-jananis37@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1277 Lines: 44 Signed-off-by: Janani S --- 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