Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp955936imj; Thu, 7 Feb 2019 14:49:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IajMm1VsgApQmHoJ2JXsge57DGFH6DEHcNOWmrhKgDr8MFL1ddAj+MPVONbkMees/n8f3SY X-Received: by 2002:aa7:8714:: with SMTP id b20mr6518285pfo.214.1549579788811; Thu, 07 Feb 2019 14:49:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549579788; cv=none; d=google.com; s=arc-20160816; b=wI4hugKN1LMI31ECAwMnyBUsw/JgK8PdX9EdaU33iFnrhqc+Rwmzo6wmJ6Zo4jsLZv O2g3slmupCntwJ6v3PuIIt4DgDMUai6gXrJIQUXPYgY5g6TBNRuzjuKJ5ld9F/2cWuYi LkhHV6xY1FkDkRD4d/h/50M6kqAk2JbMc4aDrImJPYatF6mwN4eCsh59iUBVT/EpqU6L yYdnDQGExdxNCRZnLqwc6hBQQ3bKfNLASj5/xTSVf8VBXIzC4YNqAiuHRV5Jt6c5qRmJ 5nAC9zFowSgBnB5bLADtv+fhujY/rDGTURhHoJLQu/t7tpYS2eBGcn8C2YXHdocCsqCL eCDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=SQbIasJJlud7YCtnI2sH2q/EdeE7HvHnOjya0yU9Q+U=; b=TGRWyinSjgDXJqEdvhdW/g9d+fWqNfAcooE3/qZrCxZsSWGmqDOUMEduLNJvUjZedk Rz5p67LjxFQXCdb4sO6Lb0rGzMC2hd7X9iYVJqFN+50jRlJawsJLgJVQTekMzF5pWUXF xgUBro1hN0iCr83qgnRDKOADr0ZVmlM2zJIMvRRtJiXllSHCzj4NFl0Ky8gdqGblOvKi Rs+TjBC28ekc46pTj+rDyDL4GyCLd7Rgw/Tf0yrYAcz8MEAYdtLa+Xf/0sXcesmYTXhM j7IOwvp8zU2ksXeg1Yuufp7HrmXQCt/RYnO+N8pYlATF+5OGzpm5yoTNs3XvtRhUnhNL r4Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=qUD230Ad; 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si255073pfn.259.2019.02.07.14.49.33; Thu, 07 Feb 2019 14:49:48 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=qUD230Ad; 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=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726916AbfBGWrV (ORCPT + 99 others); Thu, 7 Feb 2019 17:47:21 -0500 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:16335 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbfBGWrV (ORCPT ); Thu, 7 Feb 2019 17:47:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1549579642; x=1581115642; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=w+SCEwgUybnuONj7QDPg4mrU5sjaWAW5sJxaJQa+js0=; b=qUD230AdBJTtwC864CILaeX1AynQQAPbN5R6DTFKdfzBCnK0bNtkdUx2 fuWjmQEelpZDRKPZX9rMJv1x4SLjk/6AXkpdruKP640k9HYA9iVRyeWQw uFJ2yB0DnddNshDATcARxtYyZEqTypvtDiKBDDnnIqIMR+qNGnLnW7NaG Yl5gNiFaxtmrpnnz/4gne7k7+ErgjHVrJrm1DSy619VWJ8qptf8TXa27c S+nXRdwu8uLFbtxtaLfd9wQUVZIGMszSRNwpCdcCmPp0kQB3OgLTu4tXI HlwyXJ//B4KHrdOe04eQixTpO3roUSsNv7WQodApV8N6q6Bm8NAAxuPlO w==; X-IronPort-AV: E=Sophos;i="5.58,345,1544457600"; d="scan'208";a="102523174" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 08 Feb 2019 06:47:22 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 07 Feb 2019 14:28:05 -0800 Received: from c02v91rdhtd5.sdcorp.global.sandisk.com (HELO [10.196.159.121]) ([10.196.159.121]) by uls-op-cesaip02.wdc.com with ESMTP; 07 Feb 2019 14:47:21 -0800 Subject: Re: [PATCH] arch: riscv: fix logic error in parse_dtb To: Andreas Schwab , Paul Walmsley Cc: "linux-riscv@lists.infradead.org" , "paul@pwsan.com" , "palmer@sifive.com" , "linux-kernel@vger.kernel.org" , "aou@eecs.berkeley.edu" References: From: Atish Patra Message-ID: <893c55bd-07e1-6ea4-6d67-5d225d9f2db1@wdc.com> Date: Thu, 7 Feb 2019 14:47:20 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/7/19 6:44 AM, Andreas Schwab wrote: > The function early_init_dt_scan returns true if a DTB was detected. > > Fixes: 8fd6e05c7463 ("arch: riscv: support kernel command line forcing when no DTB passed") > Signed-off-by: Andreas Schwab > --- > arch/riscv/kernel/setup.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c > index 45e9a2f053dc..84f19ca6d88b 100644 > --- a/arch/riscv/kernel/setup.c > +++ b/arch/riscv/kernel/setup.c > @@ -140,7 +140,7 @@ asmlinkage void __init setup_vm(void) > > void __init parse_dtb(unsigned int hartid, void *dtb) > { > - if (!early_init_dt_scan(__va(dtb))) > + if (early_init_dt_scan(__va(dtb))) > return; > > pr_err("No DTB passed to the kernel\n"); > Good catch. I was surprised to see "No DTB passed.." message with rc5. Reviewed-by: Atish Patra Regards, Atish