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: 102072 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp2184514qgy; Wed, 29 Jun 2016 07:32:08 -0700 (PDT) X-Received: by 10.157.37.6 with SMTP id k6mr5824395otb.115.1467210727989; Wed, 29 Jun 2016 07:32:07 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w66si1292814oib.144.2016.06.29.07.32.07; Wed, 29 Jun 2016 07:32:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752775AbcF2OcF (ORCPT + 30 others); Wed, 29 Jun 2016 10:32:05 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:57555 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752094AbcF2OcD (ORCPT ); Wed, 29 Jun 2016 10:32:03 -0400 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 Cc: Arnd Bergmann , Brian Austin , Paul Handrigan , Liam Girdwood , Axel Lin , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: cs35l33: mark PM functions as __maybe_unused 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= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- sound/soc/codecs/cs35l33.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 Acked-by: Paul Handrigan 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);