Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1107474ybl; Fri, 30 Aug 2019 11:58:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFoBk7vsizJI7tck/CCeHQAn/uP4G7MpOG6KVGy+7Uo6UTl0NEKJRT0EQqdJgVKDmFq2kC X-Received: by 2002:a62:ab0a:: with SMTP id p10mr19837012pff.144.1567191524438; Fri, 30 Aug 2019 11:58:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567191524; cv=none; d=google.com; s=arc-20160816; b=XVClEc3nMkJ6jLuzCQaucNOgn+I7oFp4+5Gwcewa4b9hw+Ywvj/bh/fdNec002sJci d3XyZOv2B73RvVskzuW0dLdkf+ua8PLlxDvwGdf50leMYmtGPDEcBgovyrKDjXMvTlgO OfzCVHb7usPUarjq/18MxEDQG5BROCql7Axlcag3cIIp5nQnwVJqsWEwkjhkEVz2NwXI E9CS1HrVFKbdQM6oMElDx8G73vpKrxAUXSl4DxEov/S34bQNcOmpYBZFvdnVckghKW/9 fQQ7RiAqaoJ4jUeTFgeFn9tglpKre6chZ9LV6I+gFnZajAN1ILdkpYYd2fVvobX4wH8o /Efw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=qB7bQSi53I1npLxvR85xOF8bwwpMOBJ2wphwbJZyjGA=; b=vStq/3Rx251oIBA4ebGbcDQL2HRPgBWrpDk85tn2EWSFEHaUCyvN+darV2JT2OT+cG cZUW6LSkz4oWxlv7mZAiWHJT+QAS34Wp99LDwzSgMeBSZC9YUwnWOG5EFNRZuc/JDtOX S0WCJODumTH7A1cK4E77g87JVM+Z/2LksVQe+e0VS8KdW0/41QiSPqaZ1ALlHnNuAqqf rstMibKw3Wu0BW/ouJCeXdqZplwbLbpzAQ65zCx9hV8+U2fjOuxsqS0yPv8B17QSs2X7 ewvfQMvHT5VXtSkRu2EmjtKSbQhkkUMxdpWQBVgrLAlLokmwDul9KCdFdDyIWrVyK+Bg h63A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=S+L15B5K; 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 a95si5208923pla.2.2019.08.30.11.58.28; Fri, 30 Aug 2019 11:58:44 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=S+L15B5K; 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 S1728042AbfH3S4Y (ORCPT + 99 others); Fri, 30 Aug 2019 14:56:24 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:39894 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727791AbfH3S4Y (ORCPT ); Fri, 30 Aug 2019 14:56:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=qB7bQSi53I1npLxvR85xOF8bwwpMOBJ2wphwbJZyjGA=; b=S+L15B5KsQ25awTQMTHSrXwK9 /RlRLGUliPs9cgBcRwLZBX3Oq1glIaqAd2PBaeBgKNwUpGTgVwzgH9m0vt04PbrkKHLaMpcTeBBT/ 5eUmmbxDx4R1vvawFUfAhlW2pb6tJ08qrOjqdsxGoOd6u7jNBnnlVVnXlm+VDX6vzAD0RCGfYYU+B JvotsCSLtfZUkXdhAXqblkk19snm9UXOmSofvPsKc3u/AfBJPmiWD0WgPe3AT+EWozWDeN3UpkEQM gSr7V4mznJ9sbFPirjliyxnSl55tXKtBktjB4x6t1PAhOBMHlwfM2bVw5p34Pag7RjXQ6ZKUc4QjE /MOVr8Pvw==; Received: from [2601:1c0:6200:6e8::4f71] by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i3m4M-0002I2-Ou; Fri, 30 Aug 2019 18:56:22 +0000 Subject: Re: [PATCH] soundwire: slave: Fix unused function warning on !ACPI To: Michal Suchanek , alsa-devel@alsa-project.org Cc: Vinod Koul , Sanyog Kale , Pierre-Louis Bossart , linux-kernel@vger.kernel.org References: <20190830185212.25144-1-msuchanek@suse.de> From: Randy Dunlap Message-ID: Date: Fri, 30 Aug 2019 11:56:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190830185212.25144-1-msuchanek@suse.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/30/19 11:52 AM, Michal Suchanek wrote: > 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 Acked-by: Randy Dunlap I was about to send the same patch. Thanks. > --- > 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 > -- ~Randy