From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759462AbcAKMKg (ORCPT ); Mon, 11 Jan 2016 07:10:36 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:49702 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758062AbcAKMKe (ORCPT ); Mon, 11 Jan 2016 07:10:34 -0500 From: Arnd Bergmann To: broonie@kernel.org Cc: "Subhransu S. Prusty" , Vinod Koul , Sudip Mukherjee , alsa-devel@alsa-project.org, Liam Girdwood , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ASoC: hdac_hdmi: remove unused hdac_hdmi_query_pin_connlist 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 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 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)