Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1457523rdb; Fri, 1 Dec 2023 18:23:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+IYeMofw3GE9wDRZoZ//7YpBecydnm3NRDvwup7+xWngWa/2DQ+m0DpNrpV4jrj1X5bQm X-Received: by 2002:a05:6870:e91:b0:1fa:343a:e5c7 with SMTP id mm17-20020a0568700e9100b001fa343ae5c7mr769783oab.47.1701483781222; Fri, 01 Dec 2023 18:23:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701483781; cv=none; d=google.com; s=arc-20160816; b=PtQd3K+MvtbbTzk/ue7mM4unEtxDPKR1ynSC6ESL3RHH2jah4r/JGaa+/5NAm29r66 jbgf9VSsxe0tagsHlwEyD+OabU6tWj7NvUHov6YAmIjATHQuPLjKlOHsJg135NIhxKrf lmA8ZXXUxNS1x/8vcs1Dc0RNfPfpAWF5ASxN6y0X+xFY91QIFv6dJWdG+jZ9ebD7vsbw WBMdoMxJBc9TWXTb+byUkyrJdmfp5RhhpdBWfaSTerYfQQo+B9uKl/LU6VfBxOQiqUqY /86OUr3IZtCM0RoByI0vMfimmYjNurbSS0o9hNzLJaymn/HWVGVm9UUf33B1TydvKY7M T0zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iWacCUu2+jQgLRypYgT2he0mdkQUbsb+sKjSsZ4uLUY=; fh=wdM3uB3on0rdZVps6+kyVnaN01vxJLTXVPs4OwKCmYw=; b=rVtPF/ekaMlntewAFjlC+mPza0CMFmLPdWI9174dFyQ2bNvQswXTCiXgLkO4ED1Nnc yxhlN42UwhXf8/9cHzSHJUEjWs99OxHMhgRqZ6UN7W1zQ9VeY8ct8Plf6/9Chj6CIA2R sAUhcMiHCt/xfAFQV1P94EHjLlpLbI3RoU//xa+9VZEkp3uPS4vrQk7GysNuKk0JFOcK gm2yAybIPBDlA7VDvPk3zscPY3Su7iax0U3XPpznNju+6WNm3Qx2kdDQ4JmxTK2lW3PE o/MatwKk+f83Yvj/WB6/1dTJiyDB+/zgsx4GfBnO62Mnh7rqnDRq10E5UgF738bz/dpT KFiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=diRHECsp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id pf11-20020a17090b1d8b00b00285a910661esi6904535pjb.10.2023.12.01.18.23.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 18:23:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=diRHECsp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A423284AA9D6; Fri, 1 Dec 2023 18:22:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229537AbjLBCWW (ORCPT + 99 others); Fri, 1 Dec 2023 21:22:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjLBCWV (ORCPT ); Fri, 1 Dec 2023 21:22:21 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA26CD48 for ; Fri, 1 Dec 2023 18:22:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701483747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=iWacCUu2+jQgLRypYgT2he0mdkQUbsb+sKjSsZ4uLUY=; b=diRHECspcGWJ+xxnLzwJQok86MBOlytGyYr/IrN5CEKafCEKd/415lwKV4x6+qGfzdYiUH L3A3F9ISWUn8b0TJySoEqYmeooVjtznMWxfg8cNYiaUKYyuv8Z9znKA0IY7up8Ex9HbNej UMNNF5pvkQCaaKAMYiAraNswLY9X78I= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-7v1jVeiSPby4hQqRPG56sw-1; Fri, 01 Dec 2023 21:22:21 -0500 X-MC-Unique: 7v1jVeiSPby4hQqRPG56sw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4D6F5811E7D; Sat, 2 Dec 2023 02:22:20 +0000 (UTC) Received: from localhost (unknown [10.72.113.121]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 682152026D4C; Sat, 2 Dec 2023 02:22:19 +0000 (UTC) Date: Sat, 2 Dec 2023 10:22:15 +0800 From: Baoquan He To: Randy Dunlap Cc: Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , linux-riscv , kexec Subject: Re: linux-next: Tree for Dec 1 (riscv, crash_core) Message-ID: References: <20231201133726.4a4413dd@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 01 Dec 2023 18:22:58 -0800 (PST) On 12/01/23 at 11:53am, Randy Dunlap wrote: > > > On 11/30/23 18:37, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20231130: > > > > on riscv 32-bit or 64-bit, with > # CONFIG_MMU is not set Can you provide your .config so that I reproduce it? Disabling CONFIG_MMU need find all places where it's selected by other config items. > > In file included from ../arch/riscv/kernel/crash_core.c:3: > ../arch/riscv/kernel/crash_core.c: In function 'arch_crash_save_vmcoreinfo': > ../arch/riscv/kernel/crash_core.c:8:27: error: 'VA_BITS' undeclared (first use in this function) > 8 | VMCOREINFO_NUMBER(VA_BITS); > | ^~~~~~~ > ../include/linux/crash_core.h:78:64: note: in definition of macro 'VMCOREINFO_NUMBER' > 78 | vmcoreinfo_append_str("NUMBER(%s)=%ld\n", #name, (long)name) > | ^~~~ > ../arch/riscv/kernel/crash_core.c:8:27: note: each undeclared identifier is reported only once for each function it appears in > 8 | VMCOREINFO_NUMBER(VA_BITS); > | ^~~~~~~ > ../include/linux/crash_core.h:78:64: note: in definition of macro 'VMCOREINFO_NUMBER' > 78 | vmcoreinfo_append_str("NUMBER(%s)=%ld\n", #name, (long)name) > | ^~~~ > ../arch/riscv/kernel/crash_core.c:12:58: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=] > 12 | vmcoreinfo_append_str("NUMBER(VMALLOC_START)=0x%lx\n", VMALLOC_START); > | ~~^ > | | > | long unsigned int > | %x > ../arch/riscv/kernel/crash_core.c:14:64: error: 'VMEMMAP_START' undeclared (first use in this function) > 14 | vmcoreinfo_append_str("NUMBER(VMEMMAP_START)=0x%lx\n", VMEMMAP_START); > | ^~~~~~~~~~~~~ > ../arch/riscv/kernel/crash_core.c:15:62: error: 'VMEMMAP_END' undeclared (first use in this function); did you mean 'MEMREMAP_ENC'? > 15 | vmcoreinfo_append_str("NUMBER(VMEMMAP_END)=0x%lx\n", VMEMMAP_END); > | ^~~~~~~~~~~ > | MEMREMAP_ENC > > 64-bit only: > > ../arch/riscv/kernel/crash_core.c:17:64: error: 'MODULES_VADDR' undeclared (first use in this function) > 17 | vmcoreinfo_append_str("NUMBER(MODULES_VADDR)=0x%lx\n", MODULES_VADDR); > | ^~~~~~~~~~~~~ > ../arch/riscv/kernel/crash_core.c:18:62: error: 'MODULES_END' undeclared (first use in this function) > 18 | vmcoreinfo_append_str("NUMBER(MODULES_END)=0x%lx\n", MODULES_END); > | ^~~~~~~~~~~ > > > > -- > ~Randy >