Message ID | ZW04G/SKnhbE5mnX@MiWiFi-R3L-srv |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp2511384vqy; Sun, 3 Dec 2023 18:23:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGDBFapmDCR+0SyulsKhrKblkWM5OZKvrgsSwUJtWrBtjELNp32r6YXmpxRfNRffLdnADY5 X-Received: by 2002:a05:6358:281e:b0:16e:34f4:185b with SMTP id k30-20020a056358281e00b0016e34f4185bmr4800173rwb.20.1701656616891; Sun, 03 Dec 2023 18:23:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701656616; cv=none; d=google.com; s=arc-20160816; b=SZkHVVudzJ4Nbu8j6zY6Q1UvqmEvNIYddol8fF+0R0P588LnvSCk6KEzH+PG+/ar1b qIlu+U1rKJvwyvH4nJSD7OzGzsRbngiY9boU2r7Xc9rhgTBn8UqHk3Eyzrv9LnG8Pqd2 0Sam3zLA/g6TK9yipCAjYa3UMYO5WzmdLCAh8Aj4bTctGh0vwCLAe+I4HAw4LbAHsd5E /qDjSgcvEG/7s1XQeN/eVhYj8id6yKVPLRUKoKS1BCYTnyf9bUsyBIIo6Pr0bVjphjzV aQWn9ydUqVPGcmlV2oHtNV/5YUkwbTYZIZrRbQjs5BL8WKbNx8nRYQqGdQnWx0xDc1e0 QHtQ== 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=N3oj/lBQzpBpheCv8g6m9tnnqQ9YL5qzNhLYbMSq4hU=; fh=HAejCrz4htgyq+AHWa8EfdAgsX8pXGw7u/85G1yKZnc=; b=YAeDRWsizgPkDEFa63WE06HtVO+ffmBRFvMLrwX51dVhf+4naLuNsrd9YaDT7U9o4p CddyUClbeguSEyQFMVjqq5PL68lxdn12ZTvswYt7i898g9zlWMWyOPhKAnaU6iIBxu0z 6pMiILAXBekmAlNvQy7i0i/Xnnb5nIkHgmkbKqbyV6R43fTIwphKxnYWCUCP04fWzL0F taYfD0bGhg35vvHaAxtEfWeHx3U4MIuADHM/zyPPZ3nz7Lp2KmFcfEg1gpxMinAvFUsk 7tvuGZKkeCXHLHVgpRUiFIy509kMEKZn8RNxVoQltYzDlmNPMw9pEI3JUXnFafqxPerH xQpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SIKrtVdD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id k15-20020aa788cf000000b0068fe0f46f27si7158935pff.171.2023.12.03.18.23.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 18:23:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SIKrtVdD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 2D4DE8072442; Sun, 3 Dec 2023 18:23:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234331AbjLDCXZ (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Sun, 3 Dec 2023 21:23:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjLDCXY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 3 Dec 2023 21:23:24 -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 6BB0FCB for <linux-kernel@vger.kernel.org>; Sun, 3 Dec 2023 18:23:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701656609; 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=N3oj/lBQzpBpheCv8g6m9tnnqQ9YL5qzNhLYbMSq4hU=; b=SIKrtVdDtLNtboFkQnNvawwXMFgLcmNW1wgxoUEyKzNc8j/W7+2PREJSZZGVG4NW9KQFnd /SL00dOdwjEviiaXvC3tn0EJcz7wXTS5X7PtbWGCWE8EE7XHJkjoeQ6RpVnAcGsVBl4V9G ZQootjWlBjvEyGKP0sWpIThDTqR5aUo= 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-623-itdX0an8McWg5ZpBNZWuxQ-1; Sun, 03 Dec 2023 21:23:27 -0500 X-MC-Unique: itdX0an8McWg5ZpBNZWuxQ-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 6D4C180F82F; Mon, 4 Dec 2023 02:23:27 +0000 (UTC) Received: from localhost (unknown [10.72.113.121]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 80B4A2026D6E; Mon, 4 Dec 2023 02:23:26 +0000 (UTC) Date: Mon, 4 Dec 2023 10:23:23 +0800 From: Baoquan He <bhe@redhat.com> To: Randy Dunlap <rdunlap@infradead.org> Cc: Stephen Rothwell <sfr@canb.auug.org.au>, akpm@linux-foundation.org, ignat@cloudflare.com, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kexec@lists.infradead.org, eric_devolder@yahoo.com Subject: [PATCH 2/2] riscv, kexec: fix dependency of two items Message-ID: <ZW04G/SKnhbE5mnX@MiWiFi-R3L-srv> References: <ZW00/Cfk47Cc3kGo@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <ZW00/Cfk47Cc3kGo@MiWiFi-R3L-srv> 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 morse.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 03 Dec 2023 18:23:34 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784316288363936232 X-GMAIL-MSGID: 1784316288363936232 |
Series |
[1/2] riscv, crash: don't export some symbols when CONFIG_MMU=n
|
|
Commit Message
Baoquan He
Dec. 4, 2023, 2:23 a.m. UTC
Drop the dependency on MMU from ARCH_SUPPORTS_KEXEC and
ARCH_SUPPORTS_KEXEC_FILE because CONFIG_MMU could be disabled while
people may still want to have KEXEC/KEXEC_FILE functionality.
Signed-off-by: Baoquan He <bhe@redhat.com>
---
arch/riscv/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On 12/3/23 18:23, Baoquan He wrote: > Drop the dependency on MMU from ARCH_SUPPORTS_KEXEC and > ARCH_SUPPORTS_KEXEC_FILE because CONFIG_MMU could be disabled while > people may still want to have KEXEC/KEXEC_FILE functionality. > > Signed-off-by: Baoquan He <bhe@redhat.com> Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested Thanks. > --- > arch/riscv/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index 95a2a06acc6a..24c1799e2ec4 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -685,7 +685,7 @@ config RISCV_BOOT_SPINWAIT > If unsure what to do here, say N. > > config ARCH_SUPPORTS_KEXEC > - def_bool MMU > + def_bool y > > config ARCH_SELECTS_KEXEC > def_bool y > @@ -693,7 +693,7 @@ config ARCH_SELECTS_KEXEC > select HOTPLUG_CPU if SMP > > config ARCH_SUPPORTS_KEXEC_FILE > - def_bool 64BIT && MMU > + def_bool 64BIT > > config ARCH_SELECTS_KEXEC_FILE > def_bool y
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 95a2a06acc6a..24c1799e2ec4 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -685,7 +685,7 @@ config RISCV_BOOT_SPINWAIT If unsure what to do here, say N. config ARCH_SUPPORTS_KEXEC - def_bool MMU + def_bool y config ARCH_SELECTS_KEXEC def_bool y @@ -693,7 +693,7 @@ config ARCH_SELECTS_KEXEC select HOTPLUG_CPU if SMP config ARCH_SUPPORTS_KEXEC_FILE - def_bool 64BIT && MMU + def_bool 64BIT config ARCH_SELECTS_KEXEC_FILE def_bool y