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: 118569 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp8030706qgn; Fri, 10 Nov 2017 06:55:21 -0800 (PST) X-Google-Smtp-Source: AGs4zMbS6GyWVf9LJxaIUXtLFB6sIn4ZtwT1cHN6pa1/8Dxd3tA9Q6KxTiK+IAlsANuy7mnX5DAk X-Received: by 10.223.183.7 with SMTP id l7mr514088wre.139.1510325720946; Fri, 10 Nov 2017 06:55:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510325720; cv=none; d=google.com; s=arc-20160816; b=1KNzuz76/YOcoyIxCtWG6P4/NR+t0ZAYwn4XEUCtnUtIzI1NP/DnXKF+tb20RW48G2 zfITmnKZtvPXgmVfFxfB9tTM2XBHhdyXEo+pIdxv/fOUS7uFrhaWt3YBdm3huXpu/WEJ 6kUn4LTiK7l+92hWNZXgkuISIjMHgQpugHfTuRt+UY1H5xHSa/Ci81FMhhoOEPqoJgor op7DAq3shrpP7Jcja8XlmUfVaJqQj8xd0LvOoau9iDZZIb/QVk9xBo3D1AQt9Z4qwZlB N4mzBZSXCBtM9m9Av47nLqedExPdhZEaxf3LH3o2wuPVLq1IBSNvzuGUxnU7lEvb5U80 sc3A== 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:message-id:date:to:from:delivered-to :arc-authentication-results; bh=kquloqlx9D3XKeHlkMRigG3HSZuo7kSfpG5b7vxDylQ=; b=O+0dprfW4ST7egxSnHRSY4hxzyJKiOOj2be53+o4ZXcK7MX6tvC5jMBPPB1F0Ga0Ky X31XtJTNRrt9iXchwqTk2I8L059uTF6vcZZqCoJ2QJcKqMHoL+ZIYdCclkbavNDGVLZD GsrBN095QMRA8dezjm/udfiUa9pXf6m5+xBgrquK+l+ET+32LzU07nKRFPlgD8/h2wio JKtapA7pTdsASVGKQmGXMut9+aY2944v5RoDE1vz3lnLX3ZvCuVSN9vVIWz3t5khvzBF H3qnJpu7qKPtG86IYQA9XyZaDer18USd98Q7rnL/q+qLpfOytwNf2krdUKuo6NkSJjGV CYkg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id r201si1317788wme.8.2017.11.10.06.55.20; Fri, 10 Nov 2017 06:55:20 -0800 (PST) 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; 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 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) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 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 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(-) -- 2.9.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/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 =