Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4000693imj; Tue, 19 Feb 2019 13:22:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IbfcSXnL0BX6+wjvD/mhLKK736w+tSiMRdtHKQQ/0zHp4rOFb2vXi/xUp3wT2LODYl6JWNX X-Received: by 2002:a65:568b:: with SMTP id v11mr7613479pgs.23.1550611346953; Tue, 19 Feb 2019 13:22:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550611346; cv=none; d=google.com; s=arc-20160816; b=a1JpFRdKAQyniWVpQYsFXsRclgKPVZY5+mTv5jRmYH28seZDE0Cjdj/kznw5zpl0Ty H5FuM/ZVZi8GkY3j7B1ZKOeok0tYVUTJsLf3qbM+AAVaFe77ftkilNhmHEMIk1ve89/+ C+Mn8q4gmuKV0qos6wlBtXnl0eY9PxGAYie/KAn2xGu3DcGBomhOKf0xvTZEHz0Mf6MG sWhQalS96RWk/J7WatxEaeppjC9qrac+UtDKDIKoNbs3IHExZ23pS1oK+2O3Iw+ensIX EIJ+4w16q1yEu5hkiawjd4WFKTH//LxKDYOgPmqyVpfeqL8Vq/q9LfvHDA5rj72Ub5LR GoJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:date:from:dkim-signature; bh=Uqg/xYPEomUxikesUxTYEPTAFgGyOfSI+TIAf2ftQno=; b=G2UYDQUlxAKMw5AEuAbgGPY4aPnlKGKA4IIxcZWtqxvMHlqTVsXe+m0onBDDWrKtLs QT/l8xKNZACoe8h5rmW/kLkE8SlW5+v73WlzYlVNtffYIwIbLkXsHdefH4Lm3z9esgPR OXdwuwhaIKFLnUrREHoe9qCJs/sl3NRiqfiiPIv5XAk5GKdSHGg5aex02wVI79Rli5r3 Eeam5ITzNfAHYnUM3ILeEuwBFP2ZpkmzjuLen2tSpIzsqmgnjXRrJ1l8WRwjOaa/k/f4 5XQ/NK/Shqd09kvTf7xSrgnmC0vhntbw9p3n4jighSiWGGmdHql0w02eu0nJgA2xyb7h XCXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Kc0qe10u; 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 v185si16915900pfb.65.2019.02.19.13.22.11; Tue, 19 Feb 2019 13:22: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=@sifive.com header.s=google header.b=Kc0qe10u; 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 S1728649AbfBSVU0 (ORCPT + 99 others); Tue, 19 Feb 2019 16:20:26 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:36456 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbfBSVU0 (ORCPT ); Tue, 19 Feb 2019 16:20:26 -0500 Received: by mail-it1-f193.google.com with SMTP id h6so9981778itl.1 for ; Tue, 19 Feb 2019 13:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=Uqg/xYPEomUxikesUxTYEPTAFgGyOfSI+TIAf2ftQno=; b=Kc0qe10u05pcZIEfmEVDoAd7hILi0PQQM8NUSY2jRXtD0K3V3PHGrGRAj+M0FToP9Z EX1feDIY665LI7sez4XXdn25c366ydZYfcLo7z5ro4bQCgKRIjtap5gmYI0EOX1oSA0h 24SmS9I1eYy3KgQe9tU8kIzskXBXG7himuAIh30RYRJp/xCd4Fmdi5KCZ5dw3Bkxb9Ur D82KasAkYIVETEAy7EEdZKHWAC4dJ687WuqtxJV+TQ/CUWNpIKITK/dzgqy5lJoXHhgl 58t3PziKEiop22MQjV7H3kYq/982HWSh3NWbgRlPCBxgyGtqUPNq3Rb66R4PKJxXDH67 n+8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=Uqg/xYPEomUxikesUxTYEPTAFgGyOfSI+TIAf2ftQno=; b=lwIz1WJ5LuQ8lVSYoWnScnscn5xL/2qPFTGqPzXd9bM6bmLhbA/frtRW3UVpJEfS5h z8yTSjaqWo3cCe1dtd2VMmsH8Yk2ljl0jExS9DErmn2d770SiZfNYSYt4Yc/BhyJ8WDZ AIPlNN4t9JqlmxyiR/sW2TiAKtKV/2vJi+SP15k6uSEWtvDerJ4UU8jT/f/oWjhoegsg IY2OKxdH9GSfkDrWROrTgCiOKNau4+ThH2ke6l6VwMvr1gBXYzSn84kwsyGVp+2m1QDy XqYk4C/FbnoCPp5hmCW2fl+Il2HoOEu3Sb0uL83aVGWPOaBACGExyLP0BGDyDTm2TdiW 1ZZg== X-Gm-Message-State: AHQUAuZrKIY1bi3wXLVDRxiOablc3vaYyDqVdFgfFjU0Y/tURL8i5aOH wfbxKH4Yhwt0E/ftPbiXDzCdSRMTmHY= X-Received: by 2002:a5e:8513:: with SMTP id i19mr1911171ioj.21.1550611225842; Tue, 19 Feb 2019 13:20:25 -0800 (PST) Received: from localhost (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id 140sm1823908itv.32.2019.02.19.13.20.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Feb 2019 13:20:25 -0800 (PST) From: Paul Walmsley X-Google-Original-From: Paul Walmsley Date: Tue, 19 Feb 2019 13:20:23 -0800 (PST) To: Andreas Schwab cc: Paul Walmsley , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, paul@pwsan.com, palmer@sifive.com, aou@eecs.berkeley.edu Subject: Re: [PATCH] arch: riscv: fix logic error in parse_dtb In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Feb 2019, 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"); > -- > 2.20.1 Reviewed-by: Paul Walmsley Tested-by: Paul Walmsley # FU540 HiFive-U BBL - Paul