Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3095408imc; Wed, 13 Mar 2019 08:43:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqzOcur48dHrQ65ygKVkwtcMp7ZY5NrCY+iAIwVw0YfL83uxDraPSegDSWs1ezpX6ThvEW X-Received: by 2002:a63:6985:: with SMTP id e127mr40995816pgc.101.1552491790231; Wed, 13 Mar 2019 08:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552491790; cv=none; d=google.com; s=arc-20160816; b=Hr7zdnLWJXJg4b4gpcqoQSDTU6PaQVeQsxzB6XoI4dVvjvg9mIpDg6OUnH+1xoZq9n LUdqLAH8aOrW/Vc2v26ApkUnS8zuhGFzdN4Zs6pAE3KMNSADTuLPQldKIu5wZats3vea bmaaaHAjy7Gt3IC+FLa+xceesS19jqbLUuGaGTBKi4oviiqyCieB3Y+4mJGLeptvfaeT mqGRpuUUhH1kOUFaaN9fiRo3UGYZaifYndglApC18ikrBGkIqbxo2JLg25Fqamz40+qh BqAlhV8dN1HCpYqULXb0OakPSerL3SMJuXq9aw38xhN/R7ioYFLCF7gbodVOwbMNXXGP xFgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=7WFL3W2M3ADq+FKR8oU8nBzoFiliH+Io6Beopa2Nrfg=; b=QdBhkkmW4TkhlKcoxbyM5xahlrqFmL2x4yGGU2OEOJQTTuyIFVCXY2ej8stLrZpBnN UBo266mQu0yKUnWGdDWYiXKfEt0F6GreUtYh2NtGj4woHv4PwsH4ss9G1z2RRpzlinS5 rtRVLP8sdN9qCleZkO18DLoGFk8Ysm4alHQdA0YnnC6S/pW0cj7fbp5TIxFiPHArPKWP XDhtQAvY0Lc0QiJZ5OPWITqSjQ4bKsiYwp+30lY3Xf8LNER42CSJtz5mH1uETi5nC3Y6 FTKAfaauP1V/HWONWDRL4qNqg4Hb0F5hSXSkxEv5m1gqzpm1frqWXzLumbEAetUB37Ve l8yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=lTOWZh6U; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p4si12062625pli.159.2019.03.13.08.42.54; Wed, 13 Mar 2019 08:43:10 -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=@sirena.org.uk header.s=20170815-heliosphere header.b=lTOWZh6U; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727378AbfCMPlh (ORCPT + 99 others); Wed, 13 Mar 2019 11:41:37 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:49908 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726033AbfCMPjK (ORCPT ); Wed, 13 Mar 2019 11:39:10 -0400 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=7WFL3W2M3ADq+FKR8oU8nBzoFiliH+Io6Beopa2Nrfg=; b=lTOWZh6UoKjP ObrBt+LH7Y1TfJBTtKH+vOGI5RixS+7dmy4XU/KGgoah7LVf8/ZkX994MSHWSAxtJ+wfPOALbTXsQ pzSR49nTHASMn16YbkkULlCuBzXM1KSE4GL/XOxDtOu+VA1mCfZfTbrLXOwoFRYcWtA5TMOXScEeT sYeDs=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1h45y3-0003RL-KB; Wed, 13 Mar 2019 15:38:55 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 143DC1128B97; Wed, 13 Mar 2019 15:38:55 +0000 (GMT) From: Mark Brown To: Arnd Bergmann Cc: Peter Ujfalusi , Mark Brown , Peter Ujfalusi , Mark Brown , alsa-devel@alsa-project.org, Kees Cook , Tony Lindgren , linux-kernel@vger.kernel.org, Nick Desaulniers , Takashi Iwai , Liam Girdwood , Vishal Thanki , alsa-devel@alsa-project.org Subject: Applied "ASoC: davinci-mcasp: Fix clang warning without CONFIG_PM" to the asoc tree In-Reply-To: <20190307101145.636705-1-arnd@arndb.de> X-Patchwork-Hint: ignore Message-Id: <20190313153855.143DC1128B97@debutante.sirena.org.uk> Date: Wed, 13 Mar 2019 15:38:55 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: davinci-mcasp: Fix clang warning without CONFIG_PM 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 8ca5104715cfd14254ea5aecc390ae583b707607 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Thu, 7 Mar 2019 11:11:30 +0100 Subject: [PATCH] ASoC: davinci-mcasp: Fix clang warning without CONFIG_PM Building with clang shows a variable that is only used by the suspend/resume functions but defined outside of their #ifdef block: sound/soc/ti/davinci-mcasp.c:48:12: error: variable 'context_regs' is not needed and will not be emitted We commonly fix these by marking the PM functions as __maybe_unused, but here that would grow the davinci_mcasp structure, so instead add another #ifdef here. Fixes: 1cc0c054f380 ("ASoC: davinci-mcasp: Convert the context save/restore to use array") Signed-off-by: Arnd Bergmann Acked-by: Peter Ujfalusi Reviewed-by: Nathan Chancellor Signed-off-by: Mark Brown --- sound/soc/ti/davinci-mcasp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/ti/davinci-mcasp.c b/sound/soc/ti/davinci-mcasp.c index a3a67a8f0f54..9fbc759fdefe 100644 --- a/sound/soc/ti/davinci-mcasp.c +++ b/sound/soc/ti/davinci-mcasp.c @@ -45,6 +45,7 @@ #define MCASP_MAX_AFIFO_DEPTH 64 +#ifdef CONFIG_PM static u32 context_regs[] = { DAVINCI_MCASP_TXFMCTL_REG, DAVINCI_MCASP_RXFMCTL_REG, @@ -68,6 +69,7 @@ struct davinci_mcasp_context { u32 *xrsr_regs; /* for serializer configuration */ bool pm_state; }; +#endif struct davinci_mcasp_ruledata { struct davinci_mcasp *mcasp; -- 2.20.1