From patchwork Wed Aug 9 15:34:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 133324 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2903848vqr; Wed, 9 Aug 2023 09:11:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjhgfzEirqcFvVm8KFmcNeiJbDJHRfeYdmZY4NWojckl9GnvHh1gWkw4pJ7AryHOmltkjs X-Received: by 2002:a17:90b:23d0:b0:268:f8c8:bd5c with SMTP id md16-20020a17090b23d000b00268f8c8bd5cmr16971061pjb.17.1691597494929; Wed, 09 Aug 2023 09:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691597494; cv=none; d=google.com; s=arc-20160816; b=J8fzrUsFG7xsVl0rIa/wrUv3VK93/0DTJn4kINOpPyQj/3dSEYFY5t/agSIS1bpueF q3/py0JRSK5QYlvBQxvoWOY6KhfmX3uNDfnWKEbOK4ed+SU7iCNngHOlETRFpioCWPIc ODF+IqI2z9uZsv3B+OpCEbiJIo21LNhyQmTPESHwHpEXIc7gqMINL9L2iVg3730BzOYu JaWfVmoQg0vG3VrYSWo9cgZof6y378LikJlqprBdTqAfXC4vwRB1nliMjbnuH8ATQj9J UflhPPo+Qvx26qT1ihVejMu1A+OvDjo475O+ldDPdaBAoC2B9yyrYPnnnaJAiZA/aKNw 1OPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=68pNK2WSfqBsYNWLreuIeEoYAihEbeOUP9b2PdtCLhk=; fh=xeBNGOuZM5vy4okdFvBNsMTGHQ6tdBlFPaNKCUScG5A=; b=bvWVSpcr4w98ihIbuJFmIoAXZRHgnxXpdcl9A92OMlLrhPabYQXRRulEAsEV6XaWXy JtFd4x6yu6O+1Is3YROx3240swdCCtTinMMOIZNNiqSXiH/dyVNulESZq+euqJ5RBJGc eg7+8IQXaZ6YG2c0pQfQlmXbA5WHALLQbkfkVPn39GKq49hL367NRfXXfQ80a2nbgpQe uNoIZD0/+hV6sGU1+TWCGucBAV+iJVhei9nrFTpY7LaNFmScjD2vShOVsFaBoFOFRFN1 FK4Esm43yM9DbhHhaP7kYP8JBPG4wIKuvRRN3ixyLdZL8qUbGrR/6Kp8GKikJJSLSfNN /LUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="OG/J39N+"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x21-20020a17090a8a9500b00263f3d759cdsi1749394pjn.78.2023.08.09.09.11.21; Wed, 09 Aug 2023 09:11: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=@linutronix.de header.s=2020 header.b="OG/J39N+"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231634AbjHIPew (ORCPT + 99 others); Wed, 9 Aug 2023 11:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233797AbjHIPeU (ORCPT ); Wed, 9 Aug 2023 11:34:20 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99AE82126; Wed, 9 Aug 2023 08:34:19 -0700 (PDT) Date: Wed, 09 Aug 2023 15:34:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691595258; h=from:from:sender:sender:reply-to: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; bh=68pNK2WSfqBsYNWLreuIeEoYAihEbeOUP9b2PdtCLhk=; b=OG/J39N+r/YfWsFnM5RDgo+oq7npFvI/k81pX5c7253atXpUWrxRB0b/SDbEzSCD04sMq2 SsGBl7y5qRLGR4XpiHrspYAJqNqwmBtD944Kru7g+L7zNYfOo4dCfh6YinJwJJJcCeiNMG pQCBsVr9kXtwKOXZ1czRrku4SkDKXWeajnWP70mHbUT/bdMN8em2eKnf7428cs88qMfBXj wHluBxZx2ba2bdkRaB3EVlJ7Vf7obxO6f2+1Bmwexx16ko0nZMubBDh0gKf7XsEK2XHnTc U0cKr3cEevEnHaTUVhB/r4LloUlStCLB6ktO8/g6gTtJ1E9QFkSLuxA58SOO+w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691595258; h=from:from:sender:sender:reply-to: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; bh=68pNK2WSfqBsYNWLreuIeEoYAihEbeOUP9b2PdtCLhk=; b=x7QfIAil13KS9m5aN/ywHB8HK23z2egmYc9mCThk7knbXS/m8OTc0wdpUSZLScYw0GgZv/ 0ysBDqTW/lsOI+Dw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] x86/apic: Remove unused max_physical_apicid Cc: Thomas Gleixner , Dave Hansen , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <169159525780.27769.2426680572871085690.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773768534771658272 X-GMAIL-MSGID: 1773768534771658272 The following commit has been merged into the x86/apic branch of tip: Commit-ID: 3fd3664b8e1a8dc088334a9410bc86635b9964f0 Gitweb: https://git.kernel.org/tip/3fd3664b8e1a8dc088334a9410bc86635b9964f0 Author: Thomas Gleixner AuthorDate: Tue, 08 Aug 2023 15:03:43 -07:00 Committer: Dave Hansen CommitterDate: Wed, 09 Aug 2023 08:10:10 -07:00 x86/apic: Remove unused max_physical_apicid max_physical_apicid is assigned but never read. Signed-off-by: Thomas Gleixner Signed-off-by: Dave Hansen Acked-by: Peter Zijlstra (Intel) --- arch/x86/kernel/apic/apic.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index ee64f8f..d6b5059 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -74,11 +74,6 @@ EXPORT_SYMBOL_GPL(boot_cpu_physical_apicid); u8 boot_cpu_apic_version __ro_after_init; /* - * The highest APIC ID seen during enumeration. - */ -static unsigned int max_physical_apicid; - -/* * Bitmask of physically existing CPUs: */ physid_mask_t phys_cpu_present_map; @@ -2541,9 +2536,6 @@ int generic_processor_info(int apicid, int version) boot_cpu_apic_version, cpu, version); } - if (apicid > max_physical_apicid) - max_physical_apicid = apicid; - #if defined(CONFIG_SMP) || defined(CONFIG_X86_64) early_per_cpu(x86_cpu_to_apicid, cpu) = apicid; #endif