Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3952987imc; Thu, 14 Mar 2019 08:55:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+jOB/gZvAVsQznAG2VzJm8i/UurdmdG5upCraIhx1pcjAQYDaiP0Dp2zYh8o60eZecSxp X-Received: by 2002:a63:581c:: with SMTP id m28mr10041393pgb.332.1552578917998; Thu, 14 Mar 2019 08:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552578917; cv=none; d=google.com; s=arc-20160816; b=GfU64ni8PLb0WjOVeAlqm9Qc/pvpYkj4HGYQq3ZlJVBCVYLqvoGnEdYBCn0dKvK6m7 mhPn4wz/CE33iJk+D3ZMCknh0+xEJonbjzcil7KA8Vuh0sIB+oQKGXxbVFCwU7iCIVU1 DaXOlzu8ts43WBeDG667kzGGd4a5j+nccBbsYx7PjEgaAyemxc10kJWQLPPTHL78TVk+ TUvs+9orT8lDVJEJNO3QT3qBqz6FU5Mm7SdrDHl3+tmdQZt3PsfYxoZgOHnRX3qBAgO/ 8DN/sU12N/L1/yGzu2UrqKLOd6+M1kAtyFbs+4CHCKiogOh+fGzS5oKA7Jb49aQQGs18 5lPw== 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=TgO5etNjzhsEuiR3XpG4ShpxxQK/ojrAJ8P4HpYSlUWPKiNag5hx5flWgV04sG8Az8 A2wySnUEnn9Fy4z39nC4vQzVKQ/pCwjJGcfIf4gljcTAjvX/gC1LbKXBPlw6CCCIyayt W7bqRKZoSNyFRp0ou6v1zJ1u5iE+TdEHIcsrShFo7+bBPgijRV/XDq17PBgY2N8WuYYV gEiX4LpEQh4w/TmEAVylC+cmUyPj7s6KIguDCJByxTN0ei5JAKin1rNChhZ5cNYAh3s5 vjnmPuzvhKT09h6oo/k//+1ad5Cmr7TnzLZpSQz9IQDrFQtNQYnoGyvGL4Sz0mc0Iixz ggXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=lwF4d6lH; 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 g186si13443708pfc.58.2019.03.14.08.55.03; Thu, 14 Mar 2019 08:55:17 -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=lwF4d6lH; 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 S1727375AbfCNPyF (ORCPT + 99 others); Thu, 14 Mar 2019 11:54:05 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:35262 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbfCNPx6 (ORCPT ); Thu, 14 Mar 2019 11:53:58 -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=lwF4d6lHRkVR l4edQtK3HqswKcKIO4gxYNkBThKqu2s2tFRuPZ2Zrx0gHljbfuMSisMoOWxBJL8kjAmAHX2Xa/kdr OYdo0E71Biu54Wyhn2RBFTmocq4ahYduw1RAtbsubJEFqRUKdU5LGovLbEuBjHWuZhSFx3XHe8uof kHu6c=; 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 1h4Sg0-0002gj-8j; Thu, 14 Mar 2019 15:53:48 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id AD7301126E64; Thu, 14 Mar 2019 15:53:47 +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: <20190314155347.AD7301126E64@debutante.sirena.org.uk> Date: Thu, 14 Mar 2019 15:53:47 +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