From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-cys01nam02on0129.outbound.protection.outlook.com ([104.47.37.129]:26947 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1032513AbeCAPii (ORCPT ); Thu, 1 Mar 2018 10:38:38 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: Colin Ian King , Darren Hart , Sasha Levin Subject: [added to the 4.1 stable tree] tc1100-wmi: fix build warning when CONFIG_PM not enabled Date: Thu, 1 Mar 2018 15:27:31 +0000 Message-ID: <20180301152116.1486-470-alexander.levin@microsoft.com> References: <20180301152116.1486-1-alexander.levin@microsoft.com> In-Reply-To: <20180301152116.1486-1-alexander.levin@microsoft.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: Colin Ian King This patch has been added to the 4.1 stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ Upstream commit 75d7e7d7a8f4966cb8b1da54a1c74fb2a97ae8fc ] Conditionally declare suspend_data on CONFIG_PM to avoid the following warning when CONFIG_OM is not enabled: drivers/platform/x86/tc1100-wmi.c:55:27: warning: 'suspend_data' defined but not used [-Wunused-variable] Signed-off-by: Colin Ian King Signed-off-by: Darren Hart Signed-off-by: Sasha Levin --- drivers/platform/x86/tc1100-wmi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/platform/x86/tc1100-wmi.c b/drivers/platform/x86/tc110= 0-wmi.c index e36542564131..e89ac8cd20e8 100644 --- a/drivers/platform/x86/tc1100-wmi.c +++ b/drivers/platform/x86/tc1100-wmi.c @@ -52,7 +52,9 @@ struct tc1100_data { u32 jogdial; }; =20 +#ifdef CONFIG_PM static struct tc1100_data suspend_data; +#endif =20 /* -----------------------------------------------------------------------= --- Device Management --=20 2.14.1