From mboxrd@z Thu Jan 1 00:00:00 1970 From: josh@joshtriplett.org Subject: Re: [PATCH] drivers: thermal: Mark function as static in x86_pkg_temp_thermal.c Date: Wed, 18 Dec 2013 10:40:14 -0800 Message-ID: <20131218184014.GD24229@cloud> References: <20131218174602.GA27918@rashika> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from relay4-d.mail.gandi.net ([217.70.183.196]:34412 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755242Ab3LRSkR (ORCPT ); Wed, 18 Dec 2013 13:40:17 -0500 Content-Disposition: inline In-Reply-To: <20131218174602.GA27918@rashika> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Rashika Kheria Cc: linux-kernel@vger.kernel.org, Zhang Rui , Eduardo Valentin , linux-pm@vger.kernel.org On Wed, Dec 18, 2013 at 11:16:02PM +0530, Rashika Kheria wrote: > Mark function sys_set_trip_temp() as static in x86_pkg_temp_thermal.c > because it is not used outside this file. >=20 > This eliminates the following warning in x86_pkg_temp_thermal.c: > drivers/thermal/x86_pkg_temp_thermal.c:218:5: warning: no previous pr= ototype for =E2=80=98sys_set_trip_temp=E2=80=99 [-Wmissing-prototypes] >=20 > Signed-off-by: Rashika Kheria Reviewed-by: Josh Triplett > drivers/thermal/x86_pkg_temp_thermal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/thermal/x86_pkg_temp_thermal.c b/drivers/thermal= /x86_pkg_temp_thermal.c > index 7722cb9..972e1c7 100644 > --- a/drivers/thermal/x86_pkg_temp_thermal.c > +++ b/drivers/thermal/x86_pkg_temp_thermal.c > @@ -215,7 +215,7 @@ static int sys_get_trip_temp(struct thermal_zone_= device *tzd, > return 0; > } > =20 > -int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip, > +static int sys_set_trip_temp(struct thermal_zone_device *tzd, int tr= ip, > unsigned long temp) > { > u32 l, h; > --=20 > 1.7.9.5 >=20