From patchwork Mon Jan 11 12:09:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101192 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2068185lbb; Mon, 11 Jan 2016 04:10:16 -0800 (PST) X-Received: by 10.194.203.228 with SMTP id kt4mr134144067wjc.58.1452514216215; Mon, 11 Jan 2016 04:10:16 -0800 (PST) Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id t9si102904150wjf.169.2016.01.11.04.10.15; Mon, 11 Jan 2016 04:10:16 -0800 (PST) Received-SPF: neutral (google.com: 77.48.224.243 is neither permitted nor denied by best guess record for domain of alsa-devel-bounces@alsa-project.org) client-ip=77.48.224.243; Authentication-Results: mx.google.com; spf=neutral (google.com: 77.48.224.243 is neither permitted nor denied by best guess record for domain of alsa-devel-bounces@alsa-project.org) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9D597260639; Mon, 11 Jan 2016 13:10:14 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.2.4 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id A8AE8260481; Mon, 11 Jan 2016 13:10:12 +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 65E8A260523; Mon, 11 Jan 2016 13:10:11 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by alsa0.perex.cz (Postfix) with ESMTP id 59F75260412 for ; Mon, 11 Jan 2016 13:10:04 +0100 (CET) Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue005) with ESMTPSA (Nemesis) id 0LmgTP-1ZiR891kJv-00aGJb; Mon, 11 Jan 2016 13:09:58 +0100 From: Arnd Bergmann To: broonie@kernel.org Date: Mon, 11 Jan 2016 13:09:55 +0100 Message-ID: <4242434.H1qiCWaR2p@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:mxhu++0ixIHolAPsDlLt65y8ka0hLh/pcF1LoP+OuQIddW3JI3p x1E7ExUyHyETjyX5e3RC3fj8UJIn/5kCbAf0dEby7m0Co4JR4e0p/LBZiyqE4zld40kJAeI MyhVQuuIrdjBc6TnzIXF1Z9ah+SlEU5MpkEpNJ45ADZGMZ8nQGURLImSj8iXu+DoATINDz8 MogLfUX0R/iUgcC49b8kA== X-UI-Out-Filterresults: notjunk:1; V01:K0:aii30PE7/9w=:/4TMIga/eFYyOe5L3xUFqY YVv/JO5b4Q+BMiZTA/va51vmEYORHYSVW0gR4oaWMTJFGWNHycdnaoE2Ft2RLcZ+Oy2gLvlCp aahBnNZ1zcVyGBPDpvJg9uv5QRXWed9kzHGiJpsmKhoJU8TEtOKI2Gj3cj0/qAJ58/IhOCMwi Gu5Eez2ijWrspPcVoffIxy1X/2v+NzSz4hGMZT8/jL9Juxw2KgV3NAOaSr5wYiG1NBC+BjpWE lNJXV48u7K3MYpSfQGhtwJ21AhuYlmI9VBM/5WtOUpH2E6JKu1kREFbr6XRKubCfJMfZ7A5I/ QkHjJ++/OGTE0NObNP5qzFvVum8+HmQYlS4pKpP1zwB1b43ifrGv9EObBnOMTKzSVDiGAxJPq 6f8Zlsws8BtyiU7rC0XRSoqLmonDBRnSflRPk5sM76qF6kEX4buCX9O5o0CRWjzm45aaZ4qPJ mPWAElwq4ptacoZbpo3VEeTmx7QIq6cIiWhSSgcMmaC/P/7jjWaMy1jqD9JJV172iI6PsVdWB 3ZiLDBMDCEmFhO3pKRXzS6LfVtjlPYo/X/Ouy1JlpxCfeFHq42DgVuhpvlMghbIP0Uk3g7DPO v2ROQSf5WOMAU4LI+tJ0YM7wJ4/o3RsQmld8PNDsqNaC+8F3lg2tJWeSs6x51zLpwb9y2LQ/G KE+I5OsUkkHgKoP5UwWHbIJNICv2Gwj56jt7b/bz1FoOAENUWFuVuYSOLrM2I6xCbWulha/06 uMm59sxj8J1A/23Y Cc: alsa-devel@alsa-project.org, Vinod Koul , linux-kernel@vger.kernel.org, Liam Girdwood , "Subhransu S. Prusty" , Sudip Mukherjee , linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH] ASoC: hdac_hdmi: remove unused hdac_hdmi_query_pin_connlist 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org A recent rework removed the only user of the hdac_hdmi_query_pin_connlist function, so we now get a warning when building the hdac_hdmi driver: hdac_hdmi.c:313:12: warning: 'hdac_hdmi_query_pin_connlist' defined but not used [-Wunused-function] This removes the function, which makes the file build cleanly again. Signed-off-by: Arnd Bergmann Fixes: 15b914476bf2 ("ASoC: hdac_hdmi: Use list to add pins and converters") --- I saw this warning the first time on today's linux-next with ARM randconfig builds _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index f5df7232405b..5a1ec0f7a1a6 100644 --- a/sound/soc/codecs/hdac_hdmi.c +++ b/sound/soc/codecs/hdac_hdmi.c @@ -310,28 +310,6 @@ hdac_hdmi_query_cvt_params(struct hdac_device *hdac, struct hdac_hdmi_cvt *cvt) return err; } -static int hdac_hdmi_query_pin_connlist(struct hdac_ext_device *hdac, - struct hdac_hdmi_pin *pin) -{ - if (!(get_wcaps(&hdac->hdac, pin->nid) & AC_WCAP_CONN_LIST)) { - dev_warn(&hdac->hdac.dev, - "HDMI: pin %d wcaps %#x does not support connection list\n", - pin->nid, get_wcaps(&hdac->hdac, pin->nid)); - return -EINVAL; - } - - pin->num_mux_nids = snd_hdac_get_connections(&hdac->hdac, pin->nid, - pin->mux_nids, HDA_MAX_CONNECTIONS); - if (pin->num_mux_nids == 0) - dev_warn(&hdac->hdac.dev, "No connections found for pin: %d\n", - pin->nid); - - dev_dbg(&hdac->hdac.dev, "num_mux_nids %d for pin: %d\n", - pin->num_mux_nids, pin->nid); - - return pin->num_mux_nids; -} - static void hdac_hdmi_fill_widget_info(struct snd_soc_dapm_widget *w, enum snd_soc_dapm_type id, const char *wname, const char *stream)