From nobody Fri Sep 12 03:18:50 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6777C04A6A for ; Wed, 9 Aug 2023 15:34:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234263AbjHIPel (ORCPT ); Wed, 9 Aug 2023 11:34:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233628AbjHIPeS (ORCPT ); Wed, 9 Aug 2023 11:34:18 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99B551FFE; Wed, 9 Aug 2023 08:34:17 -0700 (PDT) Date: Wed, 09 Aug 2023 15:34:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691595256; 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=kOQZtyiV/mVte89ngBCCE+6bJeYbCHADhyyYFZMpk/I=; b=Qs1IaYUAJKORn4Ctyc7GqnlA6WtApKqgEsqiqSuNXXGgM3u71lbS0VESY0xBKUWZhjVckG tHr1s6prWpkksW/sa1RKKxoTy9MCbeU8Lx+dwxgi1dWQZ3Fw8VK8G7fJ05W0BSSAbSvyTF d+NZWcXExpdaV/NdlUYsPe/DCIvmOo2kmydGrV7qU00/re8kSE/Fils2yYY8MnvFtcUlOJ 8t9oY9ZVrmonq3ls22cz4XVlNI1+02DyoWGg3+U6370kUSwvl/fWmm8IRQ3LQmZjnG/fBK Q8wvF5/mkUR0s3y8XluPOH5M0Ml+ED9MSYQibnFYvtDUTeTGfzsUT/f42JeLmw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691595256; 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=kOQZtyiV/mVte89ngBCCE+6bJeYbCHADhyyYFZMpk/I=; b=ahHgAcliwREPMiPAhHyeYFzn6DWODqoClfuWSccOSeFvmeDz00YP4gcgvgusfABhzBD3ah zx8/WEvw97x1u1CQ== From: "tip-bot2 for Dave Hansen" 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 mpparse 'apicid' variable Cc: Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <169159525576.27769.9210659733557995555.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/apic branch of tip: Commit-ID: 5339a560914093ea9c491a583e9df030308e0cb3 Gitweb: https://git.kernel.org/tip/5339a560914093ea9c491a583e9df0303= 08e0cb3 Author: Dave Hansen AuthorDate: Tue, 08 Aug 2023 15:03:47 -07:00 Committer: Dave Hansen CommitterDate: Wed, 09 Aug 2023 08:10:11 -07:00 x86/apic: Remove mpparse 'apicid' variable From: Dave Hansen Some truly ancient code had different ways of calculating the 'apicid' but it is long gone. Zap the unnecssary local variablee Signed-off-by: Dave Hansen --- arch/x86/kernel/mpparse.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 82518c1..333dee2 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c @@ -48,7 +48,6 @@ static int __init mpf_checksum(unsigned char *mp, int len) =20 static void __init MP_processor_info(struct mpc_cpu *m) { - int apicid; char *bootup_cpu =3D ""; =20 if (!(m->cpuflag & CPU_ENABLED)) { @@ -56,13 +55,11 @@ static void __init MP_processor_info(struct mpc_cpu *m) return; } =20 - apicid =3D m->apicid; - if (m->cpuflag & CPU_BOOTPROCESSOR) bootup_cpu =3D " (Bootup-CPU)"; =20 pr_info("Processor #%d%s\n", m->apicid, bootup_cpu); - generic_processor_info(apicid); + generic_processor_info(m->apicid); } =20 #ifdef CONFIG_X86_IO_APIC