All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liam Girdwood <liam.r.girdwood@linux.intel.com>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>,
	"mengdong.lin" <mengdong.lin@linux.intel.com>
Cc: tiwai@suse.de, alsa-devel@alsa-project.org
Subject: Re: [PATCH][alsa-lib] topology: fix unused-const-variable warning
Date: Fri, 23 Dec 2016 08:49:24 +0000	[thread overview]
Message-ID: <1482482964.24233.51.camel@loki> (raw)
In-Reply-To: <09494b18-b653-12c5-1213-e6681c6b4d09@sakamocchi.jp>

This looks fine by me, Mengdong is this still unused or is it needed by
a future patch ?

On Sat, 2016-12-17 at 09:39 +0900, Takashi Sakamoto wrote:
> Ping to Liam. I wish this patch would be included to next release of
> this library.
> 
> On 2016年11月30日 00:44, Takashi Sakamoto wrote:
> > Last year, unused static const variable was added, then compiler generates
> > a below warning.
> > 
> > dapm.c:43:30: warning: ‘widget_control_map’ defined but not used [-Wunused-const-variable=]
> >  static const struct map_elem widget_control_map[] = {
> >                               ^~~~~~~~~~~~~~~~~~
> > 
> > This commit removes it.
> > 
> > Fixes: 01a0e1a1c219 ("topology: Add DAPM object parser")
> > Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
> > ---
> >  src/topology/dapm.c | 8 --------
> >  1 file changed, 8 deletions(-)
> > 
> > diff --git a/src/topology/dapm.c b/src/topology/dapm.c
> > index e830751..8c585a7 100644
> > --- a/src/topology/dapm.c
> > +++ b/src/topology/dapm.c
> > @@ -39,14 +39,6 @@ static const struct map_elem widget_map[] = {
> >  	{"dai_link", SND_SOC_TPLG_DAPM_DAI_LINK},
> >  };
> >  
> > -/* mapping of widget kcontrol text names to types */
> > -static const struct map_elem widget_control_map[] = {
> > -	{"volsw", SND_SOC_TPLG_DAPM_CTL_VOLSW},
> > -	{"enum_double", SND_SOC_TPLG_DAPM_CTL_ENUM_DOUBLE},
> > -	{"enum_virt", SND_SOC_TPLG_DAPM_CTL_ENUM_VIRT},
> > -	{"enum_value", SND_SOC_TPLG_DAPM_CTL_ENUM_VALUE},
> > -};
> > -
> >  static int lookup_widget(const char *w)
> >  {
> >  	unsigned int i;
> > 


_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2016-12-23  8:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-29 15:44 [PATCH][alsa-lib] topology: fix unused-const-variable warning Takashi Sakamoto
2016-12-17  0:39 ` Takashi Sakamoto
2016-12-23  8:49   ` Liam Girdwood [this message]
2016-12-23 14:48     ` Lin, Mengdong
2016-12-23 15:08       ` Takashi Sakamoto
2016-12-23 15:23         ` Liam Girdwood
2016-12-23 15:34           ` Takashi Sakamoto
2016-12-27  9:57             ` Lin, Mengdong
2017-01-02 14:22             ` Takashi Iwai

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=1482482964.24233.51.camel@loki \
    --to=liam.r.girdwood@linux.intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=mengdong.lin@linux.intel.com \
    --cc=o-takashi@sakamocchi.jp \
    --cc=tiwai@suse.de \
    /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 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.