Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1266120ybk; Thu, 14 May 2020 04:52:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEJ3RDTljYkCfwBQHIVlXm2QmlDev9TCr8hCfcUb/exFfxI6c2s4ffNi3bCONc1Qtw80VQ X-Received: by 2002:a17:906:414b:: with SMTP id l11mr3606000ejk.292.1589457137537; Thu, 14 May 2020 04:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589457137; cv=none; d=google.com; s=arc-20160816; b=B3GOENcKqn6SNeU+X2zcSQ1gdsaDofukIuoE6+SQf7syGrbNL9i3T9dQtcICxR4d9/ 7pDh8RgGMJo7u3J0pcvGMOLg4W8J39MpOBWqngQj9UA50KDO+WK3ONKJx7kA9m5uTH9o uO3joBnGZhF28WiqVBoaKXDko9gJmxY91khIb83nKR1MHZcChbVf+WnxT2jEOXMzh8zK GKwEv4xUGscSnwFZydlp4xXYaroJGpSIjKVqXhxcyY+D6udxojiRL+KNl2sbg/otTSH+ vgH8i7Ucoaulm9ZxbQGOkPNUdnQtnSqXW+45izfV9ToCETCNKhEWXCgf5JfQmQYjlujv +cjw== 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=FXS9xs0vIH8dqObGhXUTKV0lo5ZUjL+Rf5OV6EAvMog=; b=AVKck4bLOnvLhAinXFoWOOGWp8vL6OcG+pvpza+ckdVASxw7OxAO4+KI2pYmhHeN15 62VOQn0RnIdJDnXqBWDccfbRvOvsI6r37aNPN45UcDakgFtTrUVh76dSajTbJd2B22G7 a9uYgYFQ7hW4v6DtMunTUyHBLcDH2AHRQzoQ1sHrFrOUaPZRKQB9JduR/EpvP/WeLXS1 gBjromVtJjVXyudCl6YP9a0i2+FOvK9pJS+we0FX8ng+d71ldAJpzFjZOudBjAPs086O JfKnyqAY5BkfYeMuSVkj7dP3tQiANRl4lPKQgGGlnndmAjQZndQxvgi/lRaVroajwoom 9DQA== 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 b9si1749835eja.138.2020.05.14.04.51.55; Thu, 14 May 2020 04:52:17 -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 S1726294AbgENLuW (ORCPT + 99 others); Thu, 14 May 2020 07:50:22 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:52476 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726179AbgENLuV (ORCPT ); Thu, 14 May 2020 07:50:21 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 13BD5628B3E816D57F4D; Thu, 14 May 2020 19:50:19 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 14 May 2020 19:50:12 +0800 From: Kefeng Wang To: Paul Walmsley , Palmer Dabbelt , Albert Ou , , CC: , Kefeng Wang , Hulk Robot Subject: [PATCH v2] riscv: Fix print_vm_layout build error if NOMMU Date: Thu, 14 May 2020 19:53:35 +0800 Message-ID: <20200514115335.110603-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200511022001.179767-5-wangkefeng.wang@huawei.com> References: <20200511022001.179767-5-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 --- v2: - Should CONFIG_DEBUG_VM instead of DEBUG_VM - Based on riscv fixes branch 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 27a334106708..736de6c8739f 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -47,7 +47,7 @@ static void setup_zero_page(void) memset((void *)empty_zero_page, 0, PAGE_SIZE); } -#ifdef CONFIG_DEBUG_VM +#if defined(CONFIG_MMU) && defined(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, -- 2.26.2