From patchwork Mon Mar 13 02:26:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Sakamoto X-Patchwork-Id: 9619691 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 3B29F604CC for ; Mon, 13 Mar 2017 02:26:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29AC028438 for ; Mon, 13 Mar 2017 02:26:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CB6B28440; Mon, 13 Mar 2017 02:26:56 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=no 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 01DA428438 for ; Mon, 13 Mar 2017 02:26:54 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4485A26680F; Mon, 13 Mar 2017 03:26:50 +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 C18222666E1; Mon, 13 Mar 2017 03:26:48 +0100 (CET) Received: from mail-pg0-f47.google.com (mail-pg0-f47.google.com [74.125.83.47]) by alsa0.perex.cz (Postfix) with ESMTP id 50E132666E1 for ; Mon, 13 Mar 2017 03:26:39 +0100 (CET) Received: by mail-pg0-f47.google.com with SMTP id 77so57981360pgc.1 for ; Sun, 12 Mar 2017 19:26:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=miraclelinux-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=bXA8qW5Z6I+4CV/peM5jZ7Wbwd4iDv4CIoWju4tJ29Y=; b=krRDKOR0ZQjab/a/jR913ycAArlYlXw3WIay2+PvE7QYlpswfwUuwppLYJetKD5Pc3 kCRxn97OjFoTgBQKGprqiff1Xprz9pnCi2elS5pPSS7ie80RS5MdemQ7d2OdLoet8jYh Qd2N+Et3oU6b31UNGp5i5xW3+IoE1zAAW6UIVCnpIKVm6D+pykhW86kCieYi8WqjOIA1 0Ld6pv61PMKRx4goYbbtQsnQ6xJxYYcZTk89S1feVkvWAg2Z0QmY7Uf/fhnCr3OJT0ud u7qZIvivGL7MSVRMwzcd068gISZcKLnPGtcx8f2ZvL64uRyXsi+itlac6++BT6zutLKL RELA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bXA8qW5Z6I+4CV/peM5jZ7Wbwd4iDv4CIoWju4tJ29Y=; b=lDTUio2kACeSYtv6UOGBIi8qj5+vfgrFJfLuEdLdAChgZX+CfQMnScYXkKwnRNF78v dB7ISTkrSamNlYfZqgIZAJqrtN7TdyzErurMY8WoMQ4/JS/L05j1bX70XSVhIktnTeJF R30S4bJPq3Ndm84iX4c1i+Z48bNbTFFJmBZJqJl2v9Yl3CPHJCTrhqYx/881rFehGCNQ fJXun+bWJ6udX5YzEiU12MjqM+W3U5rFwQgAgXGu0Tat3YML9pHkfIZjGSOHantgbbrt hxSWERf3t5756q/pjpaFYhckP71PiMPro0BECWVNss2FVAaAUTrcVC09Eq/PPeWMyAQp apPQ== X-Gm-Message-State: AMke39ka1sPin7ruM2rdf5RVfiZSMk8nH0sztIUcMhFuyJKGmsdZyum1Z14o+LCSnOPIUbM+ X-Received: by 10.84.217.206 with SMTP id d14mr44765575plj.141.1489371997961; Sun, 12 Mar 2017 19:26:37 -0700 (PDT) Received: from Mocchi64.miraclelinux.com (rt.miraclelinux.com. [221.114.197.178]) by smtp.gmail.com with ESMTPSA id b195sm30222701pfb.106.2017.03.12.19.26.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Mar 2017 19:26:37 -0700 (PDT) From: Takashi Sakamoto To: broonie@kernel.org, kuninori.morimoto.gx@renesas.com, arnaud.pouliquen@st.com, weiyongjun1@huawei.com Date: Mon, 13 Mar 2017 11:26:18 +0900 Message-Id: <20170313022618.21103-1-takashi.sakamoto@miraclelinux.com> X-Mailer: git-send-email 2.9.3 Cc: ichiro.suzuki@miraclelinux.com, alsa-devel@alsa-project.org, Takashi Sakamoto , yukie.kato@miraclelinux.com Subject: [alsa-devel] [PATCH v2] ASoC: hdmi-codec: fix non static symbol warnings 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 Fixes the following sparse warnings: $ make C=2 sound/soc/codecs/hdmi-codec.o sound/soc/codecs/hdmi-codec.c:34:1: warning: symbol 'hdmi_device_list' was not declared. Should it be static? sound/soc/codecs/hdmi-codec.c:80:33: warning: symbol 'hdmi_codec_stereo_chmaps' was not declared. Should it be static? sound/soc/codecs/hdmi-codec.c:87:33: warning: symbol 'hdmi_codec_8ch_chmaps' was not declared. Should it be static? sound/soc/codecs/hdmi-codec.c:354:6: warning: symbol 'hdmi_codec_eld_chmap' was not declared. Should it be static? Cc: Takashi Sakamoto Signed-off-by: Wei Yongjun Signed-off-by: Takashi Sakamoto --- sound/soc/codecs/hdmi-codec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c index 8c5ae1f..6ba6aa5 100644 --- a/sound/soc/codecs/hdmi-codec.c +++ b/sound/soc/codecs/hdmi-codec.c @@ -31,7 +31,7 @@ struct hdmi_device { int cnt; }; #define pos_to_hdmi_device(pos) container_of((pos), struct hdmi_device, list) -LIST_HEAD(hdmi_device_list); +static LIST_HEAD(hdmi_device_list); static DEFINE_MUTEX(hdmi_mutex); #define DAI_NAME_SIZE 16 @@ -78,14 +78,14 @@ struct hdmi_codec_cea_spk_alloc { }; /* Channel maps stereo HDMI */ -const struct snd_pcm_chmap_elem hdmi_codec_stereo_chmaps[] = { +static const struct snd_pcm_chmap_elem hdmi_codec_stereo_chmaps[] = { { .channels = 2, .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } }, { } }; /* Channel maps for multi-channel playbacks, up to 8 n_ch */ -const struct snd_pcm_chmap_elem hdmi_codec_8ch_chmaps[] = { +static const struct snd_pcm_chmap_elem hdmi_codec_8ch_chmaps[] = { { .channels = 2, /* CA_ID 0x00 */ .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } }, { .channels = 4, /* CA_ID 0x01 */ @@ -352,7 +352,7 @@ static unsigned long hdmi_codec_spk_mask_from_alloc(int spk_alloc) return spk_mask; } -void hdmi_codec_eld_chmap(struct hdmi_codec_priv *hcp) +static void hdmi_codec_eld_chmap(struct hdmi_codec_priv *hcp) { u8 spk_alloc; unsigned long spk_mask;