From patchwork Wed Mar 2 15:59:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8482971 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 29272C0553 for ; Wed, 2 Mar 2016 16:01:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1F38E2037C for ; Wed, 2 Mar 2016 16:01:16 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id E111620351 for ; Wed, 2 Mar 2016 16:01:14 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3B3132666EF; Wed, 2 Mar 2016 17:01:12 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id D71252654CE; Wed, 2 Mar 2016 17:01:04 +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 510D82654E8; Wed, 2 Mar 2016 17:01:03 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by alsa0.perex.cz (Postfix) with ESMTP id 2233426548E for ; Wed, 2 Mar 2016 17:00:56 +0100 (CET) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0MEsqA-1ahEnj0rE2-00FziV; Wed, 02 Mar 2016 17:00:49 +0100 From: Arnd Bergmann To: Mark Brown , Heiko Stuebner Date: Wed, 2 Mar 2016 16:59:06 +0100 Message-Id: <1456934350-1389172-15-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1456934350-1389172-1-git-send-email-arnd@arndb.de> References: <1456934350-1389172-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:zNw0aEd1Qn9qkQgGS6YPrNSutgUeuYHIKVLlhrnx61hUC8Q1IR8 D0eWG/KnYAC3fmfyqN0Xvb8y3mFrQyaHhpCcZZX/2QJWVW/w6+DWYih6DzE0OODZjAtaO0P B7Z9BuP70TYOBKPpaJzWu97fI+R+WdY9+Va4yPb6yJ6TbxY5TnRsQeMN99bC6gxqqiEqRBx ELCz0gYorhqh16NmWPAxA== X-UI-Out-Filterresults: notjunk:1; V01:K0:d0prHQyp41U=:rZYhpEqCbgmo/fxcwIINS2 qEZZKUVinIpw7wDfxOqF3LnoePMZNMqdoWxwfNCZLLzeNMtRWHR3fAIhbiyZ9PQfCv6UNL2t0 P4M8rhMKPc0t4SexRmCiU6cx8erOQE6z5L4XhGBpM4z+l3S5yJqEbVOu8dHlA7U9m7BYWmbtK Gs/F2jzQLgyZ8O/z8I7SPoTkiokekcfgpCMA0y++xBMo+hHZgoBowuFzRC95mLSUrtM6MNCL/ Wcik2tTg/+VMUevlvAFtVgDPiy2VaovzESfW9+bITfrUGKRa/p/J0LaN7xQGe7Uiw026vxsYg xUMB3yvLHai29YW0pCblBx+x84Af/za7vQFggR1B1TnH4GD0sATh/SVB02fUYS4aDPV6PrjrD UPQNlWXPt8Rx7bMTZcdc4WYoHiaj/mdvTGSqNapjRCcBBMswyjAEAKkeYu+YMX6fKvwmARccI SwrWdDuC+a6N+nNAbetW5vbaUwiaDDn1Xt8wMcOVLVrJrTPUJyg7fCpIREOvp+uMT1enOa7UN W2hN7kP4ho4mz8fOczdxExCgB3bYUntAYIZO4dC6F+Rjz7hTrmGP+aYugHhlCp71UxtWAhfpQ ZisAfPqxDpE8uuYkXnMeHuO9vChQ/xlnBuNGcUIKIB+6IeRGnzGL4YhOtJqmto8JuGHOOwbT+ p3pgpH+UFtJwbuOclnM/0Uq47Jy352IfZQ1I5fQ+At2nety3cYo+5WhatqL004pvfibc= Cc: alsa-devel@alsa-project.org, Arnd Bergmann , Liam Girdwood , linux-kernel@vger.kernel.org, Takashi Iwai , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH 14/14] ASoC: rockchip: use __maybe_unused to hide st_irq_syscfg_resume 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 rockchip spdif driver uses SIMPLE_DEV_PM_OPS to conditionally set its power management functions, but we get a warning about rk_spdif_runtime_resume being unused when CONFIG_PM is not set: sound/soc/rockchip/rockchip_spdif.c:67:12: error: 'rk_spdif_runtime_resume' defined but not used [-Werror=unused-function] This adds a __maybe_unused annotation so the compiler knows it can silently drop it instead of warning. Signed-off-by: Arnd Bergmann --- sound/soc/rockchip/rockchip_spdif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/rockchip/rockchip_spdif.c b/sound/soc/rockchip/rockchip_spdif.c index 5a806da89f42..274599d4caeb 100644 --- a/sound/soc/rockchip/rockchip_spdif.c +++ b/sound/soc/rockchip/rockchip_spdif.c @@ -54,7 +54,7 @@ static const struct of_device_id rk_spdif_match[] = { }; MODULE_DEVICE_TABLE(of, rk_spdif_match); -static int rk_spdif_runtime_suspend(struct device *dev) +static int __maybe_unused rk_spdif_runtime_suspend(struct device *dev) { struct rk_spdif_dev *spdif = dev_get_drvdata(dev); @@ -64,7 +64,7 @@ static int rk_spdif_runtime_suspend(struct device *dev) return 0; } -static int rk_spdif_runtime_resume(struct device *dev) +static int __maybe_unused rk_spdif_runtime_resume(struct device *dev) { struct rk_spdif_dev *spdif = dev_get_drvdata(dev); int ret;