Received: by 10.223.185.116 with SMTP id b49csp1032823wrg; Fri, 23 Feb 2018 10:41:05 -0800 (PST) X-Google-Smtp-Source: AH8x2243187uwmaXTqN4lJivFiJj3vmzNWksxkSuoSrQwTw2ZgwIUs5V479cGk8v7xQXtKTeXiIj X-Received: by 10.98.224.208 with SMTP id d77mr2684544pfm.194.1519411265252; Fri, 23 Feb 2018 10:41:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519411265; cv=none; d=google.com; s=arc-20160816; b=tCObu7rIExaQaWYs58esv2IH5pxN6+pbExxe9mhxW8QOI7+uAr34SGVhM+lGpD9P67 ZuIj1oxPwFC3bD5MTTrRHmSvoSQAcotZ6WRgOTn+dKhgH2i18261+UyRsH23IE9c6jvO 868EufxFge1eClmiFjMWtRx27EyuLcWljl+TTFNlQIdMM8IoZZmAYBV7LtQTbcsNQo8g E41kYqwgdQ7o/uopfNtWVCCXqNLrgN+cVlUoaLJ/5xga3pCQLplHlj0CgNyaAdDSkKbf WiGdGUAurJ2v34nzJaoseBoXzenxMLqe8KUB0Wkzha2C5s0Dhb3MYbizjsOh2I7kENdq y/2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=/S/54jP2KIVcMTz5zoRdb38yaY0oWOufh44eeJsf6CY=; b=H8EDAiedAAdMSAAnTOk+i2azMDHlGMej9PgVgC6mIeoWHeE3TRGldVgsQZTJw6PS80 rvpFbVsS0d5Y8k/I2o0DtMPFH9k1cgTRAQsxASnuJYgdzdY0QjRoemcYKstO/tNJVzi2 PquCJpMAnCp68ku4tug7zF/TtABxCtV2G0MoTkoEM9QD4P/k0PLJZZfgR0aHmmBQZzmW GFeNi5rxk+j1kMeSSbObCSautNQzyUvWL1cjFLAsVH13sjEIEh4sHVlV6xDdZFTL7ObP wSGfEW/+0JzsT2enuhMfTGXIsBJA62bECZym+a7n279i+R4+DDHnI8BtTVhrtAlsXFBY 1PbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f90-v6si2145632plb.63.2018.02.23.10.40.49; Fri, 23 Feb 2018 10:41:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932568AbeBWSkF (ORCPT + 99 others); Fri, 23 Feb 2018 13:40:05 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39888 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932557AbeBWSkC (ORCPT ); Fri, 23 Feb 2018 13:40:02 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1BBFF1182; Fri, 23 Feb 2018 18:40:00 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Darren Hart Subject: [PATCH 4.4 119/193] tc1100-wmi: fix build warning when CONFIG_PM not enabled Date: Fri, 23 Feb 2018 19:25:52 +0100 Message-Id: <20180223170344.476822898@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ 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