From patchwork Wed Jun 29 14:33:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9205879 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 3D76A60757 for ; Wed, 29 Jun 2016 18:03:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32F10283EA for ; Wed, 29 Jun 2016 18:03:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2675A2867B; Wed, 29 Jun 2016 18:03:53 +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 49475283EA for ; Wed, 29 Jun 2016 18:03:51 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id ECB8F2666D9; Wed, 29 Jun 2016 20:03:50 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CCFBC2666E2; Wed, 29 Jun 2016 19:35:24 +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 C75572666E2; Wed, 29 Jun 2016 19:35:23 +0200 (CEST) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by alsa0.perex.cz (Postfix) with ESMTP id 300CD26709F for ; Wed, 29 Jun 2016 16:31:43 +0200 (CEST) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue002) with ESMTPA (Nemesis) id 0Ltibd-1bRik126OD-0118NO; Wed, 29 Jun 2016 16:31:36 +0200 From: Arnd Bergmann To: Mark Brown Date: Wed, 29 Jun 2016 16:33:17 +0200 Message-Id: <20160629143416.45214-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:agovZvAWDAVDYoJNzgmG/D+3kuuVou9Opf+FnZB8O8RTw0FIuQr ZSJ92SdNDaahCObidZdPJSEpRFJSlxN5WqVFgf4CAogn07dJyORIM64K1ydZlyaL5JQWBaN VhdACbt+zcQCdR5LXIrt0RAy7WfN117RZfAvGbR/yBQZkGo8QicNWppoM2h/+ScVIRl831s tbvFx4rVonPm/IvBhiSVw== X-UI-Out-Filterresults: notjunk:1; V01:K0:gmYmTZD6tDQ=:WNMpZMnm6xVwvbl1PbIgkS lpN27+5p8Calth0YHcMPiezSp2J2phiEny2rbgBCeJVh9H0BAb9j8MUW437DplDciunMmJsCa zz0Y1hCLAsxbFNVu7JtJAzzEOUBSDtcmlr5B39yLJ4RLOoH7vCou6Yeaiwdrj2uvZ/fJqIMs2 K0LPrTK4A2AZ5j1P9q1e2WliTx4EbT000sr+iPIXaJNXpcFYsax1ltk7y14qjNr5Wq/gI7Fte 7DW752fseCMySWZFRlEmfFCUjhl6jr4QALEFoD0+FbnS7wf/hQNHOS+HTkNMHJkNPNgKa4wi6 Ap+sQCaAqdLk+/M/kSrGOhKnEoMYqkF9gpLOuaQVAtVNXZmSdRK6+oteMnnui5sV4IQZxYdz0 RgsoyLk5JYTuCEPoSwv0n1cztsYcBo1A7IiDj/IiE7CvvcLPWzBJB74UfhcqeTrAR5aKNcmcc HQASjnvwyPG6wQ2TOiiELEp4FzObhjmp4DK9CYED5G+igf7iz/vcunzimLrz9Dk34EViFWt9p cg6A/xXa1BW2iowpkYXHmCllkJLseHqryLqs6gnTeD86x3N1n7YLP2ZOdDOA3ku98Y3hjEZn0 kfKzNTUhDUYVJkgBaU1gz5QDuEZMXmgPDKhWnQvPnPCjdNkzdlo/G4cBfZpHkopPavTbEOr7a JT9RGMPC1AkRfDbXAKWo3WJ2cEuQsrYnzl8HmDrJcfcp8FFC5I0fz/zPNT1U5JXwLj2U= Cc: Brian Austin , Axel Lin , Arnd Bergmann , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Paul Handrigan , Liam Girdwood Subject: [alsa-devel] [PATCH] ASoC: cs35l33: 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 newly added cs35l33 driver produces a harmless warning when CONFIG_PM is disabled: sound/soc/codecs/cs35l33.c:908:12: error: 'cs35l33_runtime_suspend' defined but not used [-Werror=unused-function] sound/soc/codecs/cs35l33.c:868:12: error: 'cs35l33_runtime_resume' defined but not used [-Werror=unused-function] This adds __maybe_unused annotations to shut up the warning regardless of the configuration. Signed-off-by: Arnd Bergmann Acked-by: Paul Handrigan --- sound/soc/codecs/cs35l33.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs35l33.c b/sound/soc/codecs/cs35l33.c index 622a1111b21c..d8b5fc3fc45d 100644 --- a/sound/soc/codecs/cs35l33.c +++ b/sound/soc/codecs/cs35l33.c @@ -862,7 +862,7 @@ static const struct regmap_config cs35l33_regmap = { .use_single_rw = true, }; -static int cs35l33_runtime_resume(struct device *dev) +static int __maybe_unused cs35l33_runtime_resume(struct device *dev) { struct cs35l33_private *cs35l33 = dev_get_drvdata(dev); int ret; @@ -902,7 +902,7 @@ err: return ret; } -static int cs35l33_runtime_suspend(struct device *dev) +static int __maybe_unused cs35l33_runtime_suspend(struct device *dev) { struct cs35l33_private *cs35l33 = dev_get_drvdata(dev);