All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] soundwire: slave: Fix unused function warning on !ACPI
@ 2019-08-30 18:52 ` Michal Suchanek
  0 siblings, 0 replies; 31+ messages in thread
From: Michal Suchanek @ 2019-08-30 18:52 UTC (permalink / raw)
  To: alsa-devel
  Cc: Michal Suchanek, Vinod Koul, Sanyog Kale, Pierre-Louis Bossart,
	linux-kernel

Fixes the following warning on !ACPI systems:

drivers/soundwire/slave.c:16:12: warning: ‘sdw_slave_add’ defined but
not used [-Wunused-function]
 static int sdw_slave_add(struct sdw_bus *bus,
            ^~~~~~~~~~~~~

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
 drivers/soundwire/slave.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soundwire/slave.c b/drivers/soundwire/slave.c
index f39a5815e25d..34c7e65831d1 100644
--- a/drivers/soundwire/slave.c
+++ b/drivers/soundwire/slave.c
@@ -6,6 +6,7 @@
 #include <linux/soundwire/sdw_type.h>
 #include "bus.h"
 
+#if IS_ENABLED(CONFIG_ACPI)
 static void sdw_slave_release(struct device *dev)
 {
 	struct sdw_slave *slave = dev_to_sdw_dev(dev);
@@ -60,7 +61,6 @@ static int sdw_slave_add(struct sdw_bus *bus,
 	return ret;
 }
 
-#if IS_ENABLED(CONFIG_ACPI)
 /*
  * sdw_acpi_find_slaves() - Find Slave devices in Master ACPI node
  * @bus: SDW bus instance
-- 
2.22.0


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

end of thread, other threads:[~2019-10-15 10:46 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-30 18:52 [PATCH] soundwire: slave: Fix unused function warning on !ACPI Michal Suchanek
2019-08-30 18:52 ` [alsa-devel] " Michal Suchanek
2019-08-30 18:56 ` Randy Dunlap
2019-08-30 18:56   ` [alsa-devel] " Randy Dunlap
2019-09-04  9:30   ` Vinod Koul
2019-09-04  9:30     ` [alsa-devel] " Vinod Koul
2019-09-04 10:48     ` Michal Suchánek
2019-09-04 10:48       ` [alsa-devel] " Michal Suchánek
2019-09-04 11:40       ` Vinod Koul
2019-09-04 11:40         ` [alsa-devel] " Vinod Koul
2019-10-02  8:20         ` Michal Suchánek
2019-10-02  8:20           ` [alsa-devel] " Michal Suchánek
2019-10-02  8:33           ` [PATCH 1/2] soundwire: depend on ACPI Michal Suchanek
2019-10-02  8:33             ` [alsa-devel] " Michal Suchanek
2019-10-02  8:36             ` Greg KH
2019-10-02  8:36               ` [alsa-devel] " Greg KH
2019-10-02  8:33           ` [PATCH 2/2] soundwire: depend on ACPI || OF Michal Suchanek
2019-10-02  8:33             ` [alsa-devel] " Michal Suchanek
2019-10-02  8:36             ` Greg KH
2019-10-02  8:36               ` [alsa-devel] " Greg KH
2019-10-02 16:06             ` Pierre-Louis Bossart
2019-10-02 16:06               ` Pierre-Louis Bossart
2019-10-03 10:15               ` Michal Suchánek
2019-10-03 10:15                 ` Michal Suchánek
2019-10-03 10:13           ` [PATCH v2 1/2] soundwire: depend on ACPI Michal Suchanek
2019-10-03 10:13             ` [alsa-devel] " Michal Suchanek
2019-10-06 12:07             ` Sasha Levin
2019-10-15 10:45             ` Vinod Koul
2019-10-15 10:45               ` [alsa-devel] " Vinod Koul
2019-10-03 10:13           ` [PATCH v2 2/2] soundwire: depend on ACPI || OF Michal Suchanek
2019-10-03 10:13             ` [alsa-devel] " Michal Suchanek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.