Skip to content

Commit 207a792

Browse files
spandruvadarafaeljw
authored andcommitted
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: 4596cbe ("thermal: intel: Remove explicit user_space governor selection") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Link: https://patch.msgid.link/20241218214444.1904650-1-srinivas.pandruvada@linux.intel.com [ rjw: Merge the "depends on" lines ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent b59bd75 commit 207a792

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/thermal/intel/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ config INTEL_TCC
2121

2222
config X86_PKG_TEMP_THERMAL
2323
tristate "X86 package temperature thermal driver"
24-
depends on X86_THERMAL_VECTOR
24+
depends on X86_THERMAL_VECTOR && NET
2525
select THERMAL_NETLINK
2626
select INTEL_TCC
2727
default m

drivers/thermal/intel/int340x_thermal/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
config INT340X_THERMAL
77
tristate "ACPI INT340X thermal drivers"
8-
depends on X86_64 && ACPI && PCI
8+
depends on X86_64 && ACPI && PCI && NET
99
select THERMAL_NETLINK
1010
select ACPI_THERMAL_REL
1111
select ACPI_FAN

0 commit comments

Comments
 (0)