diff options
| author | Srinivas Pandruvada <[email protected]> | 2024-12-18 21:44:44 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2024-12-19 11:35:46 +0000 |
| commit | 207a792d01603faae08d9bd82846bd99c42c30cc (patch) | |
| tree | 24c780446ec00896104bb959da2454469796dbe3 | |
| parent | thermal: intel: int340x: Panther Lake power floor and workload hint support (diff) | |
| download | kernel-207a792d01603faae08d9bd82846bd99c42c30cc.tar.gz kernel-207a792d01603faae08d9bd82846bd99c42c30cc.zip | |
thermal: intel: Fix compile issue when CONFIG_NET is not defined
If CONFIG_NET is not defined then THERMAL_NETLINK can't be selected.
Hence add dependency on CONFIG_NET. Othewise it will generate compile
errors while compiling thermal_netlink.c.
Fixes: 4596cbea0ed2 ("thermal: intel: Remove explicit user_space governor selection")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Srinivas Pandruvada <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ rjw: Merge the "depends on" lines ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
| -rw-r--r-- | drivers/thermal/intel/Kconfig | 2 | ||||
| -rw-r--r-- | drivers/thermal/intel/int340x_thermal/Kconfig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/intel/Kconfig b/drivers/thermal/intel/Kconfig index 9c0f66f9defc..e0268fac7093 100644 --- a/drivers/thermal/intel/Kconfig +++ b/drivers/thermal/intel/Kconfig @@ -21,7 +21,7 @@ config INTEL_TCC config X86_PKG_TEMP_THERMAL tristate "X86 package temperature thermal driver" - depends on X86_THERMAL_VECTOR + depends on X86_THERMAL_VECTOR && NET select THERMAL_NETLINK select INTEL_TCC default m diff --git a/drivers/thermal/intel/int340x_thermal/Kconfig b/drivers/thermal/intel/int340x_thermal/Kconfig index d9a74424c29d..4c699f0896b5 100644 --- a/drivers/thermal/intel/int340x_thermal/Kconfig +++ b/drivers/thermal/intel/int340x_thermal/Kconfig @@ -5,7 +5,7 @@ config INT340X_THERMAL tristate "ACPI INT340X thermal drivers" - depends on X86_64 && ACPI && PCI + depends on X86_64 && ACPI && PCI && NET select THERMAL_NETLINK select ACPI_THERMAL_REL select ACPI_FAN |
