From nobody Mon Feb 9 12:25:10 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBF37270EBF for ; Thu, 6 Mar 2025 20:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741294232; cv=none; b=db3DlUI0LSlc4ZR9teKgjIooQMoMt9/hyT7PFKbsIyrJh6Ol1scj9JLMWbxRfHvelACusuUyNGA+uY/8I43RsUCv7P9ijHX5q4iPdNtcDzQzZfCaIqrVxC95znmERwgk94r5iYtcowyAvTAH2o+eq0Lb/9NyRd4KP7vwkmbcua4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741294232; c=relaxed/simple; bh=etYCWwZuY6WBwGV1mwSClKPJGtnqn08gMHsF1t0ivMY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lJWAOg0Z+HjvXFHsNLqV9A94rvX8bnrcNQ4PfqK+wjR+0EucwFUJ57SZ9Lgiu0Hwi7MXzVQGtVfPvtDBg+mjX5Z0EEpsli/u2EcC3Ya37cDAOB7d0y/ICDv7h7pXJl8WCHGrVD1Pt4OL9Nqb9OTt+87KMn3gS/f1mRgZkisQcNU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=BKZwTppk; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Q58QeEmV; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="BKZwTppk"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Q58QeEmV" From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1741294228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W2PA07qsEgo3bJF/icLfJrJMUGWk+opu3HdPA13I9PQ=; b=BKZwTppkIVgdKDTiY11nCpOYAUjNH/Kgnb/qC8NBd44nJ+UzDq4nvx4OHs/UHTK7Nb665B 09zJSVWIKzIEix8x1Gz3HaaicKax7olAwpbC0Cykpa3j6x07B6yBJv1d1CmdNERmW0pbCC 3iE+gddxDEIJmMbrHhP9P4DNEA9RyBNVGZGV5WcmOz/c0stDYm1bnPJXiZ8v2fLR1f+Nrd ++iaaRDmocuuQ7m00sDMz/XMascToHzzyZDM11eGZWlLNAOpoTGWFg0fH+4HvNsrgOhOsU 01QdDDkZZBKiOs7OAukgv4mTgzTjtl5JREKWApTrBXr8OFj2l0RMhiUHLL3s6Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1741294228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W2PA07qsEgo3bJF/icLfJrJMUGWk+opu3HdPA13I9PQ=; b=Q58QeEmVpOgrjdHxdjldX7DImI7pQkv+bUrjkxGi9I0IotIsPmt0bwiq5B1sxIXyCBaH96 IWnGnlAu9qSOcUBw== To: Borislav Petkov , Ingo Molnar , Dave Hansen Cc: Thomas Gleixner , Andrew Cooper , "H. Peter Anvin" , x86@kernel.org, John Ogness , x86-cpuid@lists.linux.dev, LKML , "Ahmed S. Darwish" Subject: [PATCH v1 03/12] tools/x86/kcpuid: Remove unused global variable Date: Thu, 6 Mar 2025 21:49:51 +0100 Message-ID: <20250306205000.227399-4-darwi@linutronix.de> In-Reply-To: <20250306205000.227399-1-darwi@linutronix.de> References: <20250306205000.227399-1-darwi@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The global variable "is_amd" is not used anywhere. Remove it. Signed-off-by: Ahmed S. Darwish --- tools/arch/x86/kcpuid/kcpuid.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tools/arch/x86/kcpuid/kcpuid.c b/tools/arch/x86/kcpuid/kcpuid.c index 1159204b9902..ceed560cd8a3 100644 --- a/tools/arch/x86/kcpuid/kcpuid.c +++ b/tools/arch/x86/kcpuid/kcpuid.c @@ -78,7 +78,6 @@ struct cpuid_range { */ struct cpuid_range *leafs_basic, *leafs_ext; =20 -static bool is_amd; static bool show_details; static bool show_raw; static bool show_flags_only =3D true; @@ -571,16 +570,6 @@ static void show_info(void) =20 static void setup_platform_cpuid(void) { - u32 eax, ebx, ecx, edx; - - /* Check vendor */ - eax =3D ebx =3D ecx =3D edx =3D 0; - cpuid(&eax, &ebx, &ecx, &edx); - - /* "htuA" */ - if (ebx =3D=3D 0x68747541) - is_amd =3D true; - /* Setup leafs for the basic and extended range */ leafs_basic =3D setup_cpuid_range(0x0); leafs_ext =3D setup_cpuid_range(0x80000000); --=20 2.48.1