From patchwork Wed Mar 28 14:53:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 132532 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp572327ljb; Wed, 28 Mar 2018 07:54:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx49pZAD2rYx496Mit0SgnOWl5FEtMRKkFYkKW+Uo+zTGAm7JcqxHaSYXWq7oukylDkNoMU8/ X-Received: by 10.28.152.6 with SMTP id a6mr2901354wme.119.1522248848745; Wed, 28 Mar 2018 07:54:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522248848; cv=none; d=google.com; s=arc-20160816; b=UZn7MZCYqTn/o4MOa9piGaiAZRblvSeULfRsBg+X+dfBX1y4gzmCMZOUuRVV/coGwE 164Bv2/eK4lpqzRqK5KNzv8HqxCmj7orG8A0ATr2P4b3Olcl86r8kluPuCiPdsM0szmC JMQya0ah7iDLb27uokBI3QZyHGMhFNO5n/ZV2BXqQVVzTl+L7g/ApFdDenQdwyDYNVgK izf/HL1rLNWG95xFyD0l1zrV6H/7Pct8VtRcDpjZZ3pbSKV6izoaGgYayOFEyq/W6/v1 80OUyHnZvoNWcOE17SFIpp7hvkgYSpdf5ZA7s7kJk5JfrWCOpOYvt16MniBR5Moutn0q xFsw== 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=BJYECGa/6EfL4PLfiHOMxzPnkTsuCsGqtXrVWU0tFFQ=; b=bK/HjL3ZOgSpKsBoOLowd4dby5apEoWTEVfKYYogeiupCL+gvrZPsOkIj/DeDk9ZBk r4WV1BG+1Kei9JfNmR1+YbKDFLGL206K8SOJEY03ZDCOnwGNbjwoh3P00AfY/Mil00cZ JJ10KpoVHg11duz7G3pEe83uqspU+uSDoW8HWwqxa468+QSfU25dX0YkjAWdpGQXLLgl kq4Yf0ZshGpj7ptD776OkUbYlABgLxE/Z4q8Bv0BeM/7u6Tc3QZE3vU2d7kETTnXtcr8 d1BN32Dpw7DYry6s/O+NggID5P65qDfqswrs8mKeXElRZEJ7Tny6SrVW/5OGXIhEtGt7 Et9A== 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 f19si2789631wmf.227.2018.03.28.07.54.08; Wed, 28 Mar 2018 07:54:08 -0700 (PDT) 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 A0420266FA1; Wed, 28 Mar 2018 16:54:06 +0200 (CEST) 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 4BF1B267063; Wed, 28 Mar 2018 16:54:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=disabled version=3.4.0 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) by alsa0.perex.cz (Postfix) with ESMTP id A3078266F93 for ; Wed, 28 Mar 2018 16:54:01 +0200 (CEST) Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0M4r65-1edlO81Lhd-00yyRZ; Wed, 28 Mar 2018 16:53:21 +0200 From: Arnd Bergmann To: Liam Girdwood , Mark Brown , Kuninori Morimoto Date: Wed, 28 Mar 2018 16:53:10 +0200 Message-Id: <20180328145318.10136-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:P9BT+t04wRIJOMK3z+6ASPKc9g/SgEYEahrvMBhQTqD+2wvxFFd c5N0SrJyl14qtwKJraZ4KLABwsjpdqpWE+k/GosHlnS5uLnunY1Ghe9bkQOPAVa9pwuzr2M EzItVgQ9soYr9Ox6D3k8zo9jKWn7c4HShalE+JUyElyM8nBn26uph+5iBQIzFkEuNlmSEAC sPLRV/G39hTh6AAQrPZpg== X-UI-Out-Filterresults: notjunk:1; V01:K0:1WlKLa/IMZU=:64Pst7i0Vn7jXwADyzlfu6 TiAmAskOCHv8EiDJtAnuoh+wk/ytaYDVbS2PD9ghv6V3P99/lPN0I4EIJDo46LU017cF/OeTy F5EXuJ1E5DUbLAH2SPpmp9jkzeeUYWBV8b5eY9IsKQdu3ZxI6ZRXalw+rVzywYTd/xkKiT/w+ EnUDKCJKGlq17pKw7oQIs6nbbxPwArQ1OoyJG7yrTMUxafrPy31tkoYUP7miUoiwGk0atxbyF FFB9ZuBXTiZO4F4rw7kbUt9NWd4s8qQ0NGXUo9ajJPkqOq9JMA8iO0zSSHqq2/GdOhb81O7lL DTvgwDg0f4vW+M//XBQhj/9Aor6BVxL3bvsZYqLnel6T5QFGGlYri9DN1X2ZSgJd/n78q0Osu tnNCSj0XJ3lzIFjBij4iPAcf0THOOvywldAgiPHIRBxZUUy8BUpqZiQoHxemkBfM83LBcMKXT fwXeHX4t5QTe4GZ8NL2sEaDDfOGEj6oMIuOoBAxwRgWRNxlpgSVFMISf4rkYhRarjpgJdcudt 853UlbvJyzsXnO0sk6gYX7viIbLjiXDvQhViXgxcrIiH5R2BXRuJFffkK1YyPe4DRAKncc6Mq 1AsrBTfCfX8enqo1/TRSbNJ5fGaTKudyY0X6GXcoOQ77imkOX5GWrhsNUQNhCFvunCZuo3lTr 70P07/15SONBQdqFG/2QCSbmq1l8Cc/Q6lKKzyy3jUckyRY7JXlKPYKq7SIXGkb45W1K10mwP 3z6au9qgeQxZKOKROnkmb6AF4hnvN/T69OdK3w== Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Takashi Iwai , Arnd Bergmann Subject: [alsa-devel] [PATCH] ASoC: rsnd: mark PM functions __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 suspend/resume callbacks are now optional, leading to a warning when they are unused: sound/soc/sh/rcar/core.c:1548:12: error: 'rsnd_resume' defined but not used [-Werror=unused-function] static int rsnd_resume(struct device *dev) ^~~~~~~~~~~ sound/soc/sh/rcar/core.c:1539:12: error: 'rsnd_suspend' defined but not used [-Werror=unused-function] static int rsnd_suspend(struct device *dev) This marks the as __maybe_unused to avoid the warning. Fixes: f8a9a29c4fe9 ("ASoC: rsnd: set pm_ops in hibernate-compatible way") Signed-off-by: Arnd Bergmann --- sound/soc/sh/rcar/core.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/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 6a76688a8ba9..94f081b93258 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -1536,7 +1536,7 @@ static int rsnd_remove(struct platform_device *pdev) return ret; } -static int rsnd_suspend(struct device *dev) +static int __maybe_unused rsnd_suspend(struct device *dev) { struct rsnd_priv *priv = dev_get_drvdata(dev); @@ -1545,7 +1545,7 @@ static int rsnd_suspend(struct device *dev) return 0; } -static int rsnd_resume(struct device *dev) +static int __maybe_unused rsnd_resume(struct device *dev) { struct rsnd_priv *priv = dev_get_drvdata(dev);