Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp683456rdb; Sat, 19 Aug 2023 20:35:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWgGRe9hwPFH4cLC+m4F+gIqUMYRf6yvPta/EKF5K2o/+2Kb5hxac7ruBL2bl62YMbKJWW X-Received: by 2002:a05:6902:18ca:b0:d71:81f0:291f with SMTP id ck10-20020a05690218ca00b00d7181f0291fmr4762729ybb.24.1692502534844; Sat, 19 Aug 2023 20:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692502534; cv=none; d=google.com; s=arc-20160816; b=dfOUASBQiJbkRkfdqwCZttOkNGGVGjSrGYWEylMXrU3BZ9MqjOYE5nsIUR96WjGvrN FPs/SEFXnO13KyLncjyppMgj5t6DiIZqzwkS2YLtVsTQ7uc4zLeVYjCNIIB7bJ0Q9zGo v+4hwSb/FILVGULW4IB/NMzLZE/niXBlwUv5xM2gdwPyXLIYFuJg/ms4sMqVF4aYr0U4 9n+M4P/K75qtLF7gaTe0UY0OLEwZpzbFdF9HsaiJESMhvTPALCggoW/A3hjeBjeoiwDF 7EYbKBVls1ZrrwAOsMajkt+wpwRUj29WiIBb5MVRDaqkKe9r+bYaDwMkUxnmHIzXp4jw P0Ig== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=NfqJCzrVtHCMBnDvyHfbx6qihLCqrtp/yC/R4nSHTT0=; fh=3JTGVsCOJvgYRNx0T0+0iDJScVGHVgQJw6EIo/O9fRA=; b=JzxTi61oIZbZeYn24SlGNuWgqOdsyTTsxYxmLglO5K4ckHqMyQJ8S7WtEwhWWyiWzg 2WNZg4FqDvw8NOJrpEpXvgfd1NFHGUCsvh4b1/XowhguMtqhC6v5TH8gS8ORgqExE0Ut G2gBKxm6CbqMrFdVyqI3e9Jx/CEFNIUYgv4nBUpwP5DCNr2ljaTBoIeCJblUfYcBDeU+ YfSr+w4wDGV3j8FjGbjqg68L7mdFDB60S/ebkrCnoWPATpxgmUh2gnqSC566ZCKjfA1v /ATq+H6sf1unnJG4jrCoK80SYKn47O7q6VDCtprigyi2jVYFNVsvDTiplZ+8n7U7TqC1 QmZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R7gnCySX; 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 ca5-20020a056a00418500b00686f6b4ccf1si4587653pfb.389.2023.08.19.20.35.22; Sat, 19 Aug 2023 20:35:34 -0700 (PDT) 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=R7gnCySX; 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 S229540AbjHTANL (ORCPT + 99 others); Sat, 19 Aug 2023 20:13:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjHTAM4 (ORCPT ); Sat, 19 Aug 2023 20:12:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 779F1C10F6; Sat, 19 Aug 2023 14:01:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0EA4F60B3E; Sat, 19 Aug 2023 21:01:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68B79C433C7; Sat, 19 Aug 2023 21:01:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692478899; bh=qbe2iUOiLxtyxy6qhDWT7qx6g5/yVASiIpL3Yfiwj2c=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=R7gnCySXJb28CSSROnGH4ySy4pSdI8Q+MdQM1qNMg+kBZ03fPbJjv/H1KoZXScq43 gVHRqlrB+BZndtfAUHkUda+JyUgDU+iuIlh7O5PcSdHdQIrO80zlGkNjF7X+mH3SI+ wesLInlh8hc4VZ91Jo3uEOQJxvcAdJCdd9UHa6NFAGjwdIImPINCJPA/vkd5HIii6B vdu1Emvsif6hd3r2zfLTS3262erAvClM17c4XMWsYXd/kLmD3ZeXPaVQHoXzA1mMhE HfPNRq8WSXLClfohEh6ovun08k9hIpAgConk8u0/IlpRGRYE9+cPwsLXKlJGFczyur N02zfQCypMlmQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id CFBA0CE00C5; Sat, 19 Aug 2023 14:01:38 -0700 (PDT) Date: Sat, 19 Aug 2023 14:01:38 -0700 From: "Paul E. McKenney" To: Baoquan He Cc: eric.devolder@oracle.com, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, sfr@canb.auug.org.au, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, sourabhjain@linux.ibm.com, hbathini@linux.ibm.com Subject: Re: [BUG resend next-20230818] error: 'prepare_elf_headers' defined but not used Message-ID: Reply-To: paulmck@kernel.org References: <08fc20ef-854d-404a-b2f2-75941eeeccf8@paulmck-laptop> <4a991983-da2e-4fcd-965c-5b65de6700da@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 On Sat, Aug 19, 2023 at 09:04:33PM +0800, Baoquan He wrote: > On 08/18/23 at 07:28pm, Paul E. McKenney wrote: > > Hello! > > > > This morning's rcutorture testing on next-20230818 complained about > > prepare_elf_headers() being defined but unused on several rcutorture > > scenarios. The patch below makes rcutorture happy, but might or might > > not be a proper fix. > > > > This is a resend adding a few more people on CC, given a possible > > relationship to 9f1f399ca999 ("x86/crash: add x86 crash hotplug support"). > > > > Thoughts? > > > > Thanks for reporting this, Paul. > > > > ------------------------------------------------------------------------ > > > > diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c > > index 1d0f824559fce..926c39e22387b 100644 > > --- a/arch/x86/kernel/crash.c > > +++ b/arch/x86/kernel/crash.c > > @@ -127,7 +127,8 @@ void native_machine_crash_shutdown(struct pt_regs *regs) > > crash_save_cpu(regs, safe_smp_processor_id()); > > } > > > > -#if defined(CONFIG_KEXEC_FILE) || defined(CONFIG_CRASH_DUMP) > > +#if (defined(CONFIG_KEXEC_FILE) || defined(CONFIG_CRASH_DUMP)) && defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC) > > Hi Eric, > > Now prepare_elf_headers() is needed for kexec_file_load and crash > hotplug support of kexec_load, change it like this? > > #if defined(CONFIG_KEXEC_FILE) || defined(CONFIG_CRASH_HOTPLUG) If you mean the patch below: Tested-by: Paul E. McKenney ------------------------------------------------------------------------ diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c index 1d0f824559fc..c92d88680dbf 100644 --- a/arch/x86/kernel/crash.c +++ b/arch/x86/kernel/crash.c @@ -127,7 +127,7 @@ void native_machine_crash_shutdown(struct pt_regs *regs) crash_save_cpu(regs, safe_smp_processor_id()); } -#if defined(CONFIG_KEXEC_FILE) || defined(CONFIG_CRASH_DUMP) +#if defined(CONFIG_KEXEC_FILE) || defined(CONFIG_CRASH_HOTPLUG) static int get_nr_ram_ranges_callback(struct resource *res, void *arg) { unsigned int *nr_ranges = arg;