mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ACPI / EC: Fix unused function warning when CONFIG_PM_SLEEP=n
@ 2016-10-05 17:33 Eric Biggers
  2016-10-11 21:54 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2016-10-05 17:33 UTC (permalink / raw)
  To: rjw; +Cc: lv.zheng, lenb, linux-acpi, linux-kernel, Eric Biggers

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 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)
 {
-- 
2.8.0.rc3.226.g39d4020

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ACPI / EC: Fix unused function warning when CONFIG_PM_SLEEP=n
  2016-10-05 17:33 [PATCH] ACPI / EC: Fix unused function warning when CONFIG_PM_SLEEP=n Eric Biggers
@ 2016-10-11 21:54 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2016-10-11 21:54 UTC (permalink / raw)
  To: Eric Biggers; +Cc: lv.zheng, lenb, linux-acpi, linux-kernel

On Wednesday, October 05, 2016 10:33:16 AM Eric Biggers wrote:
> Signed-off-by: Eric Biggers <ebiggers@google.com>
> ---
>  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-11 21:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-05 17:33 [PATCH] ACPI / EC: Fix unused function warning when CONFIG_PM_SLEEP=n Eric Biggers
2016-10-11 21:54 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®