Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751942AbdG1Mao (ORCPT ); Fri, 28 Jul 2017 08:30:44 -0400 Received: from smtprelay0094.hostedemail.com ([216.40.44.94]:43429 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751792AbdG1Mal (ORCPT ); Fri, 28 Jul 2017 08:30:41 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:4321:4605:5007:6119:6261:7514:7875:7904:10004:10400:10471:10848:10967:11026:11232:11473:11658:11914:12043:12438:12555:12740:12760:12895:12986:13069:13255:13311:13357:13439:14181:14659:14721:21080:21451:21611:21627:30012:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: veil10_5920bb38812d X-Filterd-Recvd-Size: 2837 Date: Fri, 28 Jul 2017 08:30:35 -0400 From: Steven Rostedt To: janani-sankarababu Cc: mingo@kernel.org, akpm@linux-foundation.org, keescook@chromium.org, jeyu@redhat.com, tglx@linutronix.de, viresh.kumar@linaro.org, tj@kernel.org, prarit@redhat.com, lokeshvutla@ti.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] init/main.c: Fixes quoted string split across lines & missing blank line after declaration Message-ID: <20170728083035.5c07834c@vmware.local.home> In-Reply-To: <1501223206-24577-1-git-send-email-jananis37@gmail.com> References: <1501223206-24577-1-git-send-email-jananis37@gmail.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1742 Lines: 59 On Fri, 28 Jul 2017 11:56:46 +0530 janani-sankarababu wrote: > 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); > + Not sure this is really needed. It's in a block and being assigned. The code looks fine as is. > 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; > + This breaks up the flow of the blocks. The real fix isn't to add blank lines, but to remove both of these i declarations and add just a single one at the top of the function. > 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."); This change is fine. -- Steve > } >