Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: thermal: Mark function as static in x86_pkg_temp_thermal.c

Mark function sys_set_trip_temp() as static in x86_pkg_temp_thermal.c
because it is not used outside this file.

This eliminates the following warning in x86_pkg_temp_thermal.c:
drivers/thermal/x86_pkg_temp_thermal.c:218:5: warning: no previous prototype for ‘sys_set_trip_temp’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>

authored by

Rashika and committed by
Zhang Rui
f67fe3c5 b688b5bf

+1 -1
+1 -1
drivers/thermal/x86_pkg_temp_thermal.c
··· 215 215 return 0; 216 216 } 217 217 218 - int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, 218 + static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, 219 219 unsigned long temp) 220 220 { 221 221 u32 l, h;