From: Randy Dunlap <rdunlap@infradead.org>
To: lm-sensors@lm-sensors.org, LKML <linux-kernel@vger.kernel.org>
Cc: Kamil Debski <k.debski@samsung.com>,
Guenter Roeck <linux@roeck-us.net>,
Jean Delvare <jdelvare@suse.de>
Subject: [PATCH -next] sensors: fix build of pwm-fan.c when THERMAL=m
Date: Thu, 05 Mar 2015 15:27:34 -0800 [thread overview]
Message-ID: <54F8E666.9090403@infradead.org> (raw)
From: Randy Dunlap <rdunlap@infradead.org>
Fix build errors when CONFIG_THERMAL=m and SENSORS_PWM_FAN=y
by restricting SENSORS_PWM_FAN to 'm' when THERMAL=m.
drivers/built-in.o: In function `pwm_fan_remove':
pwm-fan.c:(.text+0x22ba58): undefined reference to `thermal_cooling_device_unregister'
drivers/built-in.o: In function `pwm_fan_probe':
pwm-fan.c:(.text+0x22bebb): undefined reference to `thermal_of_cooling_device_register'
pwm-fan.c:(.text+0x22bf11): undefined reference to `thermal_cdev_update'
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Kamil Debski <k.debski@samsung.com>
---
drivers/hwmon/Kconfig | 1 +
1 file changed, 1 insertion(+)
--- linux-next-20150305.orig/drivers/hwmon/Kconfig
+++ linux-next-20150305/drivers/hwmon/Kconfig
@@ -1174,6 +1174,7 @@ source drivers/hwmon/pmbus/Kconfig
config SENSORS_PWM_FAN
tristate "PWM fan"
depends on (PWM && OF) || COMPILE_TEST
+ depends on THERMAL || THERMAL=n
help
If you say yes here you get support for fans connected to PWM lines.
The driver uses the generic PWM interface, thus it will work on a
next reply other threads:[~2015-03-05 23:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-05 23:27 Randy Dunlap [this message]
2015-03-06 3:59 ` [PATCH -next] sensors: fix build of pwm-fan.c when THERMAL=m Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54F8E666.9090403@infradead.org \
--to=rdunlap@infradead.org \
--cc=jdelvare@suse.de \
--cc=k.debski@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=lm-sensors@lm-sensors.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox