mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/7] Include <asm/cpu_device_id.h> without #ifdef CONFIG_X86
@ 2026-11-11 23:48 Pavel Popov
  2026-11-11 23:48 ` [PATCH 1/7] ACPI: mipi-disco-img: Include <asm/cpu_device_id.h> unconditionally Pavel Popov
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Pavel Popov @ 2026-11-11 23:48 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar, Jani Nikula, Joonas Lahtinen,
	Rodrigo Vivi, Tvrtko Ursulin, Alex Deucher, Christian König,
	Hans de Goede, Ilpo Järvinen, Peter Huewe, Jarkko Sakkinen,
	Tom Lendacky, Herbert Xu
  Cc: Pavel Popov, Leon Romanovsky, Bjorn Helgaas, Logan Gunthorpe,
	Arnd Bergmann, Len Brown, Sakari Ailus, Jason Gunthorpe,
	David Airlie, Simona Vetter, David S . Miller, x86, linux-acpi,
	linux-pm, intel-gfx, amd-gfx, dri-devel, platform-driver-x86,
	linux-integrity, linux-crypto, linux-arch, linux-pci,
	linux-kernel

<asm/cpu_device_id.h> exists only on x86, so generic code that uses it
wraps the include in #ifdef CONFIG_X86. The P2PDMA series [1] adds a
generic version of the header, so the include can be unconditional.

This series drops the #ifdef around the include in the remaining
users, and in ccp, which does not use the header, the include itself.
Some of them also include <asm/intel-family.h>, which has no
generic version. That include is removed: on x86 it is already pulled
in by <asm/cpu_device_id.h>, and on other architectures the INTEL_*
model defines are not used. The #ifdef stays around code that needs
x86 for other reasons: CPU match tables using the INTEL_* model
defines and boot_cpu_data accesses.

Patches 1-6 are independent of each other and can go through the
respective trees once [1] has landed. Patch 7 does not depend on [1].

Based on mainline (7.4-rc2+) plus [1]. Built with x86_64 and arm64
allmodconfig, each patch separately.

[1] https://lore.kernel.org/r/20261111234439.4098-1-pavel.e.popov@intel.com

Pavel Popov (7):
  ACPI: mipi-disco-img: Include <asm/cpu_device_id.h> unconditionally
  drm/i915: Include <asm/cpu_device_id.h> unconditionally
  drm/amdgpu: Include <asm/cpu_device_id.h> unconditionally
  cpufreq: ondemand: Include <asm/cpu_device_id.h> unconditionally
  platform/x86: Include <asm/cpu_device_id.h> unconditionally in soc.h
  tpm: Include <asm/cpu_device_id.h> unconditionally
  crypto: ccp - Drop unused <asm/cpu_device_id.h> include

 drivers/acpi/mipi-disco-img.c              | 5 ++---
 drivers/char/tpm/tpm.h                     | 2 --
 drivers/cpufreq/cpufreq_ondemand.h         | 4 ++--
 drivers/crypto/ccp/ccp-dev.c               | 3 ---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ---
 drivers/gpu/drm/i915/intel_cpu_info.c      | 5 ++---
 include/linux/platform_data/x86/soc.h      | 5 ++---
 7 files changed, 8 insertions(+), 19 deletions(-)


base-commit: 067c5c24cef23d913b67eaaf71ae67e7169a6620
prerequisite-patch-id: 2a8952c8b8b6b019585a8bc449db628f458658cb
prerequisite-patch-id: 6b1715c7e4f230fedfcadf38303ce5966922caff
prerequisite-patch-id: 88872ad297c6b8ec80cb4ec4057ab281e10c148d
-- 
2.54.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-11-12  4:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-11 23:48 [PATCH 0/7] Include <asm/cpu_device_id.h> without #ifdef CONFIG_X86 Pavel Popov
2026-11-11 23:48 ` [PATCH 1/7] ACPI: mipi-disco-img: Include <asm/cpu_device_id.h> unconditionally Pavel Popov
2026-11-11 23:48 ` [PATCH 2/7] drm/i915: " Pavel Popov
2026-11-12  4:41   ` Raag Jadav
2026-11-11 23:48 ` [PATCH 3/7] drm/amdgpu: " Pavel Popov
2026-11-11 23:48 ` [PATCH 4/7] cpufreq: ondemand: " Pavel Popov
2026-11-12  3:22   ` Zhongqiu Han
2026-11-11 23:48 ` [PATCH 5/7] platform/x86: Include <asm/cpu_device_id.h> unconditionally in soc.h Pavel Popov
2026-11-11 23:48 ` [PATCH 6/7] tpm: Include <asm/cpu_device_id.h> unconditionally Pavel Popov
2026-11-12  0:40   ` Jarkko Sakkinen
2026-11-12  1:22     ` Popov, Pavel E
2026-11-11 23:48 ` [PATCH 7/7] crypto: ccp - Drop unused <asm/cpu_device_id.h> include Pavel Popov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®