]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86/amd/hsmp: Use IS_ENABLED() instead of IS_REACHABLE()
authorSuma Hegde <suma.hegde@amd.com>
Tue, 3 Jun 2025 05:58:07 +0000 (05:58 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 9 Jun 2025 09:37:02 +0000 (12:37 +0300)
commite7c1a9e8d33ceb44ef088de7a9112a1db94d13a4
tree73dcda8ae1ac36010f457b5e4dfc2e18128f37c2
parent844d8e4c7f9a3eeb681493f12c55de0392510fe3
platform/x86/amd/hsmp: Use IS_ENABLED() instead of IS_REACHABLE()

IS_REACHABLE() was required when CONFIG_HWMON was set to m and HSMP to y.
However, commit 69157b00b526 ("platform/x86/amd/hsmp: fix building with
CONFIG_HWMON=m") added a HWMON dependency for HSMP in Kconfig. With
this change, using IS_ENABLED() is sufficient.

Add the missing header file as well.

Signed-off-by: Suma Hegde <suma.hegde@amd.com>
Link: https://lore.kernel.org/r/20250603055807.2503028-1-suma.hegde@amd.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/hsmp/hsmp.h