From nobody Mon Oct 6 11:49:35 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 3C3942BE65A; Tue, 22 Jul 2025 06:55:02 +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=1753167304; cv=none; b=RSJZ3M8oHZw1w28HjywrHN952okeoTxgdElcQ2bh9uOjRH+bGYSCa2jfpOQPNhwYggu/MXFXUokTFS7b6+zwgeowW0f14C1nTcPuvdkGXu+ABlk8hyurkQC1BLxWuilbnqFOMMxS/PewaoJtZmaM92vmNqKiJnoFukJ5cOg7tdQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753167304; c=relaxed/simple; bh=SYRZmFM3Ioa0y0H9EeRaz2/V19DLQSJh6KQlg7ks8hM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iQwkh6FUfFxDYzV6pQ8AqhoUCHzSvUNGwkGIbh04mQDqLDDU5pgNERpZoiWiv23xQmQPxRkGycOckoF7dbObf+Qy98WYTVaFHmswD2YuypIWmOQrNRmKHQc+0Xqapw0UAOEiRS+tfO7ccMrTrBWBEbAISwkpqFLwqjGLd1aeuts= 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=HNjUCpzO; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=5FvV19kY; 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="HNjUCpzO"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="5FvV19kY" From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1753167301; 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=d8Xp1mFPuuaOTq+ytYDakiRoJMAib8ShAL5vVh6jiIQ=; b=HNjUCpzOOioYZCdMTLci1nbZM8oeCG6SSuPiAsN8UccDWgoETYODcQ7NjP1FD3eOwlSOQ6 TyLvY3p3n/WRTIh/Ek+ofOyy8VZ3tZZAutCcoxXmP8C0nFkdM1yeRWyMqfaNUE7OwLcRuG hZ32jhAS9Xt37FAOPo7v3SuHB+Uxnp1b2Tf03rEry8J56NF22GKSkiYFu5Y/Nnc/kGMnwe bBrdXv4k2I4Yvb1zQkggp7waXAtjBVMK3HXb9qS0J8kiBsnpT4Tkx0ih4fFxYfCiPa5We+ zrWbAG6O02wwJ+DUQK8W2WsbxEV/K0XLjsfTz35tnoUeohiZa3qVkKT/gZMcXA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1753167301; 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=d8Xp1mFPuuaOTq+ytYDakiRoJMAib8ShAL5vVh6jiIQ=; b=5FvV19kYF6VmAJOTrrtW21MdyhFwDyYvQuQ5I2jPdZtaoqFaokybrSOiAY2dk/XUAFHQvm /t3x43uJvneYW8Bg== To: Borislav Petkov , Ingo Molnar , Dave Hansen Cc: Thomas Gleixner , Andrew Cooper , Paolo Bonzini , Vitaly Kuznetsov , Sean Christopherson , Juergen Gross , Boris Ostrovsky , Greg Kroah-Hartman , John Ogness , x86@kernel.org, kvm@vger.kernel.org, x86-cpuid@lists.linux.dev, LKML , "Ahmed S. Darwish" Subject: [PATCH v3 1/6] x86/cpuid: Remove transitional header Date: Tue, 22 Jul 2025 08:54:26 +0200 Message-ID: <20250722065448.413503-2-darwi@linutronix.de> In-Reply-To: <20250722065448.413503-1-darwi@linutronix.de> References: <20250722065448.413503-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" All CPUID call sites were updated at commit: 968e30006807 ("x86/cpuid: Set as the main CPUID heade= r") to include instead of . The header was still retained as a wrapper, just in case some new code in -next started using it. Now that everything is merged to Linus' tree, remove the header. Signed-off-by: Ahmed S. Darwish --- arch/x86/include/asm/cpuid.h | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 arch/x86/include/asm/cpuid.h diff --git a/arch/x86/include/asm/cpuid.h b/arch/x86/include/asm/cpuid.h deleted file mode 100644 index d5749b25fa10..000000000000 --- a/arch/x86/include/asm/cpuid.h +++ /dev/null @@ -1,8 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ - -#ifndef _ASM_X86_CPUID_H -#define _ASM_X86_CPUID_H - -#include - -#endif /* _ASM_X86_CPUID_H */ --=20 2.50.1 From nobody Mon Oct 6 11:49:35 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 3CFD22C15A6; Tue, 22 Jul 2025 06:55: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=1753167307; cv=none; b=WmqzO0ZxymNvCMt/LsYadaakwCKcO855R0vDGpwwY+Wzth63A79l+pCuievuJhxvlE2w3ItL9COEj76Z47APm7CO21GlD3BmPKLcAzP+932p8WXWCnsNrzKt60D72Y3SmEpvrPkjI8bnww1XXS/2byXbToXRkD7daX+HXX1IqSM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753167307; c=relaxed/simple; bh=l8ElQRAT1Hszveqk+X21k8IIcIZzDZmj+WUDZsTY2C0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MbLJLjruNk2HLd/YcUUG6KH8oV1O7C+VE37P3bOwzISGHNMblqKvdJahJBy49u373l7JKpUsIt5SLUVa8Y50iqCNfiJialKez06OxFvTmpOp+0VrNjBJHtvLI4PT9rZg2mN0Wr5zVpD9yusM12q9nsk57W5vnO5bPqQ+5HDy87I= 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=OG19vllZ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=dNw/FxhJ; 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="OG19vllZ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dNw/FxhJ" From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1753167304; 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=ILIDCHvFGsvZiwtpyNNKEdOsJOlcSIX04cXR7l0HOA4=; b=OG19vllZs4UMcY4cnu/AVu1BgRj0SPpqQm3S0/Q2w03HX1Ahsb5t5hD5eZmXxf9P2Q9pbE N8D3TBKMzI2Pz5QzGEdaNONpAXTZ0QCGLF9fFY7xqkbUPM3aZS2+ojE9HLqhfmEiAJz/iA 7Yymi1J2rpnr0LecWS27/sCmlknbCRDC5tMh2yG7xRabUTEouCPK6vGeIsBVgFNr9p/v9U m5A+wq5eqk1NrgIhURBIETINXJXYih9t77HcIybWjqr5v6/vQbsmzq0XtXew63RmLgF99f UuKoVixB8IFjVZolkK/uBeRLcf0R2kglqINpYruYxJhO8PrXFtyWmfzOg9D5dg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1753167304; 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=ILIDCHvFGsvZiwtpyNNKEdOsJOlcSIX04cXR7l0HOA4=; b=dNw/FxhJUcL6PJCsOv2mAlgc5LiKPrccT4pu5JjTfHuWN5Ql1KwwsgfbqU14oZx9exWAgS /WV2znulzlPCdIDw== To: Borislav Petkov , Ingo Molnar , Dave Hansen Cc: Thomas Gleixner , Andrew Cooper , Paolo Bonzini , Vitaly Kuznetsov , Sean Christopherson , Juergen Gross , Boris Ostrovsky , Greg Kroah-Hartman , John Ogness , x86@kernel.org, kvm@vger.kernel.org, x86-cpuid@lists.linux.dev, LKML , "Ahmed S. Darwish" Subject: [PATCH v3 2/6] ASoC: Intel: avs: Include CPUID header at file scope Date: Tue, 22 Jul 2025 08:54:27 +0200 Message-ID: <20250722065448.413503-3-darwi@linutronix.de> In-Reply-To: <20250722065448.413503-1-darwi@linutronix.de> References: <20250722065448.413503-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" Commit cbe37a4d2b3c ("ASoC: Intel: avs: Configure basefw on TGL-based platform= s") includes the main CPUID header from within a C function. This works by luck and forbids valid refactorings inside the CPUID header. Include the CPUID header at file scope instead. Note, for the CPUID(0x15) leaf number, use CPUID_LEAF_TSC instead of defining a custom local macro for it. Signed-off-by: Ahmed S. Darwish Acked-by: Cezary Rojewski --- sound/soc/intel/avs/tgl.c | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/sound/soc/intel/avs/tgl.c b/sound/soc/intel/avs/tgl.c index 9dbb3ad0954a..cf19d3a7ced2 100644 --- a/sound/soc/intel/avs/tgl.c +++ b/sound/soc/intel/avs/tgl.c @@ -10,8 +10,6 @@ #include "avs.h" #include "messages.h" =20 -#define CPUID_TSC_LEAF 0x15 - static int avs_tgl_dsp_core_power(struct avs_dev *adev, u32 core_mask, boo= l power) { core_mask &=3D AVS_MAIN_CORE_MASK; @@ -39,22 +37,31 @@ static int avs_tgl_dsp_core_stall(struct avs_dev *adev,= u32 core_mask, bool stal return avs_dsp_core_stall(adev, core_mask, stall); } =20 +#ifdef CONFIG_X86 +#include +static unsigned int intel_crystal_freq_hz(void) +{ + return cpuid_ecx(CPUID_LEAF_TSC); +} +#else +static unsigned int intel_crystal_freq_hz(void) +{ + return 0; +} +#endif /* !CONFIG_X86 */ + static int avs_tgl_config_basefw(struct avs_dev *adev) { + unsigned int freq =3D intel_crystal_freq_hz(); struct pci_dev *pci =3D adev->base.pci; struct avs_bus_hwid hwid; int ret; -#ifdef CONFIG_X86 - unsigned int ecx; =20 -#include - ecx =3D cpuid_ecx(CPUID_TSC_LEAF); - if (ecx) { - ret =3D avs_ipc_set_fw_config(adev, 1, AVS_FW_CFG_XTAL_FREQ_HZ, sizeof(e= cx), &ecx); + if (freq) { + ret =3D avs_ipc_set_fw_config(adev, 1, AVS_FW_CFG_XTAL_FREQ_HZ, sizeof(f= req), &freq); if (ret) return AVS_IPC_RET(ret); } -#endif =20 hwid.device =3D pci->device; hwid.subsystem =3D pci->subsystem_vendor | (pci->subsystem_device << 16); --=20 2.50.1 From nobody Mon Oct 6 11:49:35 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 3052A2D2389; Tue, 22 Jul 2025 06:55:09 +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=1753167313; cv=none; b=hi2IY1tenjO4cnvYZecENxM74eX4JO2v5HkrLvaPB8pit+Xv/ZtCSpJH9xXzJMzmGqT3R4fuUQJ77SuqlSPsZ61vJ7rFjHVrwIkAhVux2L4YWoUSmBpwKgyadpPjS4Dap3AOSzl2MDS359yYYtqrlB01ckHRPTSGOxahb2cdAsc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753167313; c=relaxed/simple; bh=Wi4Jxmpq9cANQHbso0xbmktejffaFQEgu9m2t1MRxM0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CIoc+9GvHlQUZ1WWcLFtgv+mHhv6nMQEjFDrew4MbpS77ewnotL7+Vh7jxXrngNMnVl7yR+8UV0JR5qRAyNRQo90Ri3ig9Q33UxnB3RnGbXp8K10gLI8ezAWUuvf8P5QdZvB5ToV9sh+DX6YW91+7c16vvv+o+FU9Kzav56V1IM= 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=QcWXQKt3; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=+WdnQ5RH; 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="QcWXQKt3"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="+WdnQ5RH" From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1753167308; 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=3cNcEPW2ddSP7M2ewRfFQsZP/E0DY9yrPQ/boh/Rac8=; b=QcWXQKt3+ATBx0GGjuNTqIJM+35LpJUOwzl2/qbIFBWgLbRYqBwdHHnkXG1DkzrRgEnpOH 7H6itvq+EUhr6b/9sxNEBPEYkcowEp/0bAp+97wsW7DhKXBuuZKyWj1naAcNbfhxNXXkAo v/0xme9+VsY1oog/74wn9Zvs75IXrklgOXRZhi6fI6ZqmikSH0xvPiop9U6ohd4NpvRErL p9CsmBxGk3v4e5RRoSIogE3n3mg0RsGjV2OJn6P+7qo+ZnnxWrlxE1o6to0DZRz907DFL8 oryIpd8YF7AN4G11PfSGabYRSaEJ+nBWwM9QmCaJPaorUOXf4GaXBfBplUWc/g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1753167308; 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=3cNcEPW2ddSP7M2ewRfFQsZP/E0DY9yrPQ/boh/Rac8=; b=+WdnQ5RHSme7cr8dDcrmIJpQ2BR0ZJB1eg0IG9ZVKUT9qpyP2nLDGIEo1fm7LOm8/rRSqi hZ+AALK1T8HqlTCg== To: Borislav Petkov , Ingo Molnar , Dave Hansen Cc: Thomas Gleixner , Andrew Cooper , Paolo Bonzini , Vitaly Kuznetsov , Sean Christopherson , Juergen Gross , Boris Ostrovsky , Greg Kroah-Hartman , John Ogness , x86@kernel.org, kvm@vger.kernel.org, x86-cpuid@lists.linux.dev, LKML , "Ahmed S. Darwish" Subject: [PATCH v3 3/6] x86: Reorder headers alphabetically Date: Tue, 22 Jul 2025 08:54:28 +0200 Message-ID: <20250722065448.413503-4-darwi@linutronix.de> In-Reply-To: <20250722065448.413503-1-darwi@linutronix.de> References: <20250722065448.413503-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" Multiple x86 source files use the cpuid_*() macros, but implicitly include the main CPUID API header. Sort their include lines so that can be explicitly included next. Signed-off-by: Ahmed S. Darwish --- arch/x86/boot/startup/sme.c | 8 +-- arch/x86/coco/tdx/tdx.c | 5 +- arch/x86/events/amd/uncore.c | 14 +++--- arch/x86/events/zhaoxin/core.c | 11 ++--- arch/x86/kernel/apic/apic.c | 70 +++++++++++++-------------- arch/x86/kernel/cpu/amd.c | 25 +++++----- arch/x86/kernel/cpu/mce/core.c | 62 ++++++++++++------------ arch/x86/kernel/cpu/microcode/amd.c | 12 ++--- arch/x86/kernel/cpu/microcode/core.c | 22 ++++----- arch/x86/kernel/cpu/microcode/intel.c | 11 +++-- arch/x86/kernel/cpu/mshyperv.c | 28 ++++++----- arch/x86/kernel/cpu/resctrl/core.c | 5 +- arch/x86/kernel/cpu/scattered.c | 2 +- arch/x86/kernel/cpu/topology_common.c | 2 +- arch/x86/kernel/cpu/vmware.c | 13 ++--- arch/x86/kernel/jailhouse.c | 9 ++-- arch/x86/kernel/kvm.c | 35 +++++++------- arch/x86/kernel/paravirt.c | 28 +++++------ arch/x86/kvm/mmu/mmu.c | 56 ++++++++++----------- arch/x86/kvm/svm/sev.c | 25 +++++----- arch/x86/kvm/svm/svm.c | 50 +++++++++---------- arch/x86/kvm/vmx/pmu_intel.c | 6 ++- arch/x86/kvm/vmx/sgx.c | 2 +- arch/x86/kvm/vmx/vmx.c | 18 +++---- arch/x86/mm/pti.c | 21 ++++---- arch/x86/pci/xen.c | 22 ++++----- arch/x86/xen/enlighten_hvm.c | 12 ++--- arch/x86/xen/pmu.c | 12 +++-- arch/x86/xen/time.c | 22 +++++---- 29 files changed, 312 insertions(+), 296 deletions(-) diff --git a/arch/x86/boot/startup/sme.c b/arch/x86/boot/startup/sme.c index 70ea1748c0a7..922b236be02f 100644 --- a/arch/x86/boot/startup/sme.c +++ b/arch/x86/boot/startup/sme.c @@ -34,15 +34,15 @@ */ #define USE_EARLY_PGTABLE_L5 =20 +#include #include -#include #include -#include +#include =20 +#include #include -#include #include -#include +#include #include =20 #define PGD_FLAGS _KERNPG_TABLE_NOENC diff --git a/arch/x86/coco/tdx/tdx.c b/arch/x86/coco/tdx/tdx.c index 7b2833705d47..7bc11836c46a 100644 --- a/arch/x86/coco/tdx/tdx.c +++ b/arch/x86/coco/tdx/tdx.c @@ -8,16 +8,17 @@ #include #include #include + #include -#include -#include #include #include #include #include #include #include +#include #include +#include =20 /* MMIO direction */ #define EPT_READ 0 diff --git a/arch/x86/events/amd/uncore.c b/arch/x86/events/amd/uncore.c index e8b6af199c73..c1483ef16c0b 100644 --- a/arch/x86/events/amd/uncore.c +++ b/arch/x86/events/amd/uncore.c @@ -5,18 +5,18 @@ * Author: Jacob Shin */ =20 -#include -#include -#include -#include -#include #include -#include #include +#include +#include +#include +#include +#include #include +#include =20 -#include #include +#include =20 #define NUM_COUNTERS_NB 4 #define NUM_COUNTERS_L2 4 diff --git a/arch/x86/events/zhaoxin/core.c b/arch/x86/events/zhaoxin/core.c index 4bdfcf091200..d59992364880 100644 --- a/arch/x86/events/zhaoxin/core.c +++ b/arch/x86/events/zhaoxin/core.c @@ -5,16 +5,16 @@ =20 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 -#include -#include -#include -#include #include +#include #include +#include +#include +#include =20 +#include #include #include -#include #include =20 #include "../perf_event.h" @@ -616,4 +616,3 @@ __init int zhaoxin_pmu_init(void) =20 return 0; } - diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index d73ba5a7b623..f0e63842e2ef 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -15,57 +15,57 @@ * Mikael Pettersson : PM converted to driver model. */ =20 -#include -#include -#include #include +#include #include #include -#include -#include -#include -#include -#include -#include +#include #include -#include -#include #include -#include -#include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include =20 #include =20 -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include +#include +#include +#include +#include #include #include -#include -#include -#include -#include -#include -#include #include -#include +#include #include +#include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include =20 #include "local.h" =20 diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 329ee185d8cc..c98b0d952537 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -1,32 +1,33 @@ // SPDX-License-Identifier: GPL-2.0-only -#include + #include #include -#include - +#include #include +#include +#include +#include #include #include -#include #include -#include -#include + #include #include #include #include -#include -#include +#include +#include +#include #include #include -#include -#include +#include #include -#include #include +#include +#include =20 #ifdef CONFIG_X86_64 -# include +#include #endif =20 #include "cpu.h" diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c index 4da4eab56c81..5a11c522ea97 100644 --- a/arch/x86/kernel/cpu/mce/core.c +++ b/arch/x86/kernel/cpu/mce/core.c @@ -9,52 +9,52 @@ * Author: Andi Kleen */ =20 -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include #include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include #include -#include +#include +#include +#include #include -#include +#include +#include #include -#include -#include -#include -#include -#include -#include +#include +#include +#include #include +#include +#include +#include #include +#include +#include #include -#include -#include +#include +#include +#include =20 -#include #include -#include -#include -#include +#include #include #include +#include #include #include +#include +#include =20 #include "internal.h" =20 diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/micr= ocode/amd.c index 097e39327942..fc62ebf96f01 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -21,23 +21,23 @@ */ #define pr_fmt(fmt) "microcode: " fmt =20 +#include #include #include -#include -#include -#include #include #include #include +#include +#include =20 #include =20 -#include -#include #include -#include #include +#include #include +#include +#include #include =20 #include "internal.h" diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/mic= rocode/core.c index fe50eb5b7c4a..9243ed3ded85 100644 --- a/arch/x86/kernel/cpu/microcode/core.c +++ b/arch/x86/kernel/cpu/microcode/core.c @@ -17,27 +17,27 @@ =20 #define pr_fmt(fmt) "microcode: " fmt =20 -#include -#include -#include -#include #include -#include +#include #include -#include #include -#include -#include -#include +#include #include +#include +#include #include +#include +#include +#include +#include +#include =20 #include +#include #include +#include #include #include -#include -#include #include =20 #include "internal.h" diff --git a/arch/x86/kernel/cpu/microcode/intel.c b/arch/x86/kernel/cpu/mi= crocode/intel.c index 371ca6eac00e..99fda8f7dba7 100644 --- a/arch/x86/kernel/cpu/microcode/intel.c +++ b/arch/x86/kernel/cpu/microcode/intel.c @@ -11,21 +11,22 @@ * H Peter Anvin" */ #define pr_fmt(fmt) "microcode: " fmt + +#include #include #include -#include #include #include +#include #include -#include +#include #include -#include =20 #include +#include #include -#include #include -#include +#include =20 #include "internal.h" =20 diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c index c78f860419d6..d0491bba9e30 100644 --- a/arch/x86/kernel/cpu/mshyperv.c +++ b/arch/x86/kernel/cpu/mshyperv.c @@ -6,33 +6,35 @@ * Author : K. Y. Srinivasan */ =20 -#include -#include #include -#include +#include #include #include -#include +#include #include #include #include #include -#include -#include +#include +#include + +#include #include -#include + +#include #include +#include +#include #include #include -#include -#include -#include -#include -#include -#include +#include #include +#include #include +#include +#include #include +#include =20 /* Is Linux running on nested Microsoft Hypervisor */ bool hv_nested; diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resct= rl/core.c index 187d527ef73b..35285567beec 100644 --- a/arch/x86/kernel/cpu/resctrl/core.c +++ b/arch/x86/kernel/cpu/resctrl/core.c @@ -17,13 +17,14 @@ #define pr_fmt(fmt) "resctrl: " fmt =20 #include -#include -#include #include +#include +#include =20 #include #include #include + #include "internal.h" =20 /* diff --git a/arch/x86/kernel/cpu/scattered.c b/arch/x86/kernel/cpu/scattere= d.c index b4a1f6732a3a..b52d00e8ad54 100644 --- a/arch/x86/kernel/cpu/scattered.c +++ b/arch/x86/kernel/cpu/scattered.c @@ -4,8 +4,8 @@ */ #include =20 -#include #include +#include #include =20 #include "cpu.h" diff --git a/arch/x86/kernel/cpu/topology_common.c b/arch/x86/kernel/cpu/to= pology_common.c index b5a5e1411469..48c47d02d8a9 100644 --- a/arch/x86/kernel/cpu/topology_common.c +++ b/arch/x86/kernel/cpu/topology_common.c @@ -3,8 +3,8 @@ =20 #include =20 -#include #include +#include #include #include =20 diff --git a/arch/x86/kernel/cpu/vmware.c b/arch/x86/kernel/cpu/vmware.c index cb3f900c46fc..f5e82d15d0b1 100644 --- a/arch/x86/kernel/cpu/vmware.c +++ b/arch/x86/kernel/cpu/vmware.c @@ -21,21 +21,22 @@ * */ =20 -#include -#include -#include #include #include +#include #include +#include +#include #include #include + +#include #include -#include #include +#include #include -#include #include -#include +#include =20 #undef pr_fmt #define pr_fmt(fmt) "vmware: " fmt diff --git a/arch/x86/kernel/jailhouse.c b/arch/x86/kernel/jailhouse.c index 9e9a591a5fec..f38d4516f7e7 100644 --- a/arch/x86/kernel/jailhouse.c +++ b/arch/x86/kernel/jailhouse.c @@ -8,22 +8,23 @@ * Jan Kiszka */ =20 +#include #include #include #include #include -#include -#include -#include + #include +#include #include #include #include +#include #include +#include #include #include #include -#include =20 static struct jailhouse_setup_data setup_data; #define SETUP_DATA_V1_LEN (sizeof(setup_data.hdr) + sizeof(setup_data.v1)) diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index 921c1c783bc1..cd3520a6248b 100644 --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c @@ -9,42 +9,43 @@ =20 #define pr_fmt(fmt) "kvm-guest: " fmt =20 +#include #include +#include +#include +#include +#include +#include #include #include #include +#include #include -#include #include -#include -#include +#include #include #include -#include #include #include -#include -#include #include #include -#include -#include -#include -#include -#include -#include -#include + #include #include -#include -#include -#include +#include #include +#include +#include +#include #include +#include #include #include #include -#include +#include +#include +#include +#include =20 DEFINE_STATIC_KEY_FALSE_RO(kvm_async_pf_enabled); =20 diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index ab3e172dcc69..3d745cd25a43 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c @@ -6,34 +6,34 @@ 2007 - x86_64 support added by Glauber de Oliveira Costa, Red Hat Inc */ =20 +#include +#include #include -#include #include -#include -#include #include +#include #include #include #include =20 +#include #include -#include #include +#include #include +#include +#include +#include +#include +#include +#include +#include #include +#include #include -#include -#include -#include -#include -#include -#include #include -#include #include -#include -#include -#include +#include =20 /* stub always returning 0. */ DEFINE_ASM_FUNC(paravirt_ret0, "xor %eax,%eax", .entry.text); diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c index 4e06e2e89a8f..08bd094f2945 100644 --- a/arch/x86/kvm/mmu/mmu.c +++ b/arch/x86/kvm/mmu/mmu.c @@ -16,47 +16,47 @@ */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 -#include "irq.h" -#include "ioapic.h" -#include "mmu.h" -#include "mmu_internal.h" -#include "tdp_mmu.h" -#include "x86.h" -#include "kvm_cache_regs.h" -#include "smm.h" -#include "kvm_emulate.h" -#include "page_track.h" -#include "cpuid.h" -#include "spte.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include -#include -#include +#include #include +#include +#include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include =20 -#include -#include #include #include +#include +#include #include #include #include =20 +#include "cpuid.h" +#include "ioapic.h" +#include "irq.h" +#include "kvm_cache_regs.h" +#include "kvm_emulate.h" +#include "mmu.h" +#include "mmu_internal.h" +#include "page_track.h" +#include "smm.h" +#include "spte.h" +#include "tdp_mmu.h" +#include "x86.h" + #include "trace.h" =20 static bool nx_hugepage_mitigation_hard_disabled; diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c index b201f77fcd49..d64392bc0228 100644 --- a/arch/x86/kvm/svm/sev.c +++ b/arch/x86/kvm/svm/sev.c @@ -8,33 +8,34 @@ */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 -#include -#include -#include #include -#include -#include -#include -#include +#include +#include +#include #include +#include #include +#include +#include +#include #include + #include =20 -#include -#include +#include #include #include -#include #include +#include #include +#include =20 +#include "cpuid.h" #include "mmu.h" -#include "x86.h" #include "svm.h" #include "svm_ops.h" -#include "cpuid.h" #include "trace.h" +#include "x86.h" =20 #define GHCB_VERSION_MAX 2ULL #define GHCB_VERSION_DEFAULT 2ULL diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index ab9b947dbf4f..d8504af36836 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -2,48 +2,48 @@ =20 #include =20 +#include "cpuid.h" #include "irq.h" -#include "mmu.h" #include "kvm_cache_regs.h" -#include "x86.h" -#include "smm.h" -#include "cpuid.h" +#include "mmu.h" #include "pmu.h" +#include "smm.h" +#include "x86.h" =20 -#include -#include -#include -#include -#include #include -#include -#include -#include +#include +#include #include +#include +#include +#include +#include +#include #include -#include -#include #include -#include +#include #include -#include +#include +#include #include #include -#include +#include +#include +#include =20 #include -#include -#include -#include -#include +#include #include -#include +#include +#include #include +#include +#include +#include +#include #include -#include +#include #include -#include -#include =20 #include =20 diff --git a/arch/x86/kvm/vmx/pmu_intel.c b/arch/x86/kvm/vmx/pmu_intel.c index bbf4509f32d0..64208fe5aa96 100644 --- a/arch/x86/kvm/vmx/pmu_intel.c +++ b/arch/x86/kvm/vmx/pmu_intel.c @@ -10,17 +10,19 @@ */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 -#include #include #include +#include + #include #include -#include "x86.h" + #include "cpuid.h" #include "lapic.h" #include "nested.h" #include "pmu.h" #include "tdx.h" +#include "x86.h" =20 /* * Perf's "BASE" is wildly misleading, architectural PMUs use bits 31:16 o= f ECX diff --git a/arch/x86/kvm/vmx/sgx.c b/arch/x86/kvm/vmx/sgx.c index df1d0cf76947..f70128063bd5 100644 --- a/arch/x86/kvm/vmx/sgx.c +++ b/arch/x86/kvm/vmx/sgx.c @@ -5,11 +5,11 @@ #include #include =20 -#include "x86.h" #include "kvm_cache_regs.h" #include "nested.h" #include "sgx.h" #include "vmx.h" +#include "x86.h" =20 bool __read_mostly enable_sgx =3D 1; module_param_named(sgx, enable_sgx, bool, 0444); diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 191a9ed0da22..2bf9d4326a19 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -14,21 +14,21 @@ */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 +#include #include #include #include #include +#include +#include #include #include -#include -#include #include #include #include #include #include #include -#include =20 #include #include @@ -42,12 +42,12 @@ #include #include #include -#include -#include #include #include #include #include +#include +#include #include #include =20 @@ -57,23 +57,23 @@ #include "common.h" #include "cpuid.h" #include "hyperv.h" -#include "kvm_onhyperv.h" #include "irq.h" #include "kvm_cache_regs.h" +#include "kvm_onhyperv.h" #include "lapic.h" #include "mmu.h" #include "nested.h" #include "pmu.h" +#include "posted_intr.h" #include "sgx.h" +#include "smm.h" #include "trace.h" #include "vmcs.h" #include "vmcs12.h" #include "vmx.h" +#include "vmx_onhyperv.h" #include "x86.h" #include "x86_ops.h" -#include "smm.h" -#include "vmx_onhyperv.h" -#include "posted_intr.h" =20 MODULE_AUTHOR("Qumranet"); MODULE_DESCRIPTION("KVM support for VMX (Intel VT-x) extensions"); diff --git a/arch/x86/mm/pti.c b/arch/x86/mm/pti.c index c0c40b67524e..9d5d57a84a3c 100644 --- a/arch/x86/mm/pti.c +++ b/arch/x86/mm/pti.c @@ -18,26 +18,27 @@ * Mostly rewritten by Thomas Gleixner and * Andy Lutomirsky */ -#include -#include -#include -#include + #include +#include +#include #include -#include +#include #include +#include +#include +#include #include -#include =20 +#include #include +#include #include -#include -#include #include -#include -#include #include #include +#include +#include =20 #undef pr_fmt #define pr_fmt(fmt) "Kernel/User page tables isolation: " fmt diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index b8755cde2419..e23c7f730f07 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c @@ -10,25 +10,26 @@ * Konrad Rzeszutek Wilk * Stefano Stabellini */ + +#include #include #include +#include #include -#include =20 -#include +#include +#include +#include + +#include +#include +#include #include #include =20 +#include #include - -#include -#include -#include #include -#include -#include -#include -#include =20 static int xen_pcifront_enable_irq(struct pci_dev *dev) { @@ -583,4 +584,3 @@ int __init pci_xen_initial_domain(void) return 0; } #endif - diff --git a/arch/x86/xen/enlighten_hvm.c b/arch/x86/xen/enlighten_hvm.c index fe57ff85d004..6b736b18826b 100644 --- a/arch/x86/xen/enlighten_hvm.c +++ b/arch/x86/xen/enlighten_hvm.c @@ -6,22 +6,22 @@ #include #include =20 -#include #include +#include #include #include #include =20 #include #include -#include +#include +#include +#include +#include #include #include #include -#include -#include -#include -#include +#include =20 #include #include diff --git a/arch/x86/xen/pmu.c b/arch/x86/xen/pmu.c index 8f89ce0b67e3..fae48c14ec45 100644 --- a/arch/x86/xen/pmu.c +++ b/arch/x86/xen/pmu.c @@ -1,14 +1,16 @@ // SPDX-License-Identifier: GPL-2.0 -#include + #include +#include =20 -#include -#include -#include -#include #include #include #include +#include +#include + +#include +#include =20 #include "xen-ops.h" =20 diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index 96521b1874ac..229f8161eeab 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c @@ -8,24 +8,26 @@ * * Jeremy Fitzhardinge , XenSource Inc, 2007 */ -#include -#include -#include + #include +#include #include -#include +#include +#include #include +#include #include =20 -#include -#include -#include -#include - #include #include -#include #include +#include + +#include + +#include +#include +#include =20 #include "xen-ops.h" =20 --=20 2.50.1 From nobody Mon Oct 6 11:49:35 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 CE10C2D321F; Tue, 22 Jul 2025 06:55:14 +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=1753167316; cv=none; b=ZQFwzZ82SoQ11nl/Mwp3w73KNe/o+5NVuS+KB6hL/YSUc6wImIKBk8/hSUHpoYSDPTjJ+R8Q57YQAZ+3pitg7kduMa5m+MoDFg+7iZqHjtYNu3v5zGVjQhQrX12KBI1PcSHjUwakK1WUs0rDrcGdhJ53t3yKNGENC0CiskyJBk0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753167316; c=relaxed/simple; bh=BxFrgAkGr32kE23m1k7QTpIqOXMTWKHzXvyYXZzZMds=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=g7TWoI1GkTZPbUiKemXG4YPlvxmGGyxNaWAhXrsJkc4onCG4oHnU5W2uYAQ1shP/J008Yt+IqDcCdC3RgHeoGnQLZgl7gUMk5va+7301GAnJ0yiKf171M/de0+C7KNwfd6mF1W9yfWvPwZbbI0+XI5iAmvzcLs/FT+Nn6SgHvbI= 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=dzdyBAUQ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Xl3Sv9/0; 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="dzdyBAUQ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Xl3Sv9/0" From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1753167312; 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=WrT7QBi1B84sF8mLQypcOtOj8UHfc5OrfpC24IRMRIw=; b=dzdyBAUQO29spGl88OZbpXgeRXB16Zs32gyjeSULd2Ta+t3AwOejzvhzeFUNC0M0y1HWhE GA5xMScLUwfOVBCDntbkHHZGd/qe/Ir3vfDSKFIuE0StyHCZSxDV/62/OwE3qtcxH9yozj 7npJKeD1Ai8S3ZgzZE/jcrHqN27vKROl240PYAtI0wsa4HmH0sOn1S4WMT3rYjUorbbjQf f5BiuFjzIcpEeN73+L5RGmbU7GH1rcZA7H5DVey6weG+r54mkGv+dvHj9osPycnNeoIP4m 7jJYNMzKoDbhfVammWMUSpSIy8TMx7yLWxBlxpkZaDdETObS5qCrfAiWQ7A+lw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1753167312; 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=WrT7QBi1B84sF8mLQypcOtOj8UHfc5OrfpC24IRMRIw=; b=Xl3Sv9/04xx4nYF6YuH2a6yOgxgZxweOnyzOYLh1GE63v6la/OJm2YhddXlabUwgJlOSP2 qcNHaCnWjSTVPBAA== To: Borislav Petkov , Ingo Molnar , Dave Hansen Cc: Thomas Gleixner , Andrew Cooper , Paolo Bonzini , Vitaly Kuznetsov , Sean Christopherson , Juergen Gross , Boris Ostrovsky , Greg Kroah-Hartman , John Ogness , x86@kernel.org, kvm@vger.kernel.org, x86-cpuid@lists.linux.dev, LKML , "Ahmed S. Darwish" Subject: [PATCH v3 4/6] drivers: Reorder headers alphabetically Date: Tue, 22 Jul 2025 08:54:29 +0200 Message-ID: <20250722065448.413503-5-darwi@linutronix.de> In-Reply-To: <20250722065448.413503-1-darwi@linutronix.de> References: <20250722065448.413503-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" Multiple drivers use the cpuid_*() macros, but implicitly include the main CPUID API header. Sort their include lines so that can be explicitly included next. Signed-off-by: Ahmed S. Darwish --- drivers/char/agp/efficeon-agp.c | 9 ++++--- drivers/cpufreq/longrun.c | 6 ++--- drivers/cpufreq/powernow-k7.c | 13 +++++---- drivers/cpufreq/powernow-k8.c | 16 +++++------ drivers/cpufreq/speedstep-lib.c | 5 ++-- drivers/hwmon/fam15h_power.c | 13 ++++----- drivers/hwmon/k8temp.c | 11 ++++---- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 3 ++- drivers/ras/amd/fmpm.c | 2 +- drivers/thermal/intel/x86_pkg_temp_thermal.c | 14 +++++----- drivers/xen/events/events_base.c | 27 ++++++++++--------- drivers/xen/grant-table.c | 14 +++++----- drivers/xen/xenbus/xenbus_xs.c | 20 +++++++------- 13 files changed, 80 insertions(+), 73 deletions(-) diff --git a/drivers/char/agp/efficeon-agp.c b/drivers/char/agp/efficeon-ag= p.c index 0d25bbdc7e6a..79f956d7b17d 100644 --- a/drivers/char/agp/efficeon-agp.c +++ b/drivers/char/agp/efficeon-agp.c @@ -20,13 +20,14 @@ * - tested with c3/c4 enabled (with the mobility m9 card) */ =20 -#include -#include -#include #include #include -#include +#include #include +#include +#include +#include + #include "agp.h" #include "intel-agp.h" =20 diff --git a/drivers/cpufreq/longrun.c b/drivers/cpufreq/longrun.c index 1caaec7c280b..263c48b8f628 100644 --- a/drivers/cpufreq/longrun.c +++ b/drivers/cpufreq/longrun.c @@ -5,15 +5,15 @@ * BIG FAT DISCLAIMER: Work in progress code. Possibly *dangerous* */ =20 +#include +#include #include #include -#include -#include #include =20 +#include #include #include -#include =20 static struct cpufreq_driver longrun_driver; =20 diff --git a/drivers/cpufreq/powernow-k7.c b/drivers/cpufreq/powernow-k7.c index 31039330a3ba..0608040fcd1e 100644 --- a/drivers/cpufreq/powernow-k7.c +++ b/drivers/cpufreq/powernow-k7.c @@ -15,20 +15,20 @@ =20 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 +#include +#include +#include +#include #include #include #include -#include -#include #include #include -#include #include -#include =20 -#include /* Needed for recalibrate_cpu_khz() */ -#include #include +#include +#include /* Needed for recalibrate_cpu_khz() */ =20 #ifdef CONFIG_X86_POWERNOW_K7_ACPI #include @@ -691,4 +691,3 @@ MODULE_LICENSE("GPL"); =20 late_initcall(powernow_init); module_exit(powernow_exit); - diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c index f7512b4e923e..2b5cdd8f1c0a 100644 --- a/drivers/cpufreq/powernow-k8.c +++ b/drivers/cpufreq/powernow-k8.c @@ -26,22 +26,22 @@ =20 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 +#include +#include +#include +#include +#include +#include #include -#include #include -#include -#include +#include #include +#include #include -#include -#include -#include =20 #include #include =20 -#include -#include #include =20 #define VERSION "version 2.20.00" diff --git a/drivers/cpufreq/speedstep-lib.c b/drivers/cpufreq/speedstep-li= b.c index 0b66df4ed513..f08817331aec 100644 --- a/drivers/cpufreq/speedstep-lib.c +++ b/drivers/cpufreq/speedstep-lib.c @@ -9,14 +9,15 @@ =20 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 +#include +#include #include #include #include -#include -#include =20 #include #include + #include "speedstep-lib.h" =20 #define PFX "speedstep-lib: " diff --git a/drivers/hwmon/fam15h_power.c b/drivers/hwmon/fam15h_power.c index 8ecebea53651..5a5674e85f63 100644 --- a/drivers/hwmon/fam15h_power.c +++ b/drivers/hwmon/fam15h_power.c @@ -6,20 +6,21 @@ * Author: Andreas Herrmann */ =20 +#include +#include +#include #include -#include #include +#include #include #include #include -#include -#include -#include -#include #include +#include #include -#include + #include +#include =20 MODULE_DESCRIPTION("AMD Family 15h CPU processor power monitor"); MODULE_AUTHOR("Andreas Herrmann "); diff --git a/drivers/hwmon/k8temp.c b/drivers/hwmon/k8temp.c index 2b80ac410cd1..8c1efce9a04b 100644 --- a/drivers/hwmon/k8temp.c +++ b/drivers/hwmon/k8temp.c @@ -7,13 +7,14 @@ * Inspired from the w83785 and amd756 drivers. */ =20 -#include -#include -#include -#include -#include #include +#include +#include +#include #include +#include +#include + #include =20 #define TEMP_FROM_REG(val) (((((val) >> 16) & 0xff) - 49) * 1000) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/ne= t/ethernet/stmicro/stmmac/dwmac-intel.c index ea33ae39be6b..444ee53566c4 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c @@ -3,9 +3,10 @@ */ =20 #include -#include #include +#include #include + #include "dwmac-intel.h" #include "dwmac4.h" #include "stmmac.h" diff --git a/drivers/ras/amd/fmpm.c b/drivers/ras/amd/fmpm.c index 8877c6ff64c4..775c5231be57 100644 --- a/drivers/ras/amd/fmpm.c +++ b/drivers/ras/amd/fmpm.c @@ -46,8 +46,8 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 #include -#include #include +#include =20 #include =20 diff --git a/drivers/thermal/intel/x86_pkg_temp_thermal.c b/drivers/thermal= /intel/x86_pkg_temp_thermal.c index 3fc679b6f11b..c843cb5fc5c3 100644 --- a/drivers/thermal/intel/x86_pkg_temp_thermal.c +++ b/drivers/thermal/intel/x86_pkg_temp_thermal.c @@ -5,19 +5,19 @@ */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 -#include +#include +#include +#include +#include #include #include -#include +#include #include -#include #include -#include -#include -#include #include +#include +#include #include -#include =20 #include #include diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_b= ase.c index 41309d38f78c..727a78bfdf02 100644 --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -24,40 +24,42 @@ =20 #define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt =20 -#include +#include +#include #include #include -#include -#include -#include -#include #include +#include +#include +#include +#include #include #include +#include #include -#include -#include -#include +#include =20 #ifdef CONFIG_X86 #include -#include +#include #include -#include #include -#include +#include +#include #include #include #endif + +#include #include #include #include -#include =20 #include #include #include #include +#include #include #include #include @@ -66,7 +68,6 @@ #include #include #include -#include =20 #include "events_internal.h" =20 diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index 04a6b470b15d..a9ff69f08eb8 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c @@ -34,18 +34,18 @@ #define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt =20 #include +#include +#include +#include #include -#include #include +#include +#include +#include #include -#include #include -#include -#include -#include +#include #include -#include -#include #ifdef CONFIG_XEN_GRANT_DMA_ALLOC #include #endif diff --git a/drivers/xen/xenbus/xenbus_xs.c b/drivers/xen/xenbus/xenbus_xs.c index dcf9182c8451..589585b05f8a 100644 --- a/drivers/xen/xenbus/xenbus_xs.c +++ b/drivers/xen/xenbus/xenbus_xs.c @@ -33,22 +33,24 @@ =20 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 -#include -#include -#include -#include -#include -#include #include -#include +#include #include +#include #include +#include #include #include -#include +#include +#include +#include +#include +#include + #include -#include + #include +#include #include "xenbus.h" =20 /* --=20 2.50.1 From nobody Mon Oct 6 11:49:35 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 C85CF2D322A; Tue, 22 Jul 2025 06:55:18 +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=1753167321; cv=none; b=Ie1QS4ELQz6puXk9UQHcJ6tyF2SmTGnMJ7ewQxGRcTJsG0wWKVdlKVCK3Y1EEJE1KXT+3iVWB/26+MGLiICyfei0E6b9D6B2HpusXEpadAW1a0YYWzNBYrPuNG57pdRFFpMr3p3PJ7TNdm+34rtTIJtHDceDhNiJjFDknQGZiqM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753167321; c=relaxed/simple; bh=7tu9JNR7Jrb5UoarjSOUM7NfWcuv1jFJzHqdoV5Xpjo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WF/VuR1vq1y9D87AFmr2N2Y22NFfdXza4TFhk0qDEnspFYi5MSpEbgV4tEHOznK2g8kJDSBHblJrbdms5sfB2vNzF07y/ZhHm6g7vuYUFGrDmckaWNGC9f/IclLLUZ58ybVx4v2OHoY6+9bDPKoPwzHahcpjXCsKImQsPi5mHnE= 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=WIAKDlrl; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=zIm9gCKV; 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="WIAKDlrl"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zIm9gCKV" From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1753167317; 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=QQRMiyYs1v7voyeresGGoDqMkeh3MiFIOHQqYaSfaK4=; b=WIAKDlrl4o6dLcOTH3nAKDD0qa3dYC/1w3Otl4ZW0tbgWn2iqHFXXmzfFKHrNlNx/ztRaD 76ENRfnK9GGhNrSwYo89MLfuJcOxZ+IHMuU7cAmK1/2kd4hVwawvFCDCkUU3u5gZpDO3aJ DqCDeszHvgOWrna+X4OOxaTvZ8tjkdU2V3XpDvlaH1gJq9pqCxMVuHKjCYoXK/+HOEEiu8 KvB2+tQd5kgqwJjpfVgfx4DXPuvma7/l4OKcGOfZ9OS3YTz1aZhdVXnXlRZt8LhzDzkZqC /4ivqCT8etzbakYNYUxiibMewhYB13WXcyd8Z8GBJjxOWDnQ5n+H0B3bfvWtLg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1753167317; 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=QQRMiyYs1v7voyeresGGoDqMkeh3MiFIOHQqYaSfaK4=; b=zIm9gCKVMVfZ/HGjylzGljCRUUnoLXAnf9w3sED6w4VFUHLOI2EpCoz3J1UKiQctlEj3TB o7271+xb9VWscCAw== To: Borislav Petkov , Ingo Molnar , Dave Hansen Cc: Thomas Gleixner , Andrew Cooper , Paolo Bonzini , Vitaly Kuznetsov , Sean Christopherson , Juergen Gross , Boris Ostrovsky , Greg Kroah-Hartman , John Ogness , x86@kernel.org, kvm@vger.kernel.org, x86-cpuid@lists.linux.dev, LKML , "Ahmed S. Darwish" Subject: [PATCH v3 5/6] treewide: Explicitly include the x86 CPUID headers Date: Tue, 22 Jul 2025 08:54:30 +0200 Message-ID: <20250722065448.413503-6-darwi@linutronix.de> In-Reply-To: <20250722065448.413503-1-darwi@linutronix.de> References: <20250722065448.413503-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" Modify all CPUID call sites which implicitly include any of the CPUID headers to explicitly include them instead. For arch/x86/kvm/reverse_cpuid.h, just include since it references the CPUID_EAX..EDX symbols without using any of the CPUID APIs. Note, adding explicit CPUID includes for all call sites allows removing the include from next. This way, the CPUID API header can include at a later step without introducing a circular dependency. Signed-off-by: Ahmed S. Darwish --- arch/x86/boot/compressed/pgtable_64.c | 1 + arch/x86/boot/startup/sme.c | 1 + arch/x86/coco/tdx/tdx.c | 1 + arch/x86/events/amd/core.c | 2 ++ arch/x86/events/amd/ibs.c | 1 + arch/x86/events/amd/lbr.c | 2 ++ arch/x86/events/amd/power.c | 3 +++ arch/x86/events/amd/uncore.c | 1 + arch/x86/events/intel/core.c | 1 + arch/x86/events/intel/lbr.c | 1 + arch/x86/events/zhaoxin/core.c | 1 + arch/x86/include/asm/acrn.h | 2 ++ arch/x86/include/asm/microcode.h | 1 + arch/x86/include/asm/xen/hypervisor.h | 1 + arch/x86/kernel/apic/apic.c | 1 + arch/x86/kernel/cpu/amd.c | 1 + arch/x86/kernel/cpu/centaur.c | 1 + arch/x86/kernel/cpu/hygon.c | 1 + arch/x86/kernel/cpu/mce/core.c | 1 + arch/x86/kernel/cpu/mce/inject.c | 1 + arch/x86/kernel/cpu/microcode/amd.c | 1 + arch/x86/kernel/cpu/microcode/core.c | 1 + arch/x86/kernel/cpu/microcode/intel.c | 1 + arch/x86/kernel/cpu/mshyperv.c | 1 + arch/x86/kernel/cpu/resctrl/core.c | 1 + arch/x86/kernel/cpu/resctrl/monitor.c | 1 + arch/x86/kernel/cpu/scattered.c | 1 + arch/x86/kernel/cpu/sgx/driver.c | 3 +++ arch/x86/kernel/cpu/sgx/main.c | 3 +++ arch/x86/kernel/cpu/topology_amd.c | 1 + arch/x86/kernel/cpu/topology_common.c | 1 + arch/x86/kernel/cpu/topology_ext.c | 1 + arch/x86/kernel/cpu/transmeta.c | 3 +++ arch/x86/kernel/cpu/vmware.c | 1 + arch/x86/kernel/cpu/zhaoxin.c | 1 + arch/x86/kernel/cpuid.c | 1 + arch/x86/kernel/jailhouse.c | 1 + arch/x86/kernel/kvm.c | 1 + arch/x86/kernel/paravirt.c | 1 + arch/x86/kvm/mmu/mmu.c | 1 + arch/x86/kvm/mmu/spte.c | 1 + arch/x86/kvm/reverse_cpuid.h | 2 ++ arch/x86/kvm/svm/sev.c | 1 + arch/x86/kvm/svm/svm.c | 1 + arch/x86/kvm/vmx/pmu_intel.c | 1 + arch/x86/kvm/vmx/sgx.c | 1 + arch/x86/kvm/vmx/vmx.c | 1 + arch/x86/mm/pti.c | 1 + arch/x86/pci/xen.c | 1 + arch/x86/xen/enlighten_hvm.c | 1 + arch/x86/xen/pmu.c | 1 + arch/x86/xen/time.c | 1 + drivers/char/agp/efficeon-agp.c | 2 ++ drivers/cpufreq/longrun.c | 1 + drivers/cpufreq/powernow-k7.c | 1 + drivers/cpufreq/powernow-k8.c | 1 + drivers/cpufreq/speedstep-lib.c | 1 + drivers/firmware/efi/libstub/x86-5lvl.c | 1 + drivers/gpu/drm/gma500/mmu.c | 2 ++ drivers/hwmon/fam15h_power.c | 1 + drivers/hwmon/k10temp.c | 2 ++ drivers/hwmon/k8temp.c | 1 + drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 2 ++ drivers/ras/amd/fmpm.c | 1 + drivers/thermal/intel/intel_hfi.c | 1 + drivers/thermal/intel/x86_pkg_temp_thermal.c | 1 + drivers/virt/acrn/hsm.c | 1 + drivers/xen/events/events_base.c | 1 + drivers/xen/grant-table.c | 1 + drivers/xen/xenbus/xenbus_xs.c | 3 +++ 70 files changed, 88 insertions(+) diff --git a/arch/x86/boot/compressed/pgtable_64.c b/arch/x86/boot/compress= ed/pgtable_64.c index bdd26050dff7..d94d98595780 100644 --- a/arch/x86/boot/compressed/pgtable_64.c +++ b/arch/x86/boot/compressed/pgtable_64.c @@ -2,6 +2,7 @@ #include "misc.h" #include #include +#include #include #include #include "../string.h" diff --git a/arch/x86/boot/startup/sme.c b/arch/x86/boot/startup/sme.c index 922b236be02f..6a58ab568390 100644 --- a/arch/x86/boot/startup/sme.c +++ b/arch/x86/boot/startup/sme.c @@ -40,6 +40,7 @@ #include =20 #include +#include #include #include #include diff --git a/arch/x86/coco/tdx/tdx.c b/arch/x86/coco/tdx/tdx.c index 7bc11836c46a..4ed8ec642646 100644 --- a/arch/x86/coco/tdx/tdx.c +++ b/arch/x86/coco/tdx/tdx.c @@ -10,6 +10,7 @@ #include =20 #include +#include #include #include #include diff --git a/arch/x86/events/amd/core.c b/arch/x86/events/amd/core.c index b20661b8621d..d28d45ceb707 100644 --- a/arch/x86/events/amd/core.c +++ b/arch/x86/events/amd/core.c @@ -7,8 +7,10 @@ #include #include #include + #include #include +#include #include #include =20 diff --git a/arch/x86/events/amd/ibs.c b/arch/x86/events/amd/ibs.c index 112f43b23ebf..0c7848e6149e 100644 --- a/arch/x86/events/amd/ibs.c +++ b/arch/x86/events/amd/ibs.c @@ -15,6 +15,7 @@ #include =20 #include +#include #include =20 #include "../perf_event.h" diff --git a/arch/x86/events/amd/lbr.c b/arch/x86/events/amd/lbr.c index d24da377df77..5b437dc8e4ce 100644 --- a/arch/x86/events/amd/lbr.c +++ b/arch/x86/events/amd/lbr.c @@ -1,5 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include + +#include #include #include =20 diff --git a/arch/x86/events/amd/power.c b/arch/x86/events/amd/power.c index dad42790cf7d..744dffa42dee 100644 --- a/arch/x86/events/amd/power.c +++ b/arch/x86/events/amd/power.c @@ -10,8 +10,11 @@ #include #include #include + #include +#include #include + #include "../perf_event.h" =20 /* Event code: LSB 8 bits, passed in attr->config any other bit is reserve= d. */ diff --git a/arch/x86/events/amd/uncore.c b/arch/x86/events/amd/uncore.c index c1483ef16c0b..5261f12007df 100644 --- a/arch/x86/events/amd/uncore.c +++ b/arch/x86/events/amd/uncore.c @@ -15,6 +15,7 @@ #include #include =20 +#include #include #include =20 diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index c2fb729c270e..ebbcdf82b494 100644 --- a/arch/x86/events/intel/core.c +++ b/arch/x86/events/intel/core.c @@ -17,6 +17,7 @@ #include =20 #include +#include #include #include #include diff --git a/arch/x86/events/intel/lbr.c b/arch/x86/events/intel/lbr.c index 7aa59966e7c3..0d1ec3651735 100644 --- a/arch/x86/events/intel/lbr.c +++ b/arch/x86/events/intel/lbr.c @@ -3,6 +3,7 @@ #include =20 #include +#include #include #include =20 diff --git a/arch/x86/events/zhaoxin/core.c b/arch/x86/events/zhaoxin/core.c index d59992364880..15bb9c9c9358 100644 --- a/arch/x86/events/zhaoxin/core.c +++ b/arch/x86/events/zhaoxin/core.c @@ -14,6 +14,7 @@ =20 #include #include +#include #include #include =20 diff --git a/arch/x86/include/asm/acrn.h b/arch/x86/include/asm/acrn.h index fab11192c60a..db42b477c41d 100644 --- a/arch/x86/include/asm/acrn.h +++ b/arch/x86/include/asm/acrn.h @@ -2,6 +2,8 @@ #ifndef _ASM_X86_ACRN_H #define _ASM_X86_ACRN_H =20 +#include + /* * This CPUID returns feature bitmaps in EAX. * Guest VM uses this to detect the appropriate feature bit. diff --git a/arch/x86/include/asm/microcode.h b/arch/x86/include/asm/microc= ode.h index 8b41f26f003b..645e65ac1586 100644 --- a/arch/x86/include/asm/microcode.h +++ b/arch/x86/include/asm/microcode.h @@ -3,6 +3,7 @@ #define _ASM_X86_MICROCODE_H =20 #include +#include =20 struct cpu_signature { unsigned int sig; diff --git a/arch/x86/include/asm/xen/hypervisor.h b/arch/x86/include/asm/x= en/hypervisor.h index c2fc7869b996..7c596cebfb78 100644 --- a/arch/x86/include/asm/xen/hypervisor.h +++ b/arch/x86/include/asm/xen/hypervisor.h @@ -37,6 +37,7 @@ extern struct shared_info *HYPERVISOR_shared_info; extern struct start_info *xen_start_info; =20 #include +#include #include =20 #define XEN_SIGNATURE "XenVMMXenVMM" diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index f0e63842e2ef..b6bd2bd248d6 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index c98b0d952537..8e29b39bc70c 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/centaur.c b/arch/x86/kernel/cpu/centaur.c index a3b55db35c96..cc5a390dcd07 100644 --- a/arch/x86/kernel/cpu/centaur.c +++ b/arch/x86/kernel/cpu/centaur.c @@ -5,6 +5,7 @@ =20 #include #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/hygon.c b/arch/x86/kernel/cpu/hygon.c index 2154f12766fb..75ad7eb1301a 100644 --- a/arch/x86/kernel/cpu/hygon.c +++ b/arch/x86/kernel/cpu/hygon.c @@ -10,6 +10,7 @@ =20 #include #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c index 5a11c522ea97..31ff1c578b40 100644 --- a/arch/x86/kernel/cpu/mce/core.c +++ b/arch/x86/kernel/cpu/mce/core.c @@ -47,6 +47,7 @@ #include =20 #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/mce/inject.c b/arch/x86/kernel/cpu/mce/inj= ect.c index d02c4f556cd0..42c82c14c48a 100644 --- a/arch/x86/kernel/cpu/mce/inject.c +++ b/arch/x86/kernel/cpu/mce/inject.c @@ -26,6 +26,7 @@ =20 #include #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/micr= ocode/amd.c index fc62ebf96f01..f19ac3247c19 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -34,6 +34,7 @@ =20 #include #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/mic= rocode/core.c index 9243ed3ded85..eae9eaa455ba 100644 --- a/arch/x86/kernel/cpu/microcode/core.c +++ b/arch/x86/kernel/cpu/microcode/core.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/microcode/intel.c b/arch/x86/kernel/cpu/mi= crocode/intel.c index 99fda8f7dba7..30d20f78f07d 100644 --- a/arch/x86/kernel/cpu/microcode/intel.c +++ b/arch/x86/kernel/cpu/microcode/intel.c @@ -23,6 +23,7 @@ #include =20 #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c index d0491bba9e30..771a65e6fefb 100644 --- a/arch/x86/kernel/cpu/mshyperv.c +++ b/arch/x86/kernel/cpu/mshyperv.c @@ -22,6 +22,7 @@ #include =20 #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resct= rl/core.c index 35285567beec..52d3753ab020 100644 --- a/arch/x86/kernel/cpu/resctrl/core.c +++ b/arch/x86/kernel/cpu/resctrl/core.c @@ -22,6 +22,7 @@ #include =20 #include +#include #include #include =20 diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/re= sctrl/monitor.c index c261558276cd..5dffb9453d77 100644 --- a/arch/x86/kernel/cpu/resctrl/monitor.c +++ b/arch/x86/kernel/cpu/resctrl/monitor.c @@ -21,6 +21,7 @@ #include =20 #include +#include #include =20 #include "internal.h" diff --git a/arch/x86/kernel/cpu/scattered.c b/arch/x86/kernel/cpu/scattere= d.c index b52d00e8ad54..99c052f1962a 100644 --- a/arch/x86/kernel/cpu/scattered.c +++ b/arch/x86/kernel/cpu/scattered.c @@ -5,6 +5,7 @@ #include =20 #include +#include #include #include =20 diff --git a/arch/x86/kernel/cpu/sgx/driver.c b/arch/x86/kernel/cpu/sgx/dri= ver.c index 7f8d1e11dbee..f0c0a001bce6 100644 --- a/arch/x86/kernel/cpu/sgx/driver.c +++ b/arch/x86/kernel/cpu/sgx/driver.c @@ -6,7 +6,10 @@ #include #include #include + +#include #include + #include "driver.h" #include "encl.h" =20 diff --git a/arch/x86/kernel/cpu/sgx/main.c b/arch/x86/kernel/cpu/sgx/main.c index 2de01b379aa3..00bf42f4c536 100644 --- a/arch/x86/kernel/cpu/sgx/main.c +++ b/arch/x86/kernel/cpu/sgx/main.c @@ -14,8 +14,11 @@ #include #include #include + +#include #include #include + #include "driver.h" #include "encl.h" #include "encls.h" diff --git a/arch/x86/kernel/cpu/topology_amd.c b/arch/x86/kernel/cpu/topol= ogy_amd.c index 843b1655ab45..abc6f5a7a486 100644 --- a/arch/x86/kernel/cpu/topology_amd.c +++ b/arch/x86/kernel/cpu/topology_amd.c @@ -2,6 +2,7 @@ #include =20 #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/topology_common.c b/arch/x86/kernel/cpu/to= pology_common.c index 48c47d02d8a9..38189e4fea0e 100644 --- a/arch/x86/kernel/cpu/topology_common.c +++ b/arch/x86/kernel/cpu/topology_common.c @@ -4,6 +4,7 @@ #include =20 #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/topology_ext.c b/arch/x86/kernel/cpu/topol= ogy_ext.c index 467b0326bf1a..eb915c73895f 100644 --- a/arch/x86/kernel/cpu/topology_ext.c +++ b/arch/x86/kernel/cpu/topology_ext.c @@ -2,6 +2,7 @@ #include =20 #include +#include #include #include =20 diff --git a/arch/x86/kernel/cpu/transmeta.c b/arch/x86/kernel/cpu/transmet= a.c index 42c939827621..1fdcd69c625c 100644 --- a/arch/x86/kernel/cpu/transmeta.c +++ b/arch/x86/kernel/cpu/transmeta.c @@ -3,8 +3,11 @@ #include #include #include + #include +#include #include + #include "cpu.h" =20 static void early_init_transmeta(struct cpuinfo_x86 *c) diff --git a/arch/x86/kernel/cpu/vmware.c b/arch/x86/kernel/cpu/vmware.c index f5e82d15d0b1..e6f80f5e59a3 100644 --- a/arch/x86/kernel/cpu/vmware.c +++ b/arch/x86/kernel/cpu/vmware.c @@ -31,6 +31,7 @@ #include =20 #include +#include #include #include #include diff --git a/arch/x86/kernel/cpu/zhaoxin.c b/arch/x86/kernel/cpu/zhaoxin.c index 89b1c8a70fe8..cfcfb6221e3f 100644 --- a/arch/x86/kernel/cpu/zhaoxin.c +++ b/arch/x86/kernel/cpu/zhaoxin.c @@ -4,6 +4,7 @@ =20 #include #include +#include #include =20 #include "cpu.h" diff --git a/arch/x86/kernel/cpuid.c b/arch/x86/kernel/cpuid.c index dae436253de4..cbd04b677fd1 100644 --- a/arch/x86/kernel/cpuid.c +++ b/arch/x86/kernel/cpuid.c @@ -37,6 +37,7 @@ #include #include =20 +#include #include #include =20 diff --git a/arch/x86/kernel/jailhouse.c b/arch/x86/kernel/jailhouse.c index f38d4516f7e7..787128e63f32 100644 --- a/arch/x86/kernel/jailhouse.c +++ b/arch/x86/kernel/jailhouse.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index cd3520a6248b..ddeea40273ed 100644 --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c index 3d745cd25a43..b7fc3b78086c 100644 --- a/arch/x86/kernel/paravirt.c +++ b/arch/x86/kernel/paravirt.c @@ -18,6 +18,7 @@ =20 #include #include +#include #include #include #include diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c index 08bd094f2945..41958178c7d7 100644 --- a/arch/x86/kvm/mmu/mmu.c +++ b/arch/x86/kvm/mmu/mmu.c @@ -37,6 +37,7 @@ #include =20 #include +#include #include #include #include diff --git a/arch/x86/kvm/mmu/spte.c b/arch/x86/kvm/mmu/spte.c index cfce03d8f123..e7b69275ae50 100644 --- a/arch/x86/kvm/mmu/spte.c +++ b/arch/x86/kvm/mmu/spte.c @@ -15,6 +15,7 @@ #include "x86.h" #include "spte.h" =20 +#include #include #include #include diff --git a/arch/x86/kvm/reverse_cpuid.h b/arch/x86/kvm/reverse_cpuid.h index c53b92379e6e..77bdc3fe3fc5 100644 --- a/arch/x86/kvm/reverse_cpuid.h +++ b/arch/x86/kvm/reverse_cpuid.h @@ -3,8 +3,10 @@ #define ARCH_X86_KVM_REVERSE_CPUID_H =20 #include + #include #include +#include =20 /* * Define a KVM-only feature flag. diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c index d64392bc0228..eb2aca272268 100644 --- a/arch/x86/kvm/svm/sev.c +++ b/arch/x86/kvm/svm/sev.c @@ -22,6 +22,7 @@ =20 #include =20 +#include #include #include #include diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index d8504af36836..42b21d01fe02 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -33,6 +33,7 @@ =20 #include #include +#include #include #include #include diff --git a/arch/x86/kvm/vmx/pmu_intel.c b/arch/x86/kvm/vmx/pmu_intel.c index 64208fe5aa96..66d9701acf39 100644 --- a/arch/x86/kvm/vmx/pmu_intel.c +++ b/arch/x86/kvm/vmx/pmu_intel.c @@ -14,6 +14,7 @@ #include #include =20 +#include #include #include =20 diff --git a/arch/x86/kvm/vmx/sgx.c b/arch/x86/kvm/vmx/sgx.c index f70128063bd5..1d2c38e0c66f 100644 --- a/arch/x86/kvm/vmx/sgx.c +++ b/arch/x86/kvm/vmx/sgx.c @@ -2,6 +2,7 @@ /* Copyright(c) 2021 Intel Corporation. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt =20 +#include #include #include =20 diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 2bf9d4326a19..37e49693165e 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include diff --git a/arch/x86/mm/pti.c b/arch/x86/mm/pti.c index 9d5d57a84a3c..277cfb9ead67 100644 --- a/arch/x86/mm/pti.c +++ b/arch/x86/mm/pti.c @@ -32,6 +32,7 @@ =20 #include #include +#include #include #include #include diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index e23c7f730f07..dd0e259a2882 100644 --- a/arch/x86/pci/xen.c +++ b/arch/x86/pci/xen.c @@ -23,6 +23,7 @@ =20 #include #include +#include #include #include #include diff --git a/arch/x86/xen/enlighten_hvm.c b/arch/x86/xen/enlighten_hvm.c index 6b736b18826b..25060b139bad 100644 --- a/arch/x86/xen/enlighten_hvm.c +++ b/arch/x86/xen/enlighten_hvm.c @@ -14,6 +14,7 @@ =20 #include #include +#include #include #include #include diff --git a/arch/x86/xen/pmu.c b/arch/x86/xen/pmu.c index fae48c14ec45..681a8db58868 100644 --- a/arch/x86/xen/pmu.c +++ b/arch/x86/xen/pmu.c @@ -9,6 +9,7 @@ #include #include =20 +#include #include #include =20 diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c index 229f8161eeab..65826ff26d7d 100644 --- a/arch/x86/xen/time.c +++ b/arch/x86/xen/time.c @@ -23,6 +23,7 @@ #include #include =20 +#include #include =20 #include diff --git a/drivers/char/agp/efficeon-agp.c b/drivers/char/agp/efficeon-ag= p.c index 79f956d7b17d..4ae44878119b 100644 --- a/drivers/char/agp/efficeon-agp.c +++ b/drivers/char/agp/efficeon-agp.c @@ -28,6 +28,8 @@ #include #include =20 +#include + #include "agp.h" #include "intel-agp.h" =20 diff --git a/drivers/cpufreq/longrun.c b/drivers/cpufreq/longrun.c index 263c48b8f628..3429857feb96 100644 --- a/drivers/cpufreq/longrun.c +++ b/drivers/cpufreq/longrun.c @@ -12,6 +12,7 @@ #include =20 #include +#include #include #include =20 diff --git a/drivers/cpufreq/powernow-k7.c b/drivers/cpufreq/powernow-k7.c index 0608040fcd1e..7a324a829a43 100644 --- a/drivers/cpufreq/powernow-k7.c +++ b/drivers/cpufreq/powernow-k7.c @@ -27,6 +27,7 @@ #include =20 #include +#include #include #include /* Needed for recalibrate_cpu_khz() */ =20 diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c index 2b5cdd8f1c0a..e909eee30edd 100644 --- a/drivers/cpufreq/powernow-k8.c +++ b/drivers/cpufreq/powernow-k8.c @@ -41,6 +41,7 @@ =20 #include #include +#include =20 #include =20 diff --git a/drivers/cpufreq/speedstep-lib.c b/drivers/cpufreq/speedstep-li= b.c index f08817331aec..3c323cd8eede 100644 --- a/drivers/cpufreq/speedstep-lib.c +++ b/drivers/cpufreq/speedstep-lib.c @@ -15,6 +15,7 @@ #include #include =20 +#include #include #include =20 diff --git a/drivers/firmware/efi/libstub/x86-5lvl.c b/drivers/firmware/efi= /libstub/x86-5lvl.c index f1c5fb45d5f7..029ad80cf0b4 100644 --- a/drivers/firmware/efi/libstub/x86-5lvl.c +++ b/drivers/firmware/efi/libstub/x86-5lvl.c @@ -2,6 +2,7 @@ #include =20 #include +#include #include #include =20 diff --git a/drivers/gpu/drm/gma500/mmu.c b/drivers/gpu/drm/gma500/mmu.c index e6753282e70e..4d2aba31a78c 100644 --- a/drivers/gpu/drm/gma500/mmu.c +++ b/drivers/gpu/drm/gma500/mmu.c @@ -7,6 +7,8 @@ #include #include =20 +#include + #include "mmu.h" #include "psb_drv.h" #include "psb_reg.h" diff --git a/drivers/hwmon/fam15h_power.c b/drivers/hwmon/fam15h_power.c index 5a5674e85f63..1ecaef25f04e 100644 --- a/drivers/hwmon/fam15h_power.c +++ b/drivers/hwmon/fam15h_power.c @@ -19,6 +19,7 @@ #include #include =20 +#include #include #include =20 diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c index babf2413d666..12115654689a 100644 --- a/drivers/hwmon/k10temp.c +++ b/drivers/hwmon/k10temp.c @@ -20,7 +20,9 @@ #include #include #include + #include +#include #include =20 MODULE_DESCRIPTION("AMD Family 10h+ CPU core temperature monitor"); diff --git a/drivers/hwmon/k8temp.c b/drivers/hwmon/k8temp.c index 8c1efce9a04b..eb167be245b9 100644 --- a/drivers/hwmon/k8temp.c +++ b/drivers/hwmon/k8temp.c @@ -15,6 +15,7 @@ #include #include =20 +#include #include =20 #define TEMP_FROM_REG(val) (((((val) >> 16) & 0xff) - 49) * 1000) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/ne= t/ethernet/stmicro/stmmac/dwmac-intel.c index 444ee53566c4..f63d66a27ffe 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c @@ -7,6 +7,8 @@ #include #include =20 +#include + #include "dwmac-intel.h" #include "dwmac4.h" #include "stmmac.h" diff --git a/drivers/ras/amd/fmpm.c b/drivers/ras/amd/fmpm.c index 775c5231be57..f9723051477c 100644 --- a/drivers/ras/amd/fmpm.c +++ b/drivers/ras/amd/fmpm.c @@ -52,6 +52,7 @@ #include =20 #include +#include #include =20 #include "../debugfs.h" diff --git a/drivers/thermal/intel/intel_hfi.c b/drivers/thermal/intel/inte= l_hfi.c index bd2fca7dc017..c910cc563d9d 100644 --- a/drivers/thermal/intel/intel_hfi.c +++ b/drivers/thermal/intel/intel_hfi.c @@ -41,6 +41,7 @@ #include #include =20 +#include #include =20 #include "intel_hfi.h" diff --git a/drivers/thermal/intel/x86_pkg_temp_thermal.c b/drivers/thermal= /intel/x86_pkg_temp_thermal.c index c843cb5fc5c3..1b9e0b49856c 100644 --- a/drivers/thermal/intel/x86_pkg_temp_thermal.c +++ b/drivers/thermal/intel/x86_pkg_temp_thermal.c @@ -20,6 +20,7 @@ #include =20 #include +#include #include =20 #include "thermal_interrupt.h" diff --git a/drivers/virt/acrn/hsm.c b/drivers/virt/acrn/hsm.c index e4e196abdaac..67119f9da449 100644 --- a/drivers/virt/acrn/hsm.c +++ b/drivers/virt/acrn/hsm.c @@ -16,6 +16,7 @@ #include =20 #include +#include #include =20 #include "acrn_drv.h" diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_b= ase.c index 727a78bfdf02..e07c36c337fa 100644 --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -40,6 +40,7 @@ #include =20 #ifdef CONFIG_X86 +#include #include #include #include diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index a9ff69f08eb8..68ff1d6ff7bd 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c @@ -59,6 +59,7 @@ #include #include #ifdef CONFIG_X86 +#include #include #endif #include diff --git a/drivers/xen/xenbus/xenbus_xs.c b/drivers/xen/xenbus/xenbus_xs.c index 589585b05f8a..74d1d76426c3 100644 --- a/drivers/xen/xenbus/xenbus_xs.c +++ b/drivers/xen/xenbus/xenbus_xs.c @@ -48,6 +48,9 @@ #include =20 #include +#ifdef CONFIG_X86 +#include +#endif =20 #include #include --=20 2.50.1 From nobody Mon Oct 6 11:49:35 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 CD4B62D2389; Tue, 22 Jul 2025 06:55:26 +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=1753167328; cv=none; b=ZkT6DE8xMNcz2lyEm3p62pzh1QY/QNytfgI4xoq0L4NiGaAJQbgb2+Dh/4Zbs+PC6Qd+Sh3jD0mXk4KfySqRPXK/iE2t/WHFtdIoSOjgsBLn10O4PgXLk1yiQ7HU2ZNXAKeX0f8djgsm/oJpkCII83pp5GFZ6oEjypIwNG5jm38= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753167328; c=relaxed/simple; bh=NqhvlfUYaDV/+2XHHooAozZ1Ma4TP4Tc6co3ykPUrHA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YHm95cYxg/VgBveUNqmzHEQ0ZkN+NALsUNaKnTnW4SUS9P4Ur9B2eGTXiBysRrVHfhAUH9XyFGU4GHoieCMG6wj9OSshHrNDGF8m9DUcuRIx/2fSGBbWP1lL8MAZnsE/SPowAE2yTrBpZXEIdT8Ai33WsGAvOdWuNYIlbywUAW4= 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=wFVuq1Rl; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=PtMabs/E; 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="wFVuq1Rl"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="PtMabs/E" From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1753167324; 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=OAEsC2skIOSaWZt2MlflxtyQsbT7+BYF8vFWwagm9QY=; b=wFVuq1RlZ9EhF3ZESkS5xyCw/isPhZWRpn7wAs3EZEw/DlDTvB1K2YM2/nIq9JwklUlUEH cd93jVGKiw0WNCMkqcxdnZ5Aya4PaC4NsOzdDkiVIEvMC3LT/7UVDMTELKawxbjc9lKQYa vdOdZMJVMsVlpDxl9sSpjtyNqMbubAJzLH5Q+cMfu99oe/KNELVgCmY0F8W5PN1On1+hFh +/pNS0iK1MdtcvVPJfh8m5sVvY3hYZuoQ1SoHLXxRy3sGBUvrVCObgNSUUlOBZyz2lLYIx ZDgO0GPY5BbLpvnu8SuCNz6axYmfLRTWcm+nkgQTtsbrpzmXswaQk7bQ/FK3dQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1753167324; 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=OAEsC2skIOSaWZt2MlflxtyQsbT7+BYF8vFWwagm9QY=; b=PtMabs/ERXmh0j/GTQsszoqS1OApT61wCf6tI0oUEfAJXpmWJtAXCDCDW2ch4pRe90Rxza OZEHAZygLCoYqMBw== To: Borislav Petkov , Ingo Molnar , Dave Hansen Cc: Thomas Gleixner , Andrew Cooper , Paolo Bonzini , Vitaly Kuznetsov , Sean Christopherson , Juergen Gross , Boris Ostrovsky , Greg Kroah-Hartman , John Ogness , x86@kernel.org, kvm@vger.kernel.org, x86-cpuid@lists.linux.dev, LKML , "Ahmed S. Darwish" Subject: [PATCH v3 6/6] x86/cpu: : Do not include the CPUID API header Date: Tue, 22 Jul 2025 08:54:31 +0200 Message-ID: <20250722065448.413503-7-darwi@linutronix.de> In-Reply-To: <20250722065448.413503-1-darwi@linutronix.de> References: <20250722065448.413503-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" includes the main CPUID API header but it does not need it. Remove the include. Note, this allows the CPUID API header to include at a later step, which is needed for the upcoming CPUID model and parser, without introducing a circular dependency. Note, all call sites which implicitly included the CPUID API header through have been already modified to explicitly include the CPUID API instead. Signed-off-by: Ahmed S. Darwish --- arch/x86/include/asm/processor.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/proces= sor.h index bde58f6510ac..910e36b0c00d 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -16,7 +16,6 @@ struct vm86; #include #include #include -#include #include #include #include --=20 2.50.1