Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1103574ybl; Fri, 30 Aug 2019 11:54:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVqmiacOUFsg6g6E6Q+6kgjlI+MTQjJa44eXV1jqIsVOBNakpmtATfE3hSeU+sirVidC59 X-Received: by 2002:aa7:8647:: with SMTP id a7mr18938166pfo.119.1567191286720; Fri, 30 Aug 2019 11:54:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567191286; cv=none; d=google.com; s=arc-20160816; b=VJndXgacLw1VD/WD/IsDh7wCmh4XjHIVhXH6NHr/aEgVgouMzcEHmTbd8DZbkMglvf mhmpRXKh4bkpck7cN4hC5UhbtUFnSaYA0PnBjm7uk6qYKty+60K30glp5kawp130oBF8 1MPDtt3CCO5D8aoTdNJ/vCiWtI51Pa15Wj+UGuvEo/geKpXrIMfMM0CQ2g/kU2C3cdVB /g6qGTC7BE9L5Xd5vAFcwyVVezxBmIn4lXkocVIh8oYvyVqWhRtNKLw6Kgb3IA8QG6oX 8n3JqbqnS0E0irD2EpZwgdHaz96WXqu+Gt/kTDV85ykJL9nB1XvqmYe7CLXBFH9Unj5x SaDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=tpj7LHBDmNdaiavHCSKax+CZiYOKlRMbZawYJixgneU=; b=MHW1sA2ZhfxLbi4gGRRW70/9L294iWO/uwV8VVQlM9v65mqgj0WN+m/5KZLfihcobs QOoxKT1PsXWlvjAfwlvJ4gknGVm0C9bNWKzQJnoK0/uc3yZwQQHcgXpjuLVwxXswWeN5 aUODKtswY7fpqWNf6ZgMAOLuiZZTNnJ92tOqD+vL12gUY/N0MqR0Gs41BnUG7K+0agJb FcP/TBUZiNKl/4oPM5/SU7lVyH3TBgq/0P+GRkFPGAVoU7lgGD30HWKAiy6x43y+5u2m e7TgY0wp6F/ez3VmkbbwIHx6edsjIUY2GKn8qudFuULSG8rxL7/IvWB8e1p3nfMZm2TN 9k3w== 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 a36si5399973pla.30.2019.08.30.11.54.31; Fri, 30 Aug 2019 11:54:46 -0700 (PDT) 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 S1728202AbfH3SwU (ORCPT + 99 others); Fri, 30 Aug 2019 14:52:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:40818 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727914AbfH3SwU (ORCPT ); Fri, 30 Aug 2019 14:52:20 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 51E92AC84; Fri, 30 Aug 2019 18:52:19 +0000 (UTC) From: Michal Suchanek To: alsa-devel@alsa-project.org Cc: Michal Suchanek , Vinod Koul , Sanyog Kale , Pierre-Louis Bossart , linux-kernel@vger.kernel.org Subject: [PATCH] soundwire: slave: Fix unused function warning on !ACPI Date: Fri, 30 Aug 2019 20:52:12 +0200 Message-Id: <20190830185212.25144-1-msuchanek@suse.de> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 #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