Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2172853rdb; Thu, 7 Dec 2023 23:31:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGE8upAAkQI085wJPVCNx9JwKoNhmHKBbA4mweaOmQxIt+Y7JWE0iOrj46OdR7J8hEaxHhx X-Received: by 2002:a17:902:d352:b0:1d0:723f:2350 with SMTP id l18-20020a170902d35200b001d0723f2350mr3998991plk.86.1702020710195; Thu, 07 Dec 2023 23:31:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702020710; cv=none; d=google.com; s=arc-20160816; b=tTyjYJhzmldegi6WjNwjPw12LAF+IIzuP2MhIRgKRgTGNjRtHXXOgVFxiRScQeytrL i9200GuFL+TH3YJNpLTO8E8SN4mekv6EtltAxvMlxFN7XGMwh2MziYYZ1YMLKaL1JsAe 1r8FtZcGLCGalELjNgAK8q+Ky8WzRDpou0BXUZ+vZ5yWwhee5X2rhxPYFSl2LNEEoItG +olkgd58FkXRT6ajorsWtUW0ceD3vftErDmbc2b1PiCcrJIGoaGcy7kqZKGXGDvO95Zl K81oow3tx3qbSwFaVGF71T+MTD/mLm6zqq1n3sw9uzYdvxUcaqLCiRO0oM4sO5C5Gi6A /pSw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ikUZzEB5I5Nehs7sVU1WeIaxCZi2Fx3EHlR7/8OM9/M=; fh=habjxf0YG4WcSNEaenG3Vo3U89MQlBfQp/ZbK3+3bDw=; b=QLuwRKHOc1YcuxtydJ7QZsPSFLjOWeFWi+lUh/0j3Iy98NepKf3q20ud9ef4IjpwsI td7LH5AFh8isOtcrXGYCq1ksHMK38pe/aRMR+HFEbrSvBTrw5Rf4BYzrcVoYBR/6693d 7lIu7rWCiyaFCnmwUkzTPJ2XcJX0VgwnvfUGPjDjVD7oLA3PiBPC8m2YyDzxFkv/fMGr F2IP2GwsJwJABmK+4SYHmk1nrM1TNXLa0WbsEjfzM1+3iZ1SPx560YGRKu7O5vWQb/3o kAy/9v4Lv8JxXWI+8tppiT//88AXY4bWPtGzOH1il4KzQjk8THq4vr8ylnTQ9Gy44XlT LyDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="L2ka/jxM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id q22-20020a170902b11600b001d09b00de2asi1084645plr.587.2023.12.07.23.31.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 23:31:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="L2ka/jxM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 15E958292A42; Thu, 7 Dec 2023 23:31:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573344AbjLHHbc (ORCPT + 99 others); Fri, 8 Dec 2023 02:31:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573264AbjLHHbP (ORCPT ); Fri, 8 Dec 2023 02:31:15 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 988D819A2 for ; Thu, 7 Dec 2023 23:31:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702020673; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ikUZzEB5I5Nehs7sVU1WeIaxCZi2Fx3EHlR7/8OM9/M=; b=L2ka/jxMRo30TyqExkZcIoFflqyAx4+KtUsBQIH//LdLZz1fq7l3R6vfi4nMmputSoOfRh 67fxAr3srr9n8yU1zUgHiMmqo9hDJuLnycBYdvBIRzIDLHxZKcBFR3wCmPxRw6y2WMBmNa DzB8N1sIJh/AZKD4M3kmi4paAPFZ820= 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-540-Kgqun5sNNqKgQtHaeJfxqA-1; Fri, 08 Dec 2023 02:31:10 -0500 X-MC-Unique: Kgqun5sNNqKgQtHaeJfxqA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (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 7AE9B185A782; Fri, 8 Dec 2023 07:31:09 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.72.112.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3517E8CD0; Fri, 8 Dec 2023 07:31:04 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-next@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-sh@vger.kernel.org, x86@kernel.org, akpm@linux-foundation.org, eric_devolder@yahoo.com, sfr@canb.auug.org.au, ignat@cloudflare.com, Baoquan He Subject: [PATCH 5/5] x86, kexec: fix the wrong ifdeffery CONFIG_KEXEC Date: Fri, 8 Dec 2023 15:30:36 +0800 Message-ID: <20231208073036.7884-6-bhe@redhat.com> In-Reply-To: <20231208073036.7884-1-bhe@redhat.com> References: <20231208073036.7884-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 07 Dec 2023 23:31:47 -0800 (PST) With the current ifdeffery CONFIG_KEXEC, get_cmdline_acpi_rsdp() is only available when kexec_load interface is taken, while kexec_file_load interface can't make use of it. Now change it to CONFIG_KEXEC_CORE. Signed-off-by: Baoquan He --- arch/x86/boot/compressed/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/acpi.c b/arch/x86/boot/compressed/acpi.c index 55c98fdd67d2..18d15d1ce87d 100644 --- a/arch/x86/boot/compressed/acpi.c +++ b/arch/x86/boot/compressed/acpi.c @@ -178,7 +178,7 @@ static unsigned long get_cmdline_acpi_rsdp(void) { unsigned long addr = 0; -#ifdef CONFIG_KEXEC +#ifdef CONFIG_KEXEC_CORE char val[MAX_ADDR_LEN] = { }; int ret; -- 2.41.0