Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753179AbbEKKV7 (ORCPT ); Mon, 11 May 2015 06:21:59 -0400 Received: from cantor2.suse.de ([195.135.220.15]:38059 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbbEKKVz (ORCPT ); Mon, 11 May 2015 06:21:55 -0400 Date: Mon, 11 May 2015 12:21:46 +0200 From: Borislav Petkov To: Alexander Kuleshov Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andy Shevchenko , LKML , Greg Kroah-Hartman , Mark Rustad , Yinghai Lu Subject: Re: [PATCH v2 1/2] x86/setup: introduce setup_bultin_cmdline Message-ID: <20150511102146.GB15278@pd.tnic> References: <1431338914-24245-1-git-send-email-kuleshovmail@gmail.com> <1431338947-25766-1-git-send-email-kuleshovmail@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1431338947-25766-1-git-send-email-kuleshovmail@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2275 Lines: 64 On Mon, May 11, 2015 at 04:09:07PM +0600, Alexander Kuleshov wrote: > This patch introduces setup_builtin_cmdline function which appends/overrides > boot_command_line with the builtin_cmdline if CONFIG_CMDLINE_BOOL is set. > Previously this functional was in the setup_arch, but we need to move > it for getting actual command line as early as possible in the > arch/x86/kernel/head{32,64}.c for the earlyprintk setup. > > Changes: > > v2: function renamed from setup_cmdline to setup_builtin_cmdline to > avoid conflict with the setup_cmdline from the arch/x86/kernel/kexec-bzimage64.c > > Signed-off-by: Alexander Kuleshov > --- > arch/x86/include/asm/setup.h | 3 ++- > arch/x86/kernel/head32.c | 1 + > arch/x86/kernel/head64.c | 1 + > arch/x86/kernel/setup.c | 28 +++++++++++++++------------- > 4 files changed, 19 insertions(+), 14 deletions(-) Use checkpatch for your patches, some of the issues it points out are valid: ERROR: code indent should use tabs where possible #63: FILE: arch/x86/kernel/head32.c:34: + setup_builtin_cmdline();$ WARNING: please, no spaces at the start of a line #63: FILE: arch/x86/kernel/head32.c:34: + setup_builtin_cmdline();$ ERROR: code indent should use tabs where possible #75: FILE: arch/x86/kernel/head64.c:174: + setup_builtin_cmdline();$ WARNING: please, no spaces at the start of a line #75: FILE: arch/x86/kernel/head64.c:174: + setup_builtin_cmdline();$ ERROR: open brace '{' following function declarations go on the next line #87: FILE: arch/x86/kernel/setup.c:848: +void __init setup_builtin_cmdline(void) { total: 3 errors, 3 warnings, 70 lines checked NOTE: whitespace errors detected, you may wish to use scripts/cleanpatch or scripts/cleanfile Your patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/