Received: by 10.223.164.202 with SMTP id h10csp277356wrb; Mon, 13 Nov 2017 06:22:13 -0800 (PST) X-Google-Smtp-Source: AGs4zMbqq5RzhBd9zwMMQ4xJi2VEju2sfGLxwE1z6Qo/vmkEimr2RH6NufZplaqIabjkZStF/T1z X-Received: by 10.98.15.155 with SMTP id 27mr10027987pfp.82.1510582933610; Mon, 13 Nov 2017 06:22:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510582933; cv=none; d=google.com; s=arc-20160816; b=lU9LUGFhuxrJGw3m75pUVHMEwAkLsNxIEPVBfuyFujELv64Y4tgG9QPopRhNlL5DzF LQypqT7+WWK6YpL++BrV6ZNTUmRFY3kdaBLBgf93kqFnlBMXIJPzhI3y90Ti7hS6b92i g57PKq0rHCawP9j9/hwE02iFELUuhkr8tp+SnxNflpIT3WqD5SoXCFxUGBE8SakkhMNu OH8CcTnCOZ3g8E6pEswtiqtIb/zmsz6ALnUq4H895PvBafOdUpZ/NFAR8XE/aC20iGii w2meD6DJ1gQXCNCBmZL2qN9/jOeKxhhMjtmLZLOno8L5lNOZ4NW4cO2nVMwxtszxzN6N LgNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=h9NyYaRLyKaQ9rD2QtGCWdjFV4Po2uUDCkBR298XmKs=; b=0g2TQHM+uz1RLFZ9xQVwUGpB8JIyHJ6IivjzeJBbnGxn+3ujymHJNyRmTSFqcDv6/g egZl/upn3annK1SbM4ca9MP8D/Dl77XqaFBrjv1KsrQc/YMnIJVU/YXsUwnxuweYnHkD esaMX8KpER7/MSJpJ1qlTamQhL0HR5Y/KzKLSEsaUuIKT8ypQT663LFR96G7CKuE58eY aDVXGsDSsPuRGD312KZwiJZlLQNb2kMZUBtQ1yNPW8lXFRFOuF20Sm/ZTGI2Tp+gU/71 9lYAdQ2t7jJG9ICtGpfraVNCWbPx1uR0qXY8uXLKby41DdCWFo5rJHQr+5XufPYa33Mn LYMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g68si9010424pfc.403.2017.11.13.06.22.00; Mon, 13 Nov 2017 06:22:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752839AbdKMOVP (ORCPT + 92 others); Mon, 13 Nov 2017 09:21:15 -0500 Received: from eddie.linux-mips.org ([148.251.95.138]:55846 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752267AbdKMOVO (ORCPT ); Mon, 13 Nov 2017 09:21:14 -0500 Received: from localhost.localdomain ([127.0.0.1]:35682 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S23990430AbdKMOVMeOtPH (ORCPT ); Mon, 13 Nov 2017 15:21:12 +0100 Received: from h7.dl5rb.org.uk (localhost [127.0.0.1]) by h7.dl5rb.org.uk (8.15.2/8.14.8) with ESMTP id vADELBGX009875; Mon, 13 Nov 2017 15:21:11 +0100 Received: (from ralf@localhost) by h7.dl5rb.org.uk (8.15.2/8.15.2/Submit) id vADELAmh009874; Mon, 13 Nov 2017 15:21:10 +0100 Date: Mon, 13 Nov 2017 15:21:10 +0100 From: Ralf Baechle To: jiaxun.yang@flygoat.com Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] MIPS: Lonngson64: Copy kernel command line from arcs_cmdline Since lemte-2f/marchtype.c need to get cmdline from loongson.h this patch simply copy kernel command line from arcs_cmdline to fix that issue Message-ID: <20171113142110.GA13046@linux-mips.org> References: <20171112063617.26546-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171112063617.26546-1-jiaxun.yang@flygoat.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 12, 2017 at 02:36:14PM +0800, jiaxun.yang@flygoat.com wrote: > Date: Sun, 12 Nov 2017 14:36:14 +0800 > From: jiaxun.yang@flygoat.com > To: ralf@linux-mips.org > Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Jiaxun Yang > > Subject: [PATCH 1/4] MIPS: Lonngson64: Copy kernel command line from > arcs_cmdline Since lemte-2f/marchtype.c need to get cmdline from > loongson.h this patch simply copy kernel command line from arcs_cmdline to > fix that issue Please don't cram the entire commit message into the subject line. The standard for commit messages to keep lines only so long that when you look at them in "git log" in a 80 column terminal they don't get line wrapped or truncated. And what is "lemte-2f/marchtype.c"? Maybe you meant lemote-2f/machtype.c? > From: Jiaxun Yang > > Signed-off-by: Jiaxun Yang > --- > arch/mips/include/asm/mach-loongson64/loongson.h | 6 ++++++ > arch/mips/loongson64/common/cmdline.c | 7 +++++++ > 2 files changed, 13 insertions(+) > > diff --git a/arch/mips/include/asm/mach-loongson64/loongson.h b/arch/mips/include/asm/mach-loongson64/loongson.h > index c68c0cc879c6..1edf3a484e6a 100644 > --- a/arch/mips/include/asm/mach-loongson64/loongson.h > +++ b/arch/mips/include/asm/mach-loongson64/loongson.h > @@ -45,6 +45,12 @@ static inline void prom_init_uart_base(void) > #endif > } > > +/* > + * Copy kernel command line from arcs_cmdline > + */ > +#include Please group #include lines at the top of the file. > +extern char loongson_cmdline[COMMAND_LINE_SIZE]; > + > /* irq operation functions */ > extern void bonito_irqdispatch(void); > extern void __init bonito_irq_init(void); > diff --git a/arch/mips/loongson64/common/cmdline.c b/arch/mips/loongson64/common/cmdline.c > index 01fbed137028..49e172184e15 100644 > --- a/arch/mips/loongson64/common/cmdline.c > +++ b/arch/mips/loongson64/common/cmdline.c > @@ -21,6 +21,11 @@ > > #include > > +/* the kernel command line copied from arcs_cmdline */ > +#include > +char loongson_cmdline[COMMAND_LINE_SIZE]; > +EXPORT_SYMBOL(loongson_cmdline); > + > void __init prom_init_cmdline(void) > { > int prom_argc; > @@ -45,4 +50,6 @@ void __init prom_init_cmdline(void) > } > > prom_init_machtype(); > + /* copy arcs_cmdline into loongson_cmdline */ > + strncpy(loongson_cmdline, arcs_cmdline, COMMAND_LINE_SIZE); > } Ralf From 1583841684719474835@xxx Sun Nov 12 06:45:35 +0000 2017 X-GM-THRID: 1583841684719474835 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread