Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp983594rdb; Sun, 20 Aug 2023 11:23:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2eD8AlHd98DmK+yytjM4qbwgjguxqghqrVjBB0wcach5S5V70N7MquyNGdPjqBfVj4MNp X-Received: by 2002:a9d:734d:0:b0:6b7:1fcd:1e22 with SMTP id l13-20020a9d734d000000b006b71fcd1e22mr5763172otk.29.1692555790654; Sun, 20 Aug 2023 11:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692555790; cv=none; d=google.com; s=arc-20160816; b=xwOk1hy15Zb+0WCRkHdw8rzgr+k8LqmpluXoj1D8BNl8ZavFgUfNhCrphwep/6iTuY hUeBl2f8+VpRmV/J7DO0x4O37GfXU9QlBB3VvxUU/XrqZH8aasFxiOe/EX/DiJnREpKQ oi29lHzmQjBjnTm7PP52MslcKQ+lVh/zUZp4RNe7g0RMc5lU9P6gW0nLCd30RM987O7P DXCCA/k4LDwFPHGNmco2RkB7/FGL2JBx5DvYSJd2W7+LghPfdIaXCBvFzjezbYEJ6Y1m 44m9Tq+aebG+QRIX5UsvS71Bhv4+ZdL4lUNlKkuhWxgOnmNzSjRX4eClW90ltrttCeN8 xsMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=xowfwkyZU7Q6FaAmWRlkvnY55rLrRCGW2XKrpsougf4=; fh=/ILXecGVjh94a2n1N5C0WXGi69ehHaCc/gK/caa1uXw=; b=IobXp0ptXmX751xpYq0vXliYGu3LubPmuX7HJqjsF2ERhpSk2y6yNxFli6O86ZCiUa mAp+JL8GF7W71V/3aZAssAJao6PEHY1cSVj8zx+TPfmJte8mXYRxwI08wRUDlusCVcjk 7FHe3G6ltFUviaQmtzz3v17R0rxkb/AFwYdIaOGvA4ZEqy4wSJeCFxxBb5tJYdZF5Q0i bG7pw025f96KRUdlZaiHW70SmNmez/S68TXOeFd67eW7oi56IycQgFGa+EaACs3/vB1Y xZSev2nT1LCnDIdQwg4eprwg4tNDYSkpB7p7Hff1rnwtExyFsZpRLsyLb0FtYxKwaShv yrRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sifg1jVn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bv7-20020a632e07000000b0056a750ed799si2264099pgb.239.2023.08.20.11.23.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 11:23:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sifg1jVn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1EB9235D7B5; Sat, 19 Aug 2023 12:07:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239418AbjHRSH1 (ORCPT + 99 others); Fri, 18 Aug 2023 14:07:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379340AbjHRSHN (ORCPT ); Fri, 18 Aug 2023 14:07:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 722F02D70; Fri, 18 Aug 2023 11:07:12 -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 ECD65616B0; Fri, 18 Aug 2023 18:07:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EDE2C433C8; Fri, 18 Aug 2023 18:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692382031; bh=8bazFKC2EtD5qKvG3tFrbUBhe0yoc4Mir5hc0laHKwc=; h=Date:From:To:Cc:Subject:Reply-To:From; b=sifg1jVnl3dmDGkgBrKYqRHMkKVTqGylITP0QwHlWSXw2wzlRGVWigvfG7Cx12xrH vDleChZKhI+RG2hyqI/buzSPwfEFrUR9w+G3T10bLq1nvQWJylweqd17AAeDXcyXBX tD3QJ7rfGljQvO4C6Vz0YB0EMp9qlQK+xk6ra4Q5f2nCxUs2MFtdEdkhYTmPEkvuX1 USYMKew1I2DQ9hbTj+n/ikHQqvJc8GDsqhuLkMz4ubKUmkk0GE2PJQw4yDLEJtuAMs NMmmeDTqimRkbLYxrltx3Cw4vn7aXAJnk9wcD6oEhAg87KHmhz3+g/sP+9GXgXZWpO HG1R6V2oug6yw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id CB9ABCE039C; Fri, 18 Aug 2023 11:07:10 -0700 (PDT) Date: Fri, 18 Aug 2023 11:07:10 -0700 From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org, linux-next@vger.kernel.org Cc: 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 Subject: [BUG next-20230818] error: 'prepare_elf_headers' defined but not used Message-ID: <08fc20ef-854d-404a-b2f2-75941eeeccf8@paulmck-laptop> Reply-To: paulmck@kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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. Thoughts? Thanx, 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) + static int get_nr_ram_ranges_callback(struct resource *res, void *arg) { unsigned int *nr_ranges = arg;