From nobody Fri Dec 19 17:52:12 2025 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 B63C3252913 for ; Wed, 12 Mar 2025 14:38:06 +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=1741790288; cv=none; b=EQ9A5TaQ/ECDzG1kwhS+aitRgj2S+ZDfl/YWhFQquu2WN1gyTSG3gJSPSAO7WYYNpSLUabJ07NYI6EYKiRhNjh6L3kIT2K5bAsVUVL48GyBqfmkP2hP0zQbwLdluRxyfden4ZdXOhLCdf0zm9GWJYadqR2tOaMr0QeJDSO/vUM8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741790288; c=relaxed/simple; bh=Ushz4JR4gBXwlY3rF7uYB5PnO6rgziwqmj7rQX1GkQw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Rc0GuUdc3cob2xvohE8m/zB3Td8OrJ2lIwR7V4Bzg2LBcEnaIPgmnzBstZ7vvFZ+ZG3P6qWUPhHP0jX/hMsQ4Q8CVE4Qe+F0FeVRDjQ3WvJRk3kuSO7Phnsm6TNyLjDcJ72PK2WjllFfW6RFUDxjJtVBxqSchrqkVH3QoZ0FO/g= 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=33tg6GIJ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=XFXTnEw/; 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="33tg6GIJ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="XFXTnEw/" From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1741790285; 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=6aVpvhv/pT52r13e6wll8TyOiNsXUS27/wMFfsB28/g=; b=33tg6GIJmdg0y8KK27z7FeGkRLv8mU2la1PmiDeg8PmUaQNWrCGlmPs/8LzhvEkGOO31/U VhSFH8pAiYQnkX5N+LlDuvSaR05B4bybwqSQvOwf1qOf3b3ZzbY3PiJIlymL+NNDcJy1J1 vnJeB7h0oIQu5Rg61993jYfEFQ7Xkx23CZ78mGFlePO2ctXUBiuPUKGTVpXwhbMgY5RT0o leFA8LIuTRcbGUFBKGgqxwJeU2krMujbSzBTj3hwUBV0/nXaolqqAlfurL/ZHIydjXTaPD 1MVxpKZ/yQ1QaVVyjzl27mq7spzb8whQeMeIYg2UVIs3m+eQk8XfL046qaOlfQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1741790285; 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=6aVpvhv/pT52r13e6wll8TyOiNsXUS27/wMFfsB28/g=; b=XFXTnEw/Ga6sbY7fVEayGl+SMZzilAN4EDI+pPiKrXSGtlp1pHjUEpZhxjDFiMg2yiBv28 Am+CiHBOUW/1PcDw== To: Ingo Molnar , Dave Hansen , Borislav Petkov Cc: Thomas Gleixner , Andrew Cooper , "H. Peter Anvin" , John Ogness , x86@kernel.org, x86-cpuid@lists.linux.dev, LKML , "Ahmed S. Darwish" Subject: [PATCH v2 06/20] tools/x86/kcpuid: Remove unused local variable Date: Wed, 12 Mar 2025 15:37:23 +0100 Message-ID: <20250312143738.458507-7-darwi@linutronix.de> In-Reply-To: <20250312143738.458507-1-darwi@linutronix.de> References: <20250312143738.458507-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 local variable "index" is written to, but is not read from anywhere. Remove it. Signed-off-by: Ahmed S. Darwish --- tools/arch/x86/kcpuid/kcpuid.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/arch/x86/kcpuid/kcpuid.c b/tools/arch/x86/kcpuid/kcpuid.c index d518a13e4386..a89da2af98e9 100644 --- a/tools/arch/x86/kcpuid/kcpuid.c +++ b/tools/arch/x86/kcpuid/kcpuid.c @@ -181,10 +181,6 @@ static void raw_dump_range(struct cpuid_range *range) =20 for (f =3D 0; (int)f < range->nr; f++) { struct cpuid_func *func =3D &range->funcs[f]; - u32 index =3D f; - - if (range->is_ext) - index +=3D 0x80000000; =20 /* Skip leaf without valid items */ if (!func->nr) --=20 2.48.1