mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Mike Waychison <mikew@google.com>
Cc: Jaroslav Kysela <perex@perex.cz>,
	alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
	Raymond Yau <superquad.vortex2@gmail.com>,
	David Henningsson <david.henningsson@canonical.com>,
	Luke Yelavich <luke.yelavich@canonical.com>
Subject: Re: [PATCH] ALSA: hda - Fix unused warnings when !SND_HDA_NEEDS_RESUME
Date: Wed, 20 Apr 2011 21:25:20 +0200	[thread overview]
Message-ID: <s5hr58wiv33.wl%tiwai@suse.de> (raw)
In-Reply-To: <1303326276-20645-1-git-send-email-mikew@google.com>

At Wed, 20 Apr 2011 12:04:36 -0700,
Mike Waychison wrote:
> 
> When SND_HDA_NEEDS_RESUME is not defined, the compiler identifies that
> the following symbols are static but not used:
> 
>  restore_shutup_pins
>  hda_cleanup_all_streams
> 
> Fix warnings by adding SND_HDA_NEEDS_RESUME guards.
> 
> Signed-off-by: Mike Waychison <mikew@google.com>

Applied now.  Thanks!


Takashi

> ---
> v2:
> - Applies to v2.6.39-rc4.
> - Dropped moving ad198x_power_eapd and ad198x_power_eapd_write at
>   Takashi Iwai <tiwai@suse.de>'s request.
> ---
>  sound/pci/hda/hda_codec.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
> index 430f41d..759ade1 100644
> --- a/sound/pci/hda/hda_codec.c
> +++ b/sound/pci/hda/hda_codec.c
> @@ -937,6 +937,7 @@ void snd_hda_shutup_pins(struct hda_codec *codec)
>  }
>  EXPORT_SYMBOL_HDA(snd_hda_shutup_pins);
>  
> +#ifdef SND_HDA_NEEDS_RESUME
>  /* Restore the pin controls cleared previously via snd_hda_shutup_pins() */
>  static void restore_shutup_pins(struct hda_codec *codec)
>  {
> @@ -953,6 +954,7 @@ static void restore_shutup_pins(struct hda_codec *codec)
>  	}
>  	codec->pins_shutup = 0;
>  }
> +#endif
>  
>  static void init_hda_cache(struct hda_cache_rec *cache,
>  			   unsigned int record_size);
> @@ -1329,6 +1331,7 @@ static void purify_inactive_streams(struct hda_codec *codec)
>  	}
>  }
>  
> +#ifdef SND_HDA_NEEDS_RESUME
>  /* clean up all streams; called from suspend */
>  static void hda_cleanup_all_streams(struct hda_codec *codec)
>  {
> @@ -1340,6 +1343,7 @@ static void hda_cleanup_all_streams(struct hda_codec *codec)
>  			really_cleanup_stream(codec, p);
>  	}
>  }
> +#endif
>  
>  /*
>   * amp access functions
> -- 
> 1.7.3.1
> 

      reply	other threads:[~2011-04-20 19:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-19 21:02 Mike Waychison
2011-04-20 12:16 ` Takashi Iwai
2011-04-20 19:04 ` Mike Waychison
2011-04-20 19:25   ` Takashi Iwai [this message]

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=s5hr58wiv33.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=david.henningsson@canonical.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luke.yelavich@canonical.com \
    --cc=mikew@google.com \
    --cc=perex@perex.cz \
    --cc=superquad.vortex2@gmail.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®