Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5333607ima; Tue, 5 Feb 2019 10:00:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IZfPh7AqL6lhk/u6rf+eqqvS5v9k30Tp5/tfV8TeBuoRs1a8FSZSSzpv/kKdeeKEciHvaA+ X-Received: by 2002:a63:4858:: with SMTP id x24mr5596222pgk.420.1549389626479; Tue, 05 Feb 2019 10:00:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549389626; cv=none; d=google.com; s=arc-20160816; b=H48pCG8ZkaY7wh+S6RNLhRl7gGFt7U3U0gEP/a05o1wDFq2AtWHzl+IOoCTjwsauhz 2SbsELxSL3ZfBy1WyYtYMoj5Y2u3no47kccZGOc3VKM/QTqJgi0AGblfXELNFzyAwZb6 uGcEB676CO4E0WJy2ZXI9ppeyeaf5M9hkt1/+QVob7oPQkNYISKL7augvvJ345XmYEHa En1tR0hKH+NGfjmRlc6/ehUM+3VeUnGHHgMBA/FiifZZYT7xAMlq7RNr7rE1q5tqKtZA Mlx87wgUwhvVi0+DPQrbPi2BSvDo2R9ySWzpAplZ1TE+7W46iZIZ0J5/hnZbrEQAP4wG kA9A== 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:message-id :in-reply-to:date:references:subject:cc:to:from; bh=mafVkXLVH9LsLX98lxnvnf28Rue6/bY3kKkpO+QHyQ8=; b=Ok6K9rM41fYVxH5xCDymNWRFAq6h3VHip+367GMW3c7d+IWCzu/6ITsbxSAf3p5rFP Kd5MGNS/4BlsuJgWpM2FQtY0uHWwzGQaWArI/FIyRcJ52xn9hrAHnEEuDeToBEgmBvWc 8AhuMHtI3XM+hB2tQUqnVKLqMTK5K75H+qCFeUnKRncJr0jwLJJuwWjex2mVuQTdPM8r NPaI8bLcA7jRElv0Lz9LZZBkHm3UQ9SGxFfxIJuV70/iC7eqKnKfP/XP/das70BX45QA 0vJAcbCz/AXNwOXaXzXoo/7ORTj7cIHxDw5O9+rkSFx9ugboI+ooEyIlLZSsnUHyBld8 Jplg== 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 j61si3723013plb.232.2019.02.05.10.00.09; Tue, 05 Feb 2019 10:00: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; 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 S1728130AbfBERnN (ORCPT + 99 others); Tue, 5 Feb 2019 12:43:13 -0500 Received: from mx2.suse.de ([195.135.220.15]:58018 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726534AbfBERnM (ORCPT ); Tue, 5 Feb 2019 12:43:12 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 84AF2B60D; Tue, 5 Feb 2019 17:43:11 +0000 (UTC) From: Andreas Schwab To: Paul Walmsley Cc: 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: support kernel command line forcing when no DTB passed References: X-Yow: OKAY!! Turn on the sound ONLY for TRYNEL CARPETING, FULLY-EQUIPPED R.V.'S and FLOATATION SYSTEMS!! Date: Tue, 05 Feb 2019 18:43:10 +0100 In-Reply-To: (Paul Walmsley's message of "Mon, 17 Dec 2018 19:15:12 -0800 (PST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Dez 17 2018, Paul Walmsley wrote: > diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c > index 2c290e6aaa6e..e6b962ff39b1 100644 > --- a/arch/riscv/kernel/setup.c > +++ b/arch/riscv/kernel/setup.c > @@ -171,7 +171,14 @@ asmlinkage void __init setup_vm(void) > > void __init parse_dtb(unsigned int hartid, void *dtb) > { > - early_init_dt_scan(__va(dtb)); > + if (!early_init_dt_scan(__va(dtb))) > + return; > + > + pr_err("No DTB passed to the kernel\n"); Isn't that backwards? early_init_dt_scan returns true if it found a DTB. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."