All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] ASoC: hdmi-codec: fix non static symbol warnings
@ 2017-02-06 14:38 Wei Yongjun
  2017-02-27  1:08 ` Takashi Sakamoto
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Yongjun @ 2017-02-06 14:38 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Philipp Zabel, Jon Medhurst (Tixy),
	Kuninori Morimoto, Arnaud Pouliquen, Jyri Sarha, PC Liao
  Cc: Wei Yongjun, alsa-devel, linux-kernel

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(-)

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;

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH -next] ASoC: hdmi-codec: fix non static symbol warnings
  2017-02-06 14:38 [PATCH -next] ASoC: hdmi-codec: fix non static symbol warnings Wei Yongjun
@ 2017-02-27  1:08 ` Takashi Sakamoto
  2017-02-28  9:42     ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Takashi Sakamoto @ 2017-02-27  1:08 UTC (permalink / raw)
  To: Wei Yongjun, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Philipp Zabel, Jon Medhurst (Tixy),
	Kuninori Morimoto, Arnaud Pouliquen, Jyri Sarha, PC Liao
  Cc: alsa-devel, Wei Yongjun, linux-kernel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -next] ASoC: hdmi-codec: fix non static symbol warnings
  2017-02-27  1:08 ` Takashi Sakamoto
@ 2017-02-28  9:42     ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2017-02-28  9:42 UTC (permalink / raw)
  To: Takashi Sakamoto
  Cc: Wei Yongjun, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
	Philipp Zabel, Jon Medhurst (Tixy),
	Kuninori Morimoto, Arnaud Pouliquen, Jyri Sarha, PC Liao,
	alsa-devel, Wei Yongjun, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 784 bytes --]

On Mon, Feb 27, 2017 at 10:08:15AM +0900, Takashi Sakamoto wrote:
> On Feb 6 2017 23:38, Wei Yongjun wrote:
> > From: Wei Yongjun <weiyongjun1@huawei.com>

I don't seem to have this patch?

> 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).

If it's in what went to Linus already I'd prefer a rebase as I'd have to
dig out an old tree, I will make some effort to do merges if I can find
a baseline to apply patches against though sometimes if things are
complicated enough I'll ask people to do that for me.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH -next] ASoC: hdmi-codec: fix non static symbol warnings
@ 2017-02-28  9:42     ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2017-02-28  9:42 UTC (permalink / raw)
  To: Takashi Sakamoto
  Cc: Jon Medhurst (Tixy),
	alsa-devel, Wei Yongjun, Kuninori Morimoto, linux-kernel,
	Arnaud Pouliquen, Takashi Iwai, Jyri Sarha, Liam Girdwood,
	Wei Yongjun, Philipp Zabel, PC Liao


[-- Attachment #1.1: Type: text/plain, Size: 784 bytes --]

On Mon, Feb 27, 2017 at 10:08:15AM +0900, Takashi Sakamoto wrote:
> On Feb 6 2017 23:38, Wei Yongjun wrote:
> > From: Wei Yongjun <weiyongjun1@huawei.com>

I don't seem to have this patch?

> 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).

If it's in what went to Linus already I'd prefer a rebase as I'd have to
dig out an old tree, I will make some effort to do merges if I can find
a baseline to apply patches against though sometimes if things are
complicated enough I'll ask people to do that for me.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-28 15:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-06 14:38 [PATCH -next] ASoC: hdmi-codec: fix non static symbol warnings Wei Yongjun
2017-02-27  1:08 ` Takashi Sakamoto
2017-02-28  9:42   ` Mark Brown
2017-02-28  9:42     ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.