From nobody Fri Jul 24 22:56:49 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 0717E4749FB; Wed, 22 Jul 2026 16:37:52 +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=1784738274; cv=none; b=tKiSDV5LJ1bCamucIbnaeZ/p8ircnis+F3LRmW4bUUOmUz5jQ0QIIAa50kTRUi1hm8IB+p+PJtAMi2gg432dVv+kCER2ddeTEp+uLfGILZmImJx5KBpKmSNL1SE9C3SAmf8aP0Tf4pXkQzHJlv38h3g5tqvL3Drzh5Ii6XF8W1s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784738274; c=relaxed/simple; bh=GcA2MDNMtwbIOVM3lcn3bh0jGOUDl4pp3DE/U6qyuAU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=p6CWmCuaTy7GlYXHcOIFygePJ3H9TI8fmIxS7GXBWMEpt3NF+Phk6KQgXe0eBEKbxocyi+KSdifETyMSKNp8rqHT0tDMJZy8K4oTTwPzefgs9J04n9S3k4mF0mJyqluuh3YiAEa102VA2yXvp828UstMwr/cF9oJDnjt0FPZhnE= 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=cdgA0sSE; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=2iIKECKk; 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="cdgA0sSE"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2iIKECKk" Date: Wed, 22 Jul 2026 16:37:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784738270; 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: in-reply-to:in-reply-to:references:references; bh=En79mjJXpHEUzjDlGOBHwxsTnMWC28PSlhy85LdhC+U=; b=cdgA0sSEWk+EhPmMnXop7KAviWUQ+OT16Uuhi4qsEAf4sAiQcB+Jott162uxYNaT2hofla 8pFQKNVStr7giDp/Izmt/6AzXsZx0yFX4nttS5nrSfXgsNMoiD/G5FdZlYOWvgIDyfxXG2 3dY4mA/ZnfM74FkY/uSZP6pvaTT419lVBOrodTnW2RW+GAL0DhKLJ9eRHp/ntxOSixS/XS MhoODNeR371tceqnVtqxPvq3EMfkzBdW9TC08HDGl7175ahZRazcBrowsryaAP3lpNI+9J NvGmJnR2/m7R74gkBgLQ+DtdPaqbZ+WiQfuRPugOMg/jTa63dtc97fBqDgUCQg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784738270; 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: in-reply-to:in-reply-to:references:references; bh=En79mjJXpHEUzjDlGOBHwxsTnMWC28PSlhy85LdhC+U=; b=2iIKECKkOf2/coKRXojA3gGViHUK6iw7H95FfXBQJjwHtKEyQ434nyQMg5fRchYDFJZNIj OGUh78MwDboWzFDg== From: "tip-bot2 for Thorsten Blum" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/cpu: Remove unnecessary __maybe_unused annotations Cc: Thorsten Blum , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260630083031.683508-2-thorsten.blum@linux.dev> References: <20260630083031.683508-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178473826856.2943223.10539831876375506994.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 10b45e63a5b010be59ecbd2e437744adb12f838a Gitweb: https://git.kernel.org/tip/10b45e63a5b010be59ecbd2e437744adb= 12f838a Author: Thorsten Blum AuthorDate: Tue, 30 Jun 2026 10:30:30 +02:00 Committer: Borislav Petkov (AMD) CommitterDate: Wed, 22 Jul 2026 09:09:44 -07:00 x86/cpu: Remove unnecessary __maybe_unused annotations Remove __maybe_unused from variables and functions that are referenced unconditionally. Signed-off-by: Thorsten Blum Signed-off-by: Borislav Petkov (AMD) Link: https://patch.msgid.link/20260630083031.683508-2-thorsten.blum@linux.= dev --- arch/x86/kernel/cpu/common.c | 2 +- arch/x86/kernel/cpu/microcode/amd.c | 3 +-- arch/x86/kernel/cpu/topology_common.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index a3df21d..63cab05 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -1651,7 +1651,7 @@ static inline bool parse_set_clear_cpuid(char *arg, b= ool set) int taint =3D 0; =20 while (arg) { - bool found __maybe_unused =3D false; + bool found =3D false; unsigned int bit; =20 opt =3D strsep(&arg, ","); diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/micr= ocode/amd.c index 531dfb7..6cdc410 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -136,8 +136,7 @@ struct cont_desc { * Microcode patch container file is prepended to the initrd in cpio * format. See Documentation/arch/x86/microcode.rst */ -static const char -ucode_path[] __maybe_unused =3D "kernel/x86/microcode/AuthenticAMD.bin"; +static const char ucode_path[] =3D "kernel/x86/microcode/AuthenticAMD.bin"; =20 /* * This is CPUID(1).EAX on the BSP. It is used in two ways: diff --git a/arch/x86/kernel/cpu/topology_common.c b/arch/x86/kernel/cpu/to= pology_common.c index cf75134..f0b0a91 100644 --- a/arch/x86/kernel/cpu/topology_common.c +++ b/arch/x86/kernel/cpu/topology_common.c @@ -62,7 +62,7 @@ const char *get_topology_cpu_type_name(struct cpuinfo_x86= *c) } } =20 -static unsigned int __maybe_unused parse_num_cores_legacy(struct cpuinfo_x= 86 *c) +static unsigned int parse_num_cores_legacy(struct cpuinfo_x86 *c) { struct { u32 cache_type : 5,