From patchwork Wed Aug 9 19:12:27 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: 133541 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:9d8d:b0:139:fa0d:b2d with SMTP id d13csp154257rwo; Wed, 9 Aug 2023 14:28:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoyGvcrI8KMVVJ+h9DNDEFxKyHj8eFDJqzWC7p7drjJ1BmPP5Xcgh4JcPl87BMvYjGHFJg X-Received: by 2002:a05:6a00:2d9d:b0:687:3bc2:58de with SMTP id fb29-20020a056a002d9d00b006873bc258demr483794pfb.6.1691616510361; Wed, 09 Aug 2023 14:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691616510; cv=none; d=google.com; s=arc-20160816; b=hAOWJ13+6wpcjuxUfH/Z2gPSr/eqHNzPC6QmV7V10epTxpJ+BikB23+QlN4sOcxdkm a+YQLoI88grTuhr2r2ucWObuYTorZI/o9KmP4jYrUUxJ5r0ZgyV+/Q9X1ed+CDZOF9oJ a+6UbqShgkixVVtViNgh6/pgIxpXeL4g+0deC+5AzBD+IUYH89IE/rBeLGbZChWhtxvO mpZlkLY2kuIy0ULsSnuUJAXqgnQlSxvg91L4juaxZ1+Px9AsD0I6GIPktXIM7LW+4znF /ahXJQVR31YLL16nyAl4B8w8ZJ5dOCj0ZaUiHENaNO4TLgfZIrWx/Je2l+VUJ9hOcMHN JPYA== 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=nZ1fz7afZbS9ZifqQ0DfNP5YpS9PvP+lGgUyibxBptk=; fh=jBwjuriIPWA1lnCf5oMMiNAPpgGE0iGPmBzZMsd85oQ=; b=ehLm2qbauO9ihmXd4mlBKbgApvbx7F/jk1IxJM6nHEm3NQmF/23jWEwhFo5+6vCrtJ n0yxFH/Tw825CGadQzm7vNfNI0E2TPz4pFp1P2CcncFuvq2JOjBm9fkuncHUGZhXpmE1 hl4k7Ksl/68mI06th6BjUXbG1/lQE6TVH9M4maVoVF4TCExNXzSSV9QuJfkwkM2m5EA4 fh74xNO0CvRJIKXIn1g5E9oCTmOtJNoq3bCtPX6ObPpz7zjHTfbfUxuF9GLmcjTcw1tU pIO1oRyEMREciAvH0npoi2ZRkzzZ+zgJOFqBVcJG87dwpgLnvYuqsPI4alkXRXT9WW1W 6/Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ra9kBmT0; dkim=neutral (no key) header.i=@linutronix.de; 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 h64-20020a636c43000000b005653378ef3esi88540pgc.708.2023.08.09.14.28.17; Wed, 09 Aug 2023 14:28:30 -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=ra9kBmT0; dkim=neutral (no key) header.i=@linutronix.de; 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 S229591AbjHITOS (ORCPT + 99 others); Wed, 9 Aug 2023 15:14:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233443AbjHITNi (ORCPT ); Wed, 9 Aug 2023 15:13:38 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E9BB30F0; Wed, 9 Aug 2023 12:12:54 -0700 (PDT) Date: Wed, 09 Aug 2023 19:12:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691608348; 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=nZ1fz7afZbS9ZifqQ0DfNP5YpS9PvP+lGgUyibxBptk=; b=ra9kBmT0eRtIKiJ1dswIbS0ZnFl9n6nrGJcjezaa6upsDTu5SmlncDc90s+03g6+9P7+lA G6ekMJ0snPJMFQamP71fdB527wGud7j0fEmLyp+Xi2Zj+Zso2D1tUCICoSwIhKXtw4LsK9 x9EICIfPbI+/35az9shdgG66ikHUNaW6z1MmxxhQQUCPUHLRH87XKg/ovcciq5LrnGCIO5 2iYW5Qaj4Kpb3E6Rf+su9kwCNa32+0EsQUy5p1r8GbxXuKPZQubkrHXGcHwakaG5KUxiCm LhUZt3QMm/WvD5jfEprPg/5rbO85rK9gPjBGd1UB61KIL6gMYYYSrd2hGP7svA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691608348; 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=nZ1fz7afZbS9ZifqQ0DfNP5YpS9PvP+lGgUyibxBptk=; b=iDjXstr9cVxbGiJPk8oTTXuJSD5ui16Y3InniYxqb86X/9p4eBWLxSe+aFhO56mQ2brPuG k4ggdLCJz90AuACg== 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)" , Michael Kelley , Sohil Mehta , Juergen Gross , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <169160834775.27769.8839904065386107662.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: 1773788473739954813 The following commit has been merged into the x86/apic branch of tip: Commit-ID: b3bc5dd99462218602145581a1907c4143e9d015 Gitweb: https://git.kernel.org/tip/b3bc5dd99462218602145581a1907c4143e9d015 Author: Thomas Gleixner AuthorDate: Tue, 08 Aug 2023 15:03:43 -07:00 Committer: Dave Hansen CommitterDate: Wed, 09 Aug 2023 11:58:17 -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) Tested-by: Michael Kelley Tested-by: Sohil Mehta Tested-by: Juergen Gross # Xen PV (dom0 and unpriv. guest) --- 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