From: Greg Kroah-Hartman Date: Sun, 10 Feb 2019 11:20:33 +0000 (+0100) Subject: 4.14-stable patches X-Git-Tag: v4.9.156~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a7f8b172e6676c2064121e6c8b340e6f8fe8ba9;p=thirdparty%2Fkernel%2Fstable-queue.git 4.14-stable patches added patches: thermal-hwmon-inline-helpers-when-config_thermal_hwmon-is-not-set.patch --- diff --git a/queue-4.14/series b/queue-4.14/series index 0c7760beced..b2b0e6e8eca 100644 --- a/queue-4.14/series +++ b/queue-4.14/series @@ -163,3 +163,4 @@ kernel-hung_task.c-force-console-verbose-before-pani.patch fs-epoll-drop-ovflist-branch-prediction.patch exec-load_script-don-t-blindly-truncate-shebang-stri.patch scripts-gdb-fix-lx-version-string-output.patch +thermal-hwmon-inline-helpers-when-config_thermal_hwmon-is-not-set.patch diff --git a/queue-4.14/thermal-hwmon-inline-helpers-when-config_thermal_hwmon-is-not-set.patch b/queue-4.14/thermal-hwmon-inline-helpers-when-config_thermal_hwmon-is-not-set.patch new file mode 100644 index 00000000000..3a4fc184b4c --- /dev/null +++ b/queue-4.14/thermal-hwmon-inline-helpers-when-config_thermal_hwmon-is-not-set.patch @@ -0,0 +1,43 @@ +From 03334ba8b425b2ad275c8f390cf83c7b081c3095 Mon Sep 17 00:00:00 2001 +From: Eduardo Valentin +Date: Wed, 2 Jan 2019 00:34:03 +0000 +Subject: thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +From: Eduardo Valentin + +commit 03334ba8b425b2ad275c8f390cf83c7b081c3095 upstream. + +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 +Signed-off-by: Eduardo Valentin +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/thermal/thermal_hwmon.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/drivers/thermal/thermal_hwmon.h ++++ b/drivers/thermal/thermal_hwmon.h +@@ -34,13 +34,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) + { + }