Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1263089ybk; Thu, 14 May 2020 04:46:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5r4itPogqBEtDVYe9dTxwPzVXmrVanKs2xhxbZY0kLtBXNKB/kMsN3HvwnXnER3iYbmr8 X-Received: by 2002:a17:906:1ec3:: with SMTP id m3mr3616629ejj.88.1589456819082; Thu, 14 May 2020 04:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589456819; cv=none; d=google.com; s=arc-20160816; b=UzhtzCOaPGe4ON7E9H7EHkXnguCBzTBqXqGJq55wrsqV/63DndJ1kuv6/VOafRtROs 0q0AHhyi0W90PY90SdA+qd/oOusHSYtdfjZSyIRn8kVmRJS5ONJvwode0gFSAtB0Pxgg 2rjuCUT87HBmH3mbyjxePDHdpYGrwgBYOjcVIFOUgsT7CeLtQKCTx9QM/2u3idbsECnK JvqPbhmP+BGIHpAO0nrwrQi0MMm9DNNK3IeLlvlrnZHGs7qvuogUbru5lvpQmPh4yZPF c0wg81SOSro8K8BuH8FkfMPXbWJCvyCUK6Enys+2JYaNBjSzN6LaSh5UqvBKS3EWfn2T ricA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=9CBibW22JKkDJXOWgVaZftgqGi2ljMCVjMmAYhaBRKU=; b=JIqULcDu9OMtOiVRrwrgk3uxUGZptBPj/qiXWF3ytt5kcJgsLirnhwDiZ248ZwKNgD Vgve3GWp8gMX2gR+614ety22eIODgYSOU8L6JxH8lJrng8p7LXsUH1r0RJbeAUR8ePAh yFwM8H7jdgLgKZPjnAA1jT3u5qVwtZdG5VzahZUeFMb9IJKAOmIepn1tRMTe8QveJlhu vpGjSGkjBzq2tKCA0VrNzfSCSiKrOfzmYOOatXGRwCs6APVqCxvEbQ0ZMFsbnt1XXdGX Hven7Bk02UKeuWx9jm0h1+y1mgNswz9lzYgKKTQgyW6vpJtIDbVk2OHNls5wcAsQncxj 1Y3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si1320227edr.335.2020.05.14.04.46.35; Thu, 14 May 2020 04:46:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726197AbgENLnC (ORCPT + 99 others); Thu, 14 May 2020 07:43:02 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4784 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725925AbgENLnC (ORCPT ); Thu, 14 May 2020 07:43:02 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 393189755B08008A272F; Thu, 14 May 2020 19:42:59 +0800 (CST) Received: from [127.0.0.1] (10.166.215.93) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Thu, 14 May 2020 19:42:48 +0800 Subject: Re: [PATCH 04/10] riscv: Fix print_vm_layout build error if NOMMU To: Alex Ghiti , Paul Walmsley , Palmer Dabbelt , Albert Ou , , CC: Hulk Robot References: <20200511022001.179767-1-wangkefeng.wang@huawei.com> <20200511022001.179767-5-wangkefeng.wang@huawei.com> <1daca195-f63c-2693-068f-6d624aa1b899@ghiti.fr> From: Kefeng Wang Message-ID: <669a4a33-42cc-1f5d-a0f5-37ab18a8a371@huawei.com> Date: Thu, 14 May 2020 19:42:48 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <1daca195-f63c-2693-068f-6d624aa1b899@ghiti.fr> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.166.215.93] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/5/14 18:10, Alex Ghiti wrote: > Hi, > > On 5/10/20 10:19 PM, Kefeng Wang wrote: >> arch/riscv/mm/init.c: In function ‘print_vm_layout’: >> arch/riscv/mm/init.c:68:37: error: ‘FIXADDR_START’ undeclared (first >> use in this function); >> arch/riscv/mm/init.c:69:20: error: ‘FIXADDR_TOP’ undeclared >> arch/riscv/mm/init.c:70:37: error: ‘PCI_IO_START’ undeclared >> arch/riscv/mm/init.c:71:20: error: ‘PCI_IO_END’ undeclared >> arch/riscv/mm/init.c:72:38: error: ‘VMEMMAP_START’ undeclared >> arch/riscv/mm/init.c:73:20: error: ‘VMEMMAP_END’ undeclared (first >> use in this function); >> >> Reported-by: Hulk Robot >> Signed-off-by: Kefeng Wang >> --- >>   arch/riscv/mm/init.c | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c >> index dfcaebc3928f..58c39c44b9c9 100644 >> --- a/arch/riscv/mm/init.c >> +++ b/arch/riscv/mm/init.c >> @@ -49,7 +49,7 @@ static void setup_zero_page(void) >>       memset((void *)empty_zero_page, 0, PAGE_SIZE); >>   } >>   -#ifdef CONFIG_DEBUG_VM >> +#if defined(CONFIG_MMU) && defined(DEBUG_VM) > > > Shouldn't it be CONFIG_DEBUG_VM ? oops, should be CONFIG_DEBUG_VM, will send v2, thanks. > > >>   static inline void print_mlk(char *name, unsigned long b, unsigned >> long t) >>   { >>       pr_notice("%12s : 0x%08lx - 0x%08lx   (%4ld kB)\n", name, b, t, > > > Alex > > > . >