summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/thermal_hwmon.h
diff options
context:
space:
mode:
authorEduardo Valentin <edubezval@gmail.com>2019-01-02 01:34:03 +0100
committerEduardo Valentin <edubezval@gmail.com>2019-01-02 13:43:00 +0100
commit03334ba8b425b2ad275c8f390cf83c7b081c3095 (patch)
treef7f1c200a3fee4e040e13c781f2821bbacc00ebd /drivers/thermal/thermal_hwmon.h
parentMerge tag 'media/v4.20-4' of git://git.kernel.org/pub/scm/linux/kernel/git/mc... (diff)
downloadlinux-03334ba8b425b2ad275c8f390cf83c7b081c3095.tar.xz
linux-03334ba8b425b2ad275c8f390cf83c7b081c3095.zip
thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set
Avoid warnings like this: thermal_hwmon.h:29:1: warning: ‘thermal_remove_hwmon_sysfs’ defined but not used [-Wunused-function] thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) Fixes: 0dd88793aacd ("thermal: hwmon: move hwmon support to single file") Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/thermal_hwmon.h')
-rw-r--r--drivers/thermal/thermal_hwmon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/thermal_hwmon.h b/drivers/thermal/thermal_hwmon.h
index 019f6f88224e..a160b9d62dd0 100644
--- a/drivers/thermal/thermal_hwmon.h
+++ b/drivers/thermal/thermal_hwmon.h
@@ -19,13 +19,13 @@
int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz);
#else
-static int
+static inline int
thermal_add_hwmon_sysfs(struct thermal_zone_device *tz)
{
return 0;
}
-static void
+static inline void
thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)
{
}