drivers: thermal: Mark function as static in x86_pkg_temp_thermal.c
authorRashika <rashika.kheria@gmail.com>
Wed, 18 Dec 2013 17:46:02 +0000 (23:16 +0530)
committerZhang Rui <rui.zhang@intel.com>
Thu, 2 Jan 2014 02:34:37 +0000 (10:34 +0800)
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>
drivers/thermal/x86_pkg_temp_thermal.c

index 7722cb9d5a8020076afe549192b198542461f352..972e1c73722a4c4ec90cd75af32ce99da6438745 100644 (file)
@@ -215,7 +215,7 @@ static int sys_get_trip_temp(struct thermal_zone_device *tzd,
        return 0;
 }
 
-int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip,
+static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip,
                                                        unsigned long temp)
 {
        u32 l, h;