From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752522AbcLCObk (ORCPT ); Sat, 3 Dec 2016 09:31:40 -0500 Received: from mail-oi0-f66.google.com ([209.85.218.66]:36343 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751107AbcLCObi (ORCPT ); Sat, 3 Dec 2016 09:31:38 -0500 MIME-Version: 1.0 In-Reply-To: <20161126160151.25745-1-bp@alien8.de> References: <20161126160151.25745-1-bp@alien8.de> From: Andy Shevchenko Date: Sat, 3 Dec 2016 16:31:36 +0200 Message-ID: Subject: Re: [PATCH] x86/intel_mid_thermal: Fix suspend handlers unused warning To: Borislav Petkov Cc: LKML , Darren Hart , platform-driver-x86@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uB3EVn13030861 On Sat, Nov 26, 2016 at 6:01 PM, Borislav Petkov wrote: > From: Borislav Petkov > > Fix: > > drivers/platform/x86/intel_mid_thermal.c:424:12: warning: ‘mid_thermal_resume’ > defined but not used [-Wunused-function] > static int mid_thermal_resume(struct device *dev) > ^ > drivers/platform/x86/intel_mid_thermal.c:436:12: warning: ‘mid_thermal_suspend’ > defined but not used [-Wunused-function] > static int mid_thermal_suspend(struct device *dev) > ^ > > which I see during randbuilds here. Thanks! Reviewed-by: Andy Shevchenko > > Signed-off-by: Borislav Petkov > Cc: Darren Hart > Cc: platform-driver-x86@vger.kernel.org > --- > drivers/platform/x86/intel_mid_thermal.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/platform/x86/intel_mid_thermal.c b/drivers/platform/x86/intel_mid_thermal.c > index 9f713b832ba3..0df3c9d37509 100644 > --- a/drivers/platform/x86/intel_mid_thermal.c > +++ b/drivers/platform/x86/intel_mid_thermal.c > @@ -415,6 +415,7 @@ static struct thermal_device_info *initialize_sensor(int index) > return td_info; > } > > +#ifdef CONFIG_PM_SLEEP > /** > * mid_thermal_resume - resume routine > * @dev: device structure > @@ -442,6 +443,7 @@ static int mid_thermal_suspend(struct device *dev) > */ > return configure_adc(0); > } > +#endif > > static SIMPLE_DEV_PM_OPS(mid_thermal_pm, > mid_thermal_suspend, mid_thermal_resume); > -- > 2.10.0 > > -- > To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- With Best Regards, Andy Shevchenko