[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250502001603.674239-1-rdunlap@infradead.org>
Date: Thu, 1 May 2025 17:16:03 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: linux-kernel@...r.kernel.org
Cc: Randy Dunlap <rdunlap@...radead.org>,
Balsam CHIHI <bchihi@...libre.com>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
linux-pm@...r.kernel.org
Subject: [PATCH] thermal/mediatek/lvts: drop defined but not used function
Fix a build warning when CONFIG_MTK_LVTS_THERMAL_DEBUGFS is not set:
drivers/thermal/mediatek/lvts_thermal.c:266:13: warning: 'lvts_debugfs_exit' defined but not used [-Wunused-function]
266 | static void lvts_debugfs_exit(struct lvts_domain *lvts_td) { }
Fixes: f5f633b18234 ("thermal/drivers/mediatek: Add the Low Voltage Thermal Sensor driver")
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Balsam CHIHI <bchihi@...libre.com>
Cc: Daniel Lezcano <daniel.lezcano@...aro.org>
Cc: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
Cc: linux-pm@...r.kernel.org
---
drivers/thermal/mediatek/lvts_thermal.c | 2 --
1 file changed, 2 deletions(-)
--- linux-next-20250501.orig/drivers/thermal/mediatek/lvts_thermal.c
+++ linux-next-20250501/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)
Powered by blists - more mailing lists