From patchwork Thu Sep 27 22:39:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 147747 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp6098lji; Thu, 27 Sep 2018 15:39:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV61NjAgNdHuu3l9JDYwwumfGm9P78RK42JRye0Jro/9/pCVQxfkfdM98hm/EFt0cOdOBlmQd X-Received: by 2002:a5d:6651:: with SMTP id f17-v6mr10228933wrw.281.1538087982298; Thu, 27 Sep 2018 15:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538087982; cv=none; d=google.com; s=arc-20160816; b=OhQm+ZhCEFTHslHNTpJVgs57xH+Pyr0tmWUox6Z+HxYxnbNu17UOX70uywwV41LmRh wIQoMZPWdMcGRD++9aqgeIB87QZJiZ3R4UJssv6wjQdsKLICmTOb6Cs4jOMNSWCUgB/T 1smcSpS8jAbaRRy07taBRLWtMxdAHyUcj5Aoc9mkODJRQlXYveMNSI2aAINwGPtsfA21 T2VheABLsJdGm9C5Su/baaA0JkEf+kiV/y4d6zGU1JwSgA58mmtivZgwZJHUUyjORjy7 D9+D3TcMYfDa2yrO/Xg9VKB6cjXgcc45uW52lOgbQV2xL//Zv6qixqNitFT6nTTyfv/t t5Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to; bh=ulsxyeDc1QC7buKVnJ+7TKbU8OxFdXCLFzN7EUZsIRo=; b=bkH5AMJ+Ia5bRIGoguJVQcLa6TRGcQ4Xfprv5tERrBx/KRv5HwjpvaLEsrtgx4OxaQ 6Gx0XjWhWq32R4LiXuVB9/ujE9QOUuxLy7MvxEHEROIItUc0GeDmSiLSg9H6Y+ZhMEuF pR56KmMjz9Z3Mw2NKx69H/bRlUhF8U6fcfOX1Oq/c7tD6DpiSzOJSYGQywK4CRSRYneC wCaN9GsCI7Ik2mhEdUUu8JDm1LJTZTKR6mL3fRSRz+6K8/AQouFQWKbX7MG+Etrda1Tq MyPH1tsdBFggUV09SyULCggMir5ZIrNI2ArstDtUWjdfy7ODnLxG26BGFJJdC69VW+Dl rW8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="UF/r20Fd"; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id b75-v6si269094wma.44.2018.09.27.15.39.42; Thu, 27 Sep 2018 15:39:42 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b="UF/r20Fd"; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 1C6562678C5; Fri, 28 Sep 2018 00:39:41 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id DAE5E2678D2; Fri, 28 Sep 2018 00:39:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 2B56E2678C3 for ; Fri, 28 Sep 2018 00:39:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=91PXV22JAQEkvDM3HYpdadO54RDQTnjpVLBYUPH+4f0=; b=UF/r20Fddcau ZrPl2as9e0n4sbM9u4iLxoEgRW1LpJHmApSor76fnk3JoVnbIrdLAl8OooDhoNvhCn4GJ1QuXyk89 YoA4op3r4BEv4yP8SxQhf1yEXHmWlbCt+uDdECQL4x5Ua/EzULALnU1FFi2jRB/3y+d70WtMij6LJ u+/kI=; Received: from [2001:470:1f1d:6b5:7e7a:91ff:fede:4a45] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5ewS-0007Sy-S6; Thu, 27 Sep 2018 22:39:29 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 154F7440078; Thu, 27 Sep 2018 23:39:28 +0100 (BST) From: Mark Brown To: Arnd Bergmann In-Reply-To: <20180926193750.2468414-1-arnd@arndb.de> Message-Id: <20180927223928.154F7440078@finisterre.ee.mobilebroadband> Date: Thu, 27 Sep 2018 23:39:28 +0100 (BST) Cc: alsa-devel@alsa-project.org, Charles Keepax , Kuninori Morimoto , Marcel Ziswiler , patches@opensource.cirrus.com, Takashi Iwai , Liam Girdwood , Mark Brown , Fabio Estevam , Robert Jarzmik , linux-kernel@vger.kernel.org Subject: [alsa-devel] Applied "ASoC: wm9712: fix unused variable warning" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: wm9712: fix unused variable warning has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 18380dcc52cc8965e5144ce33fdfad7e168679a5 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Wed, 26 Sep 2018 21:37:40 +0200 Subject: [PATCH] ASoC: wm9712: fix unused variable warning The 'ret' variable is now only used in an #ifdef, and causes a warning if it is declared outside of that block: sound/soc/codecs/wm9712.c: In function 'wm9712_soc_probe': sound/soc/codecs/wm9712.c:641:6: error: unused variable 'ret' [-Werror=unused-variable] Fixes: 2ed1a8e0ce8d ("ASoC: wm9712: add ac97 new bus support") Signed-off-by: Arnd Bergmann Acked-by: Charles Keepax Signed-off-by: Mark Brown --- sound/soc/codecs/wm9712.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.19.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index ade34c26ad2f..e873baa9e778 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c @@ -638,13 +638,14 @@ static int wm9712_soc_probe(struct snd_soc_component *component) { struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component); struct regmap *regmap; - int ret; if (wm9712->mfd_pdata) { wm9712->ac97 = wm9712->mfd_pdata->ac97; regmap = wm9712->mfd_pdata->regmap; } else { #ifdef CONFIG_SND_SOC_AC97_BUS + int ret; + wm9712->ac97 = snd_soc_new_ac97_component(component, WM9712_VENDOR_ID, WM9712_VENDOR_ID_MASK); if (IS_ERR(wm9712->ac97)) {