]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Feb 2019 11:20:33 +0000 (12:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Feb 2019 11:20:33 +0000 (12:20 +0100)
added patches:
thermal-hwmon-inline-helpers-when-config_thermal_hwmon-is-not-set.patch

queue-4.14/series
queue-4.14/thermal-hwmon-inline-helpers-when-config_thermal_hwmon-is-not-set.patch [new file with mode: 0644]

index 0c7760beced5b5b6a37231abbc2b7e1b301f3aa7..b2b0e6e8eca3027ec489ff08f8f24147d8689832 100644 (file)
@@ -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 (file)
index 0000000..3a4fc18
--- /dev/null
@@ -0,0 +1,43 @@
+From 03334ba8b425b2ad275c8f390cf83c7b081c3095 Mon Sep 17 00:00:00 2001
+From: Eduardo Valentin <edubezval@gmail.com>
+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 <edubezval@gmail.com>
+
+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 <geert+renesas@glider.be>
+Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ 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)
+ {
+ }