Skip to content

Commit 4ecafaf

Browse files
Eduardo Valentingabrielesvelto
authored andcommitted
thermal: hwmon: inline helpers when CONFIG_THERMAL_HWMON is not set
commit 03334ba 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: 0dd8879 ("thermal: hwmon: move hwmon support to single file") Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8cf9381 commit 4ecafaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/thermal/thermal_hwmon.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
3535
void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz);
3636
#else
37-
static int
37+
static inline int
3838
thermal_add_hwmon_sysfs(struct thermal_zone_device *tz)
3939
{
4040
return 0;
4141
}
4242

43-
static void
43+
static inline void
4444
thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)
4545
{
4646
}

0 commit comments

Comments
 (0)