mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Wei Yongjun <weiyj.lk@gmail.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
	Takashi Iwai <tiwai@suse.com>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	"Jon Medhurst (Tixy)" <tixy@linaro.org>,
	Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	Arnaud Pouliquen <arnaud.pouliquen@st.com>,
	Jyri Sarha <jsarha@ti.com>, PC Liao <pc.liao@mediatek.com>
Cc: alsa-devel@alsa-project.org, Wei Yongjun <weiyongjun1@huawei.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] ASoC: hdmi-codec: fix non static symbol warnings
Date: Mon, 27 Feb 2017 10:08:15 +0900	[thread overview]
Message-ID: <4a2e36fb-8529-c86a-1d9c-2d85fd39d530@sakamocchi.jp> (raw)
In-Reply-To: <20170206143830.6871-1-weiyj.lk@gmail.com>

Hi,

On Feb 6 2017 23:38, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> Fixes the following sparse warnings:
>
> 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?
>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---
>  sound/soc/codecs/hdmi-codec.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>

Unfortunately, this patch causes conflict to Mark's PR[0], due to a 
commit 8480ac567959 ("ASoC: hdmi-codec: remove HDMI device 
unregister")[1]. I think it better for you to post again with rebasing 
this on the PR, however it depends on Mark's maintenance policy (he 
could resolve the conflict by his hand and apply).

[0] 
http://mailman.alsa-project.org/pipermail/alsa-devel/2017-February/118079.html
[1] 
https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/?id=8480ac567959

> diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c
> index dc6715a..4982c91 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);
>
>  #define DAI_NAME_SIZE 16
>
> @@ -77,14 +77,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 */
> @@ -351,7 +351,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;


Thanks

Takashi Sakamoto

  reply	other threads:[~2017-02-27  1:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-06 14:38 Wei Yongjun
2017-02-27  1:08 ` Takashi Sakamoto [this message]
2017-02-28  9:42   ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4a2e36fb-8529-c86a-1d9c-2d85fd39d530@sakamocchi.jp \
    --to=o-takashi@sakamocchi.jp \
    --cc=alsa-devel@alsa-project.org \
    --cc=arnaud.pouliquen@st.com \
    --cc=broonie@kernel.org \
    --cc=jsarha@ti.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=pc.liao@mediatek.com \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    --cc=tixy@linaro.org \
    --cc=weiyj.lk@gmail.com \
    --cc=weiyongjun1@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®