From patchwork Mon Jun 17 11:06:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 166984 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2712953ilk; Mon, 17 Jun 2019 04:06:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgdRXhnjZhfftVkiit/5v4U7d4N9ScZ681ISIxx/BUIf6LE3vmurDWTXifOZQBWAjiyA/u X-Received: by 2002:a17:90a:730b:: with SMTP id m11mr25413549pjk.89.1560769590125; Mon, 17 Jun 2019 04:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560769590; cv=none; d=google.com; s=arc-20160816; b=pc4If1XMbmC6izBrLQXQqEBwXrYQ9Esmr+deL9w8pE6mRXY0G3WHUxVT99+adA8ggY x6HWMo1kj9YiGrpf2WEKsJ+7lAz4FmQZNX4p9RBETdsDgc8oBEJ2DmvqegaO5gsfll5X nACHTNkfxItXE6JTUUise/G6cICZg7B0LHlTil8qNdLwMiKBh57QARvwAba2tOGzc3+N Ggg5JT3mEPCEqH6bGtXvVaosdO8bG4N4cc2pr+Z4p8HPyt+/Q+cYIMW8sto+MjQ1HKV0 h2nNzRSn+lMQLfp5fh3IBzHfSWaP7XMNf0SKBIbRZ5/otOSYvm+jJ9KIoSlcZiA2n2Y1 ncKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=5IndYCcbENrNi8ZZ2lNTy8Gu3lLH+/b916/jfL1nXGw=; b=bqFLkzoQuJMb/doeP9NQQttqxUc3o1LGqt7NivtxeOi2xN5Wb7o3BDe6USAiBT96Zl wTm3n6aAiDvRno5++YEIce7zVCDPZuFIlf0jOENGJSQZJ5aNz1Q0QDnqHOiR/mDVq5j9 4dJzq//RLDn8KwQPY6B8CjmI5iEPE+WVnMbWWXT6jGR/BzOnUce7ZYwfj6zJnw1C5QYK urf2wFfQa8cHGtknzZCpNE8anNdwOuqiShZZ+y6zlko2B3xFuC8qft9NUJOhyDeBttOe +zO533m6uJiosDVITfxMVXw+tibfamoEC4cNI461PHXPrlIxJHaoNPtZWvEKl8GGHKq3 LqgA== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb5si10217518plb.172.2019.06.17.04.06.29; Mon, 17 Jun 2019 04:06:30 -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 S1727680AbfFQLG2 (ORCPT + 26 others); Mon, 17 Jun 2019 07:06:28 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:56837 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726164AbfFQLG2 (ORCPT ); Mon, 17 Jun 2019 07:06:28 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MF35K-1hsBX83HGi-00FX24; Mon, 17 Jun 2019 13:06:18 +0200 From: Arnd Bergmann To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, simon.ho@synaptics.com, Arnd Bergmann Subject: [PATCH] ASoC: cx2072x: mark PM function as __maybe_unused Date: Mon, 17 Jun 2019 13:06:15 +0200 Message-Id: <20190617110615.2084748-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:imZ+6nmN3JNLX3mmZ/m85Tw3DUGLuQRqfp+OHv0e6v8Sna1BTqb Ia0NkHUM0xOVTKecq7eJVkaHlweKCwVnWwuER+8zeP2Hz09xud7svdcbfGvspIytpP3UE0k jm+h/cewI2Dtv5LN95ENIk3DIIcvb+9z6TkyhTyIbk9snxwrP+i48H8bY+xJzBfbU8Roz14 FevkcIEAZMFuRlJOjH38w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:UWLRdc/oTTw=:LHC1wNVDSBgYr0e7hr3Y2a wVXYdnSRqTmZB8VMYxiVgLIa9BL3ZZ5VZpQNxxRjyG6Mtp2EN4cVv1/pUW0gVzsHnEuArbhg0 1rEpVDQTWwW0NDzXrt6WQRO+7vcq9mtVdskwNjKU0QYdvvjePsBHcuZ85jDWoZC/cidNj8wey J7yTYoAjgdMaFy3PGgJbr6ZFmaJwQt73Lo1RXqDwkvipxqs+yXqJSoDGTtBkYOb9gnPCwsZRS 3CyZ7cVtAgNeOFfc4ksfRqPVNwojfCfhXDZOhLyktpv/S57Xhn6IPMSUuvy8i4i3WCWauIOYd SFoIcidvUvCcekS9JW0LXYvyMccJqESJG6kDY3vpjENpPpKREvm4Z/K2TCR4pmBIqK5D06LZr xgBNNQzI1C2We5i6+ow2wyvvOc7Z3wlwGxVXtuDtWpSxcRtn+NYpcpBlhPwRvt7md06RKF1tF GfP5pif9+vPkUrbrjBc2PuGOe8ddC8SJPUDRWSOZXcrOYvhuA46Gip4g58CZCw1H8R9K4wjSs D4Mh9JtLq+rALuzsOxIQMng8iNCVKdkJrC+wpbHk65C0Ac3Z/2vZD9gF7q5zlXmCAXhgUp/vj HVAN3ZMo2i2KZQiw7xO8UkG5aADAAnI76lSafwybmtphKuEsccFGMqjz7rkm1GYBOrrQrKAqC uk+C7XGnBVSySyV/sTJMEXBLzVIDXUMb+uE6AOYSkchln31VcMCFhRWMtip1bl8zvoTyljWV8 sEWIlOh7XBBVwpoVMVL/f9/+KMyaL3JA4OMzdQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While the suspend function is already marked __maybe_unused, the resume function is not, which leads to a warning when CONFIG_PM is disabled: sound/soc/codecs/cx2072x.c:1625:12: error: unused function 'cx2072x_runtime_resume' [-Werror,-Wunused-function] Mark this one like the other one. Fixes: a497a4363706 ("ASoC: Add support for Conexant CX2072X CODEC") Signed-off-by: Arnd Bergmann --- sound/soc/codecs/cx2072x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0 diff --git a/sound/soc/codecs/cx2072x.c b/sound/soc/codecs/cx2072x.c index f2cb35a50726..1c1ba7bea4d8 100644 --- a/sound/soc/codecs/cx2072x.c +++ b/sound/soc/codecs/cx2072x.c @@ -1622,7 +1622,7 @@ static int __maybe_unused cx2072x_runtime_suspend(struct device *dev) return 0; } -static int cx2072x_runtime_resume(struct device *dev) +static int __maybe_unused cx2072x_runtime_resume(struct device *dev) { struct cx2072x_priv *cx2072x = dev_get_drvdata(dev);