Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp924164ybk; Wed, 20 May 2020 15:54:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzynMkpxRbAeBQyajFACdsNkXN6iFjSy2klnaODUxOQSzCiu4fCdhmiJAtQH9l14B4ruujU X-Received: by 2002:a17:906:6bc5:: with SMTP id t5mr1117736ejs.459.1590015260542; Wed, 20 May 2020 15:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590015260; cv=none; d=google.com; s=arc-20160816; b=qc9EaOfRkOVScnCHbMNppj70bHu87N+sxEmnRZPMOlxcxkEeKNNVeeiMQC1uPnvv5B KFjvhBZ8waOt9fciGABiJ1qi1DRVwg4BfWo/wVVYSnnaAXjNkb+Dsrr/oHQYHSKCCEUU n4nPx35AbhVx4Xa8Xr00dwBM4UIvUZ9cA9V5bAKmbPnweC/cDIIus8mymzaf4c+8DWyA kPo1zGN7ECFXEerO5kaN4g/C7pxpQoNph7rTXvtlufqdyCvgja0vJkM3IhefElpqvYaL Q962YQOgnDKarLZRtKoAFg5jZTCstFqmGCw67SFP4eKf23UQTO2l5o6IC3I9K3Gmk6ta f05g== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=QKwUc2R6uw/eDgmTMc7GXVJUbTy1jO4XiUWek83viy0=; b=CtpN0ytqNdi6rdBpjncgt1Ml6JhIywGgRVJz8PK6k6dvLQdYDUOdEO8mHozl7tiras Jb9bO6CrRDsOy40jJAYTSouJNYxuyoIbM8ReIXSD3OjUhjP3qodDGIhSUxAtuWqUplX7 EpHTz4b+AcozRSUIdR20kTgPoVRtTcLK7Gyo3XElOja33E/F8zoRReoq0eeA9Ekb/Ldj 8oROluAgfoeJjwB2AS3FieusppQayBu2BWcFKklV6OCl0K7QzV3gBFg0Xx2ocOdfsULO 6Xcv8tmDE8/gufEdLdLjRs3T/RKAIvMtUh9b1Mk9aghM1B2zFvWh2Zm9uVDwSnRWbO15 MZtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b="EIBjZ/F9"; 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 a21si2385597ejx.547.2020.05.20.15.53.57; Wed, 20 May 2020 15:54:20 -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; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b="EIBjZ/F9"; 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 S1728657AbgETWuA (ORCPT + 99 others); Wed, 20 May 2020 18:50:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728261AbgETWt7 (ORCPT ); Wed, 20 May 2020 18:49:59 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93BBEC061A0E for ; Wed, 20 May 2020 15:49:58 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id x2so2303648pfx.7 for ; Wed, 20 May 2020 15:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=QKwUc2R6uw/eDgmTMc7GXVJUbTy1jO4XiUWek83viy0=; b=EIBjZ/F9r+i1Uxd18RwcwxXQVkYbaLrUocOByK8WgOLNbFAPUA4PhtM3VxYNkiky2k MtKNPT9Z0wI0pYeXs6wByOFK/84soRVDHeVVT8LR3zjhz8I6nHgVtg2Z3FnsthUWh6kw +WRp6S34NU0IqRFAjTikS376odk3+3C7tkXaOLxdbKeBNC7UBMG+itCpT+fMUk4bt663 UQQp/CYHbyYYDCre+cnmgwD7jZ+qjjQg50mxchLOh/uHaCrJVffftMhqqCwb5QT8PcDb qwsHRlYMUHyCKHPyJ74Sid+Jcjtv3LXljsr8WlvCb/HWkIflaMCub9W3S6OEPTX1PRtS 3mYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=QKwUc2R6uw/eDgmTMc7GXVJUbTy1jO4XiUWek83viy0=; b=i3hEiyyINUQsyfX3TCIcAleKO28lnprwv4cGczn1dC0fQM1nEIcZ1VaN77as2+2dfH kgk00N3V4bSe9hX317VOo3DfdN4e2omoPuPggXYDxve5/4aSOMrenq2MBtLtJGY1RudZ 6kTrm78aSCGqYKadQH3P1TyuEvUSXt8EEu7CRe0PrchrXbO487E8FoyoyDGrU1kREln2 Nn4F97FO58CHFK4f145VcfsIsYczflSeLelhnxcyZeRIaHTWzl+2o6rgAipcFBQcArjp HHoH9X4lcAF9Z6TgyowiJTo0AnoZ3CPiVSLyQQ7j9i7/wuBMhGMs8bIbeY5ITxs8qgQu 8N9Q== X-Gm-Message-State: AOAM531wCnvaQoipKoRkzZJucCf30rX0MtGaD+KYwnpYp3ox4U7ZrPH/ a872UsvmccI+RIQ63H/F+5sRhQ== X-Received: by 2002:aa7:80cf:: with SMTP id a15mr6904139pfn.124.1590014997875; Wed, 20 May 2020 15:49:57 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id d35sm2553068pgd.29.2020.05.20.15.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 May 2020 15:49:57 -0700 (PDT) Date: Wed, 20 May 2020 15:49:57 -0700 (PDT) X-Google-Original-Date: Wed, 20 May 2020 15:46:51 PDT (-0700) Subject: Re: [PATCH v2] riscv: Fix print_vm_layout build error if NOMMU In-Reply-To: <20200514115335.110603-1-wangkefeng.wang@huawei.com> CC: Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, alex@ghiti.fr, wangkefeng.wang@huawei.com, hulkci@huawei.com From: Palmer Dabbelt To: wangkefeng.wang@huawei.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 May 2020 04:53:35 PDT (-0700), wangkefeng.wang@huawei.com 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 > --- > 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, Thanks, this is on fixes.