Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1207469ybk; Thu, 14 May 2020 03:14:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjMswB/66QK3uHxAhUUmYKIBXhaHudjJAzKJy6jnL4TxQ9OyxJurrPNYJ0h2hHposb2qra X-Received: by 2002:a50:cb85:: with SMTP id k5mr3366865edi.152.1589451281074; Thu, 14 May 2020 03:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589451281; cv=none; d=google.com; s=arc-20160816; b=XLUcVjMp95o49/5sYq7piiNbVWJT4fuKl6Brpc+J+vXgT7Zast0oJeVo1KeQ1UFrR9 bXNaBf9asvRWJNH71LBRDVyJQFKY8seMB0OqOGgYTNpRohPBek1RqPKjQrU8i+NLU2K2 4+llnlyd127qjZiTm2efQaBsGq125hgP5xwmOGCK/FZ55UgLMLG3CJiIvkzXo5uxHLHT YCRfel9HoyRZsHt/IjgjwMWeOOQBF6leGNPYudNQ/p9oWm4aQ5DSU9xAjhzVdE1DHZEz 5VFvUsiCLPhbSOvm7b9w946fVz5m5QvzfTg5Vck54W505HcBOuE50O1Zj/W207zJhTg/ zc1w== 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=BW3emEoYEvmrt2r1Uy8oMEV35PDgsu4mDyMHZT3m5l0=; b=UgjlPS5zs/nsS8v46rISXVKqQx9TcnATWXF5SNOtxXaqWXF1a9nY5k4YOpgwGZIs+B N2iYx2jDQLm+NGARLKuqT5Wby2CDw2TL7frST+SUoBmRl44+0ylI1eKXrde3qK/s4xd1 JVt+YXV8BQZSK19OiEyp38Kcjs0cxw8G2uUqMRcNF0AqqJxk+yO8qRmRZUlta59ybpbC CiexDSkHASj+whZreIUphLJNeRLR7NddfxCcwad5128D9AByGtlc+WMU63kdcBJAw8jv E/bnX2Wa6GJDLIvQHNmJIu/aOYgzSdpsD7bYPI998WiABsSiZ17qCZsgP9qrhCjfl7pg N7mA== 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 e9si1265628edq.472.2020.05.14.03.14.17; Thu, 14 May 2020 03:14:41 -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 S1726128AbgENKKL (ORCPT + 99 others); Thu, 14 May 2020 06:10:11 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:44205 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbgENKKL (ORCPT ); Thu, 14 May 2020 06:10:11 -0400 Received: from [192.168.1.11] (lfbn-gre-1-325-105.w90-112.abo.wanadoo.fr [90.112.45.105]) (Authenticated sender: alex@ghiti.fr) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 6A02C20000B; Thu, 14 May 2020 10:10:04 +0000 (UTC) Subject: Re: [PATCH 04/10] riscv: Fix print_vm_layout build error if NOMMU To: Kefeng Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Hulk Robot References: <20200511022001.179767-1-wangkefeng.wang@huawei.com> <20200511022001.179767-5-wangkefeng.wang@huawei.com> From: Alex Ghiti Message-ID: <1daca195-f63c-2693-068f-6d624aa1b899@ghiti.fr> Date: Thu, 14 May 2020 06:10:04 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200511022001.179767-5-wangkefeng.wang@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? > 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