Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp558570rwb; Wed, 7 Dec 2022 02:01:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf6mxH7+IJzn9LLmbqNkwK/Zgax3DpQawcHOt/YBUenMa5GqIMje0ZD1HJcucv/BS8ChJRQt X-Received: by 2002:aa7:c9d0:0:b0:458:ed79:ed5 with SMTP id i16-20020aa7c9d0000000b00458ed790ed5mr65500725edt.374.1670407269433; Wed, 07 Dec 2022 02:01:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670407269; cv=none; d=google.com; s=arc-20160816; b=ADPthaClC/VVJVODNftZrHJxseEjPorgOcj8ZOLUwZGxJWu6DMwAQ/dgnaQu8WAtyX 9kmZ5DldaYmS67m5vgpD7lQtnpo1I8IsBkdpxkFw4wKXK++iRtvLA8rHOyNUkNXJHSbj J0bh4wfuoXurnYTc+epAjx22Qmuj2Nwb2pqRoWtjDvXvxI/M36HUg4uIdSjC3d0u6FuS yh57txcUVjuDT00vjvbZ/ghVdT7ZePjXSmlXCKH+sA9K2aNOdOnbmAiIlSukeTotUj9P osMdxwnmpBDdUJxMGPnLGS27r2bqiPhBH8YOjh4AQ4UHLU9bsFJ6e28cfv67OZRtVW6j ZNRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ATznMBCzL3S1Vo19pkEiQhIoSTouyv20amxek+BLbgA=; b=nmXFxilS1F972FcMty8pqzVdaYdsxrfw9QMzmS6q437pinA+7AqdnGvBCzv51IMaM9 SERnT5lbtcYcl8hWRja8vh8YUNCbrvzjaRGDXnc5EnLQgSgjoCbvScAxKcVaqqo61Nid KxcLeaDcvjVcD8iEyr0QKuZrdoqRDgs4OSQUDqHXAGhLcYnG5BdMKNnA4Kfltiwt3aJH 2JmWcZj+g/BHFLNR2pSYzByxNRy5wiVLqVyd+msIg703AFg4wkF3U3ZYqhJcH9ErOwSM /9h9roEe5DI95F99+KXR30oa28hiYEcclpqaXaXc037N3BSBI6Y4cvhFLxRTyekv9y8S ytww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tl/xFYFy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n4-20020aa7c784000000b00463f8aad371si3351598eds.239.2022.12.07.02.00.51; Wed, 07 Dec 2022 02:01:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tl/xFYFy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230102AbiLGJLx (ORCPT + 76 others); Wed, 7 Dec 2022 04:11:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230032AbiLGJLd (ORCPT ); Wed, 7 Dec 2022 04:11:33 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1E902EF49; Wed, 7 Dec 2022 01:11:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2F45160AD9; Wed, 7 Dec 2022 09:11:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE5C7C433C1; Wed, 7 Dec 2022 09:11:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670404291; bh=+J9p7r7GyvB7mtC2Mdp1scaM+ReAbPChQfWFGWWj1h0=; h=From:To:Cc:Subject:Date:From; b=tl/xFYFy8V/+HKRLUzMbUO6Uee5tvFcSoxaeua2JXpWVeYh8NpSHm/4lKQONTO2w5 DpvaDNG1PV48NhUtybqbXDczK/IXTrnlGiv+mOtkAr2Lx7rPHg/X+9elCx2/ryxESZ Vvht0+A7QKoYiAyNEiEyvzlGKSXOgMLuYuRFgpKlfGyaIo9kfB3nlJZExSQXbsKKJV oOGJxqurKmJmyEPSXPWdukJtFIKY/n4of/0B5MpWU2k2sPXuuC/GeG60OuPndh7sLM 6FdsH46Ff8ySPucL2aQYCjRsgKCVIsWVami23clsBioEvq2Fzo6GjhmNxpSk7yBcpa kzHIDBzQ6d8rQ== From: guoren@kernel.org To: guoren@kernel.org, palmer@rivosinc.com, conor.dooley@microchip.com, liaochang1@huawei.com, lizhengyu3@huawei.com Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren , Conor Dooley , kernel test robot Subject: [PATCH] riscv: Fixup compile error with !MMU Date: Wed, 7 Dec 2022 04:11:12 -0500 Message-Id: <20221207091112.2258674-1-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren Current nommu_virt_defconfig can't compile: 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); | ^~~~~~~ Add MMU dependency for KEXEC_FILE. Fixes: 6261586e0c91 ("RISC-V: Add kexec_file support") Reported-by: Conor Dooley Reported-by: kernel test robot Signed-off-by: Guo Ren Signed-off-by: Guo Ren --- arch/riscv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index ef8d66de5f38..91319044fd13 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -496,7 +496,7 @@ config KEXEC_FILE select KEXEC_CORE select KEXEC_ELF select HAVE_IMA_KEXEC if IMA - depends on 64BIT + depends on 64BIT && MMU help This is new version of kexec system call. This system call is file based and takes file descriptors as system call argument -- 2.36.1