]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.12-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 04:27:53 +0000 (06:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 04:27:53 +0000 (06:27 +0200)
added patches:
thermal-drivers-mediatek-lvts-remove-unused-lvts_debugfs_exit.patch

queue-6.12/series
queue-6.12/thermal-drivers-mediatek-lvts-remove-unused-lvts_debugfs_exit.patch [new file with mode: 0644]

index 391e2c041398ceef851073220dd70d4e5b88cf80..d3ec271a28483abf976dd111219f6fe7bdb0f3ca 100644 (file)
@@ -502,3 +502,4 @@ net-usb-aqc111-debug-info-before-sanitation.patch
 overflow-introduce-__define_flex-for-having-no-initializer.patch
 gfs2-don-t-clear-sb-s_fs_info-in-gfs2_sys_fs_add.patch
 drm-meson-use-1000ull-when-operating-with-mode-clock.patch
+thermal-drivers-mediatek-lvts-remove-unused-lvts_debugfs_exit.patch
diff --git a/queue-6.12/thermal-drivers-mediatek-lvts-remove-unused-lvts_debugfs_exit.patch b/queue-6.12/thermal-drivers-mediatek-lvts-remove-unused-lvts_debugfs_exit.patch
new file mode 100644 (file)
index 0000000..d77284e
--- /dev/null
@@ -0,0 +1,35 @@
+From 3159c96ac2cb3a104ce8ee5b8a4afe98e4b8fcad Mon Sep 17 00:00:00 2001
+From: Arnd Bergmann <arnd@arndb.de>
+Date: Mon, 5 May 2025 07:24:52 +0200
+Subject: thermal/drivers/mediatek/lvts: Remove unused lvts_debugfs_exit
+
+From: Arnd Bergmann <arnd@arndb.de>
+
+commit 3159c96ac2cb3a104ce8ee5b8a4afe98e4b8fcad upstream.
+
+When debugfs is disabled, the function has no reference any more:
+
+drivers/thermal/mediatek/lvts_thermal.c:266:13: error: 'lvts_debugfs_exit' defined but not used [-Werror=unused-function]
+  266 | static void lvts_debugfs_exit(struct lvts_domain *lvts_td) { }
+      |             ^~~~~~~~~~~~~~~~~
+
+Fixes: ef280c17a840 ("thermal/drivers/mediatek/lvts: Fix debugfs unregister on failure")
+Signed-off-by: Arnd Bergmann <arnd@arndb.de>
+Link: https://lore.kernel.org/r/20250505052502.1812867-1-arnd@kernel.org
+Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/thermal/mediatek/lvts_thermal.c |    2 --
+ 1 file changed, 2 deletions(-)
+
+--- a/drivers/thermal/mediatek/lvts_thermal.c
++++ b/drivers/thermal/mediatek/lvts_thermal.c
+@@ -259,8 +259,6 @@ static inline int lvts_debugfs_init(stru
+       return 0;
+ }
+-static void lvts_debugfs_exit(struct lvts_domain *lvts_td) { }
+-
+ #endif
+ static int lvts_raw_to_temp(u32 raw_temp, int temp_factor)