From: Greg Kroah-Hartman Date: Thu, 19 Jun 2025 04:28:07 +0000 (+0200) Subject: 6.15-stable patches X-Git-Tag: v6.6.94~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=afac8096b0b859f251746aa4b85da207a506a44d;p=thirdparty%2Fkernel%2Fstable-queue.git 6.15-stable patches added patches: thermal-drivers-mediatek-lvts-remove-unused-lvts_debugfs_exit.patch --- diff --git a/queue-6.15/series b/queue-6.15/series index 3b33aade18..571dfa4882 100644 --- a/queue-6.15/series +++ b/queue-6.15/series @@ -769,3 +769,4 @@ usb-misc-onboard_usb_dev-fix-build-warning-for-config_usb_onboard_dev_usb5744-n. 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 +thermal-drivers-mediatek-lvts-remove-unused-lvts_debugfs_exit.patch diff --git a/queue-6.15/thermal-drivers-mediatek-lvts-remove-unused-lvts_debugfs_exit.patch b/queue-6.15/thermal-drivers-mediatek-lvts-remove-unused-lvts_debugfs_exit.patch new file mode 100644 index 0000000000..a135ec5845 --- /dev/null +++ b/queue-6.15/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 +@@ -263,8 +263,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)