From: Greg Kroah-Hartman Date: Thu, 19 Jun 2025 04:27:53 +0000 (+0200) Subject: 6.12-stable patches X-Git-Tag: v6.6.94~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22fc12c6692c857a02be764837db11cf01c5b8c5;p=thirdparty%2Fkernel%2Fstable-queue.git 6.12-stable patches added patches: thermal-drivers-mediatek-lvts-remove-unused-lvts_debugfs_exit.patch --- diff --git a/queue-6.12/series b/queue-6.12/series index 391e2c0413..d3ec271a28 100644 --- a/queue-6.12/series +++ b/queue-6.12/series @@ -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 index 0000000000..d77284ef76 --- /dev/null +++ b/queue-6.12/thermal-drivers-mediatek-lvts-remove-unused-lvts_debugfs_exit.patch @@ -0,0 +1,35 @@ +From 3159c96ac2cb3a104ce8ee5b8a4afe98e4b8fcad Mon Sep 17 00:00:00 2001 +From: Arnd Bergmann +Date: Mon, 5 May 2025 07:24:52 +0200 +Subject: thermal/drivers/mediatek/lvts: Remove unused lvts_debugfs_exit + +From: Arnd Bergmann + +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 +Link: https://lore.kernel.org/r/20250505052502.1812867-1-arnd@kernel.org +Signed-off-by: Daniel Lezcano +Signed-off-by: Greg Kroah-Hartman +--- + 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)