Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753797AbcJKVsJ (ORCPT ); Tue, 11 Oct 2016 17:48:09 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:53667 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753135AbcJKVsH (ORCPT ); Tue, 11 Oct 2016 17:48:07 -0400 From: "Rafael J. Wysocki" To: Eric Biggers Cc: lv.zheng@intel.com, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ACPI / EC: Fix unused function warning when CONFIG_PM_SLEEP=n Date: Tue, 11 Oct 2016 23:54:32 +0200 Message-ID: <15070756.yRzbHa5m24@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.8.0-rc2+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1475688796-17936-1-git-send-email-ebiggers@google.com> References: <1475688796-17936-1-git-send-email-ebiggers@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit 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-Length: 821 Lines: 32 On Wednesday, October 05, 2016 10:33:16 AM Eric Biggers wrote: > Signed-off-by: Eric Biggers > --- > drivers/acpi/ec.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c > index 6805310..48e19d0 100644 > --- a/drivers/acpi/ec.c > +++ b/drivers/acpi/ec.c > @@ -526,6 +526,7 @@ static void acpi_ec_enable_event(struct acpi_ec *ec) > acpi_ec_clear(ec); > } > > +#ifdef CONFIG_PM_SLEEP > static bool acpi_ec_query_flushed(struct acpi_ec *ec) > { > bool flushed; > @@ -557,6 +558,7 @@ static void acpi_ec_disable_event(struct acpi_ec *ec) > spin_unlock_irqrestore(&ec->lock, flags); > __acpi_ec_flush_event(ec); > } > +#endif /* CONFIG_PM_SLEEP */ > > static bool acpi_ec_guard_event(struct acpi_ec *ec) > { > Applied. Thanks, Rafael