From patchwork Fri Nov 10 14:54:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10053301 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 38D3760631 for ; Fri, 10 Nov 2017 14:55:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2107328DCC for ; Fri, 10 Nov 2017 14:55:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15C312B097; Fri, 10 Nov 2017 14:55:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A0D52B2CE for ; Fri, 10 Nov 2017 14:55:20 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id EE6B1267048; Fri, 10 Nov 2017 15:55:18 +0100 (CET) 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 0101926704E; Fri, 10 Nov 2017 15:55:17 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by alsa0.perex.cz (Postfix) with ESMTP id 1D322266C99 for ; Fri, 10 Nov 2017 15:55:13 +0100 (CET) Received: from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MAuhQ-1eKpgl3JnI-009z2r; Fri, 10 Nov 2017 15:55:00 +0100 From: Arnd Bergmann To: Bard Liao , Mark Brown Date: Fri, 10 Nov 2017 15:54:42 +0100 Message-Id: <20171110145455.821805-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:HtKfQZf3K5dOD12Y+adnpLeS4vnalSm7Vg04o7xHa8e3NSqRxV0 gSlW5m5ZpMeBWzZu46Zlg+7dvD2trzIU2owNSJocpaUqpEb/aEdCO7ze4BVxu9TL0NVYow9 8KUattpCwoRkKPpVBzhYRyYXSdsuusB4z9tTZJzVyJFmbpDqADx/6udX7GSfinUTPhCKYgV oSFBZz3EkKquAoX7MXD5A== X-UI-Out-Filterresults: notjunk:1; V01:K0:UwXIfa8gDxQ=:EFZY0vCwdYVpoAeRA7xF6q IMjgw85QuR6O7J0j8sTODWaqsl2+Avqj7FMAU+t47/DjerpT/OtfIzWMyNPF10Tb3/+cZCZqs i40U7vulZEyK5RKg/+9wkVbGSM2jGBHCePLEhKw6FCytAwUkNQsvUAW/KrQu5EM28o9NT7Zwg 0JkVs4oFFVav/1qANnPaKJHPbHybvx9O89+v+XuDUweltRUdiM8TK+/qlmEUn4zWXxbMdp656 Q3N1JKzUkeLL3xHBFO2eHpO4TaBuhOqiLhUqgdXqeCu+NrII5g5n2GMAfKIOnM+8gmeGL7TOl TtoYoHdGYxKTZkXpelTJYJfgKDUJxdaIADQI/Kw9au/aGiQs3a9rcg+X9Yev3/wLaJlnPPEAP qXdDg1j3X27Ts97o1idFHcJMLfHgmwtp0qyApCbl9vNLiWzm+LicCx5K9ZAvDkPkgqYYQIEen gzfwaxmnL3LnYFs734u2S1fk5OXjVtr2wL8yI1cwDrwLz0JD+1HqU+o6pTVZZWwCUifgsT72m mZx2NeUPrr4WqC6HKyfV6+dkgA8EDPUCIxQm/gzKG5RBgafE+urI67TOQlfbDD5Bs74sL/mSR p895+9iRzw6Lmi14R0pPZF2Q/TzmBiOhD6ty2LiDQa0qTVpQKFR11raKK3OVnBeLQPU8HwSu1 RJ7H2AzJhsp2Gxf3PwqejfV4Tv1GtQsiA07FT6VuH0xv69GgxTlLLQU7zi83APSN38YaNU9Gk niMGxZVVe9X7hn8oKMTUG1KrEcqYsVpv9AXGGg== Cc: Oder Chiou , Chinyue Chen , alsa-devel@alsa-project.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , Hsin-Yu Chao , Bhumika Goyal Subject: [alsa-devel] [PATCH 1/2] ASoC: rt5514: mark PM functions as __maybe_unused 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 X-Virus-Scanned: ClamAV using ClamSMTP The new functions are only used when CONFIG_PM is enabled, leading to a harmless warning: sound/soc/codecs/rt5514-spi.c:474:12: error: 'rt5514_resume' defined but not used [-Werror=unused-function] sound/soc/codecs/rt5514-spi.c:464:12: error: 'rt5514_suspend' defined but not used [-Werror=unused-function] This marks them as __maybe_unused to make the build silent again. Fixes: 58f1c07d23cd ("ASoC: rt5514: Voice wakeup support.") Signed-off-by: Arnd Bergmann --- sound/soc/codecs/rt5514-spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/rt5514-spi.c b/sound/soc/codecs/rt5514-spi.c index 36e0a58ffc87..2df91db765ac 100644 --- a/sound/soc/codecs/rt5514-spi.c +++ b/sound/soc/codecs/rt5514-spi.c @@ -461,7 +461,7 @@ static int rt5514_spi_probe(struct spi_device *spi) return 0; } -static int rt5514_suspend(struct device *dev) +static int __maybe_unused rt5514_suspend(struct device *dev) { int irq = to_spi_device(dev)->irq; @@ -471,7 +471,7 @@ static int rt5514_suspend(struct device *dev) return 0; } -static int rt5514_resume(struct device *dev) +static int __maybe_unused rt5514_resume(struct device *dev) { struct snd_soc_platform *platform = snd_soc_lookup_platform(dev); struct rt5514_dsp *rt5514_dsp =