Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756404AbcCBQBk (ORCPT ); Wed, 2 Mar 2016 11:01:40 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:60394 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753419AbcCBQBe (ORCPT ); Wed, 2 Mar 2016 11:01:34 -0500 From: Arnd Bergmann To: Mark Brown , Heiko Stuebner Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/14] ASoC: rockchip: use __maybe_unused to hide st_irq_syscfg_resume 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= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1381 Lines: 39 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; -- 2.7.0