Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1291949imc; Mon, 11 Mar 2019 10:25:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJ6bL+Qt78gwGc8B9IG6TuPhNrVpT0hc4qOQLkgUxlchZCUU80U90/WPd6nbShZ/lPpxCj X-Received: by 2002:a17:902:586:: with SMTP id f6mr5101365plf.68.1552325114588; Mon, 11 Mar 2019 10:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552325114; cv=none; d=google.com; s=arc-20160816; b=o3wYHI2TlSF+tBN5gwSpn+xciwcLhxAuphixuerPFDCURTOZEeIQ6K9ANXSJT0CVqB uyjaY3GWEIJroIHOWsyfL2GB1jtU+YY/je9YhRmKv3nkxW6ox758d34dAxFToEjwQpxJ 2zw0nr2zQwczvvYIw+KhdjzyBWS/i+9E0ouE0mj0/qBeUrb/TpE2d5n1q5XuSjuUwsH8 2tl/hXEFfNIbQK1Uw07HwSU0yBIw1q8x9X5LkMxAfijDfW2SCGTyGsUuU5M79Js7QBfa xJSWiCdP9njxb8sNsGqoYmRukyASkbY2nlO3n4aGrH1KcJb5uX5jcA64r/KXtPqbVqt4 uePg== 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=pn8D/ZklbQnuDdWu0RtkUan41GSorOopxdlkRMy3zN+a/+EErrRLMF1vigRLV11YfW rDU0gete1G0M2zgpRhoJmvGSxPvNB0vxxDG4sM9jUhfW4jZ2qzOrLTWY0FgvxoDcdVGZ ONVH1wprJo+gicn6SXIpFYMOy1oX7vpZ272nm5nh2viKUHQiMkYoK6i6v1CxNpXn2iyl TAlmm/o9fl0T57RsQ8fqo0q+TrJFGnbG5EPpg0Mq2bIQACmYXf80CU1lcymzp5bhmSIH /bcTDQc6XjWq5kUI6LNjdFiNXW8kmjx0qYz9v0343XmuNkQlTtGbj2vwzLSgAKNooMSq 19JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=UVMgXSue; 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 s68si452824pgb.199.2019.03.11.10.24.58; Mon, 11 Mar 2019 10:25:14 -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=UVMgXSue; 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 S1728158AbfCKRYK (ORCPT + 99 others); Mon, 11 Mar 2019 13:24:10 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:50596 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728108AbfCKRYC (ORCPT ); Mon, 11 Mar 2019 13:24:02 -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=UVMgXSueIeGm sputoW48Y/0d0GNr0se4/xabf1aKiEeG8Xa5W/idLYVi5UPzVmT56JpzEZZ8a1+/eJD3QKy0yuMt5 jtN7y2ODUnfZg0U8L6963iX+WfsQxriqzN1WNViADkpIzMXjcl+2qg67Jx3CF5BTichJjDj51yIz8 5II1I=; 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 1h3OeX-0005N9-NY; Mon, 11 Mar 2019 17:23:53 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 349AB1128896; Mon, 11 Mar 2019 17:23:53 +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: <20190311172353.349AB1128896@debutante.sirena.org.uk> Date: Mon, 11 Mar 2019 17:23:53 +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