Received: by 10.223.164.202 with SMTP id h10csp1455185wrb; Wed, 15 Nov 2017 21:14:26 -0800 (PST) X-Google-Smtp-Source: AGs4zMYvxgkarJ2KEzHM/akb8H2WdZX55wrZHAdgiINwoH8bga1CygljOPOCblFAENbvWyyTDYM7 X-Received: by 10.84.210.66 with SMTP id z60mr520130plh.168.1510809266538; Wed, 15 Nov 2017 21:14:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510809266; cv=none; d=google.com; s=arc-20160816; b=AX/6qUDHRfE8PqHn1YIp5bMVoz7EDDF3p2Ob1rAE834QKxDzLsX3ap90Lph8oFTRcQ dtAXZP8MPxlISb/TJxI2jP9FNE14dUhNzo0/AQ77iuUzGXoncGTjNjRxiw1U2kNyR9Sc v/VGV35C+T+a1wNXYWHx70KRKZEXb7i+2f5aM5J8CE0DQiHY8p2CZ8EiOchV+HEDtvE/ O2heR52R77CXJ61OpUwRxW+JNmFTMqyDnYzWyZWyzM/bO71kPHlqmeVW10clCfZRSo+N OQftDJue9vvCk1kMlq3PmLU9jU4mzL+mzK4fuP2wBQugAow5LjqgHdNedNEiipgKkSqS /F9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=xKF45GAGyDGi64VULdsboy1oVhAyQIpA55hh/dEjhCI=; b=0jOHysnSxlIODWkxho33Bl5J8xDL2yu/NhE43dXkULCYSNww7Ku9/kgsNoq4d+nJHn rCaTLI62Hms/CzYmF/Zs5Bs3MIxOIDSJVCUg74SAoEDP/hvFLSNa8YbdVskc0Tni7IWA hTyy687QnBITrjrb7Eb2YAN9pvU3ZVv5qmMQqct5ivpYLMFWIJSdJY14sv2xB4iStvCy XvukjrXr6xy6VZ88AmmlawzWNPonHwZr2nfRVb5rI+tfS38LPQWT/fUifvwBaI+ja+Us fzGl8J/yltyEjKdQ5qzikXD04yOWylSW46Oz0vmkgQo2wdm6ybehKlG38A4PWnuYpFfz rXIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VY5y/3ZH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si238352plb.632.2017.11.15.21.14.14; Wed, 15 Nov 2017 21:14:26 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VY5y/3ZH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758200AbdKPEWa (ORCPT + 89 others); Wed, 15 Nov 2017 23:22:30 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:33483 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751455AbdKPEWX (ORCPT ); Wed, 15 Nov 2017 23:22:23 -0500 Received: by mail-it0-f66.google.com with SMTP id n134so470164itg.0 for ; Wed, 15 Nov 2017 20:22:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xKF45GAGyDGi64VULdsboy1oVhAyQIpA55hh/dEjhCI=; b=VY5y/3ZHGPx/ggo4Z+rveUqh0NQm+GVR1UvZyw1c26lkw7phzsyPSLSgSynLzf1/EX ZqyuPVkzOltnx/ZQjOyWTLUVIkrdfr0Ka5pCYEHlJigM/nvycTU0+ulcHWvSgj5VpFRe DGXv4jVLeVbmWDe6UcQ7FKaIBeqQIesIbSGUKnapdLOuh5JUsjIg6HoomBB5+Rq1uINa WiW9VNxFYj1uN6SC3bU1ecZEgTLaG2qnOvIUSl4PD4FGNDYwcQpT8icdsnyPxFm0hoeq djl4pzvzaAQK1Ut7Z6f/3tkVcFv9nCFRjxp22ZGF6l4PIzvxCENw7QpshtJPU5OIe5at BAbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xKF45GAGyDGi64VULdsboy1oVhAyQIpA55hh/dEjhCI=; b=hpm2v2WE2DO8ZCB9KW7v8kSzeXEddAToa6yhktf3+OXlbBgZJV16U6ZZvOkMbITkoD I7+y5+ZcqqEVt/DvKTaney0D58dWRzWX0sVepTp1FUJvGgyIco2WftiuFRwSbYGOCm6+ ah0zU/gD5lFqFinecHkgnytzJe5guIwBwOs4LJ2JqVCAZV1HxikwcFVPshcZkYtFrZ31 CdRSUPi47gVtsmSfdRHewRxnMgSmzHjl9IqjE7+cvpnX+qoE8+tA16rlg3ylOWcuQTaL LiRa9OCak4RbJdGstX1Nt4mnp1T33n7ZGPkMzko+9gWCDu92lfbzJWbIsT/Ek4tt4VRt fHXg== X-Gm-Message-State: AJaThX4CUBzy3WzSBSDG/gQm9TuPULADiox0cIu8OAwSVNPorFZEl/Ye 3ImI3Mp84jJ97RqNTLm19vGk6WnFgG18RCBKSHo= X-Received: by 10.36.184.134 with SMTP id m128mr808386ite.96.1510806142734; Wed, 15 Nov 2017 20:22:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.28.131 with HTTP; Wed, 15 Nov 2017 20:22:22 -0800 (PST) In-Reply-To: <20171115031155.643-1-jiaxun.yang@flygoat.com> References: <20171112063617.26546-1-jiaxun.yang@flygoat.com> <20171115031155.643-1-jiaxun.yang@flygoat.com> From: Huacai Chen Date: Thu, 16 Nov 2017 12:22:22 +0800 Message-ID: Subject: Re: [PATCH v3 1/4] MIPS: Lonngson64: Copy kernel command line from arcs_cmdline To: Jiaxun Yang Cc: Ralf Baechle , Linux MIPS Mailing List , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Ralf and James, Why xxx@lemote.com is always denied by mail.linux-mips.org? Huacai On Wed, Nov 15, 2017 at 11:11 AM, Jiaxun Yang wrote: > Since lemote-2f/marchtype.c need to get cmdline from loongson.h > this patch simply copy kernel command line from arcs_cmdline > to fix that issue. > > 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 > +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); > } > -- > 2.14.1 > > From 1584100197744295596@xxx Wed Nov 15 03:14:33 +0000 2017 X-GM-THRID: 1584100197744295596 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread