Skip to contentSkip to conversation

ACPI / EC: Fix unused function warning when CONFIG_PM_SLEEP=n

PATCH Applied Eric Biggers 2 participants 2 messages Oct 5, 2016 – Oct 11, 2016 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI / EC: Fix unused function warning when CONFIG_PM_SLEEP=n

---
 drivers/acpi/ec.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/acpi/ec.c +2 -0
index 6805310..48e19d0 100644
@@ -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)
 {
Signature · 1 line
2.8.0.rc3.226.g39d4020
#1 lore raw
Quoted 19 lines · Eric Biggers
---
 drivers/acpi/ec.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/acpi/ec.c +1 -0
index 6805310..48e19d0 100644
@@ -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;

drivers/acpi/ec.c static void acpi_ec_disable_event(struct acpi_ec *ec) · line 564

Quoted 7 lines
drivers/acpi/ec.c +1 -0
@@ -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