Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1509526ybk; Sun, 10 May 2020 19:27:07 -0700 (PDT) X-Google-Smtp-Source: APiQypLicQIbYI77iAzd1+G7lz1gpNnAQs8El/xOsga5FxB3xMpQItH+kvn64F9bkAB+75pJnIiH X-Received: by 2002:a17:906:c7cc:: with SMTP id dc12mr5459259ejb.263.1589164026929; Sun, 10 May 2020 19:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589164026; cv=none; d=google.com; s=arc-20160816; b=WEyzgEY1bOJoU2LWU52R2V9RmTrSD40+3/hP9P+ROmQExZ7nG6ilWw1JraVQmCWsZ3 zf+MTBc2KCeje7C0dOuPMm2s5+xqyIs+s5TN2ZGmPkBXyzrVDTb5YGhMpQS81ZoQVAgW 1yNBUmTGtzi1k/R1zsK363v1pcjHALqtQgW0jUNTcvHQvQk2O+fFOQ3OIN18wgWR6nYq tUejV5J9nukRSFzA1BtMGEgZUY52qtBSKyq/m56Paokqa+0h2oKOkWrn6Mxlo+Vsptm0 +wlcB/IEc4TVKyXgHI3+mGlqEPTz/gl8N1HhIEdPskLexlV8P9FP5SxMDlhfJBtv1eC5 z4EA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BFYy6mZWP+c1UXJjXEWnZUDhdAyXRwzgx32DeSGS/vM=; b=ErKHwpLeYBquQk4VoKkVFmOkjzO5+3gP1WmrIsrHvup+ifFbO1npbSO7XBjDMBJ8x9 fqwwJZKD1S0VoXOsyMaWUKXyaXmA9gbI6dPx/MXK2dL21uGYWygV6B5aAxgjKFSWVjDZ 3kyzRTUV9KqDLHdYGrsjelMIx+ZDONTRlTfUjTPcHTGSyOC8iRaB4hjsZWdascXGJeHw RU7poH8+w/FQBjVrf3dgL2mgg/9ZFf+j6eT432dr1xYS0rPpBTg940LAlLFX8fC2EuCt vQyeH7jEsz5rkN06AjsAik+rymyNB5kwrpjIxxOENqAMCXnTaqzxU3fdZjA6xX5kTsjF olDw== 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 n16si5421318edv.252.2020.05.10.19.26.36; Sun, 10 May 2020 19:27:06 -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 S1729358AbgEKCXm (ORCPT + 99 others); Sun, 10 May 2020 22:23:42 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:34916 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729313AbgEKCXl (ORCPT ); Sun, 10 May 2020 22:23:41 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 166FEF849FB0B92C39B5; Mon, 11 May 2020 10:17:14 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Mon, 11 May 2020 10:17:03 +0800 From: Kefeng Wang To: Paul Walmsley , Palmer Dabbelt , Albert Ou , , CC: Kefeng Wang , Hulk Robot Subject: [PATCH 04/10] riscv: Fix print_vm_layout build error if NOMMU Date: Mon, 11 May 2020 10:19:55 +0800 Message-ID: <20200511022001.179767-5-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200511022001.179767-1-wangkefeng.wang@huawei.com> References: <20200511022001.179767-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) 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, -- 2.26.2