From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:54944 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751811AbeBWQlA (ORCPT ); Fri, 23 Feb 2018 11:41:00 -0500 Subject: Patch "tc1100-wmi: fix build warning when CONFIG_PM not enabled" has been added to the 4.4-stable tree To: colin.king@canonical.com, dvhart@linux.intel.com, gregkh@linuxfoundation.org Cc: , From: Date: Fri, 23 Feb 2018 17:38:33 +0100 Message-ID: <15194039131184@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled tc1100-wmi: fix build warning when CONFIG_PM not enabled to the 4.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: tc1100-wmi-fix-build-warning-when-config_pm-not-enabled.patch and it can be found in the queue-4.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 75d7e7d7a8f4966cb8b1da54a1c74fb2a97ae8fc Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Wed, 6 Jan 2016 18:02:59 +0000 Subject: tc1100-wmi: fix build warning when CONFIG_PM not enabled From: Colin Ian King commit 75d7e7d7a8f4966cb8b1da54a1c74fb2a97ae8fc upstream. 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: Greg Kroah-Hartman --- drivers/platform/x86/tc1100-wmi.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/platform/x86/tc1100-wmi.c +++ b/drivers/platform/x86/tc1100-wmi.c @@ -52,7 +52,9 @@ struct tc1100_data { u32 jogdial; }; +#ifdef CONFIG_PM static struct tc1100_data suspend_data; +#endif /* -------------------------------------------------------------------------- Device Management Patches currently in stable-queue which might be from colin.king@canonical.com are queue-4.4/tc1100-wmi-fix-build-warning-when-config_pm-not-enabled.patch queue-4.4/iio-adc-axp288-remove-redundant-duplicate-const-on-axp288_adc_channels.patch queue-4.4/x86-spectre-fix-spelling-mistake-vunerable-vulnerable.patch