From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752702Ab1HJJWo (ORCPT ); Wed, 10 Aug 2011 05:22:44 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52818 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752067Ab1HJJWn (ORCPT ); Wed, 10 Aug 2011 05:22:43 -0400 Date: Wed, 10 Aug 2011 11:22:41 +0200 Message-ID: From: Takashi Iwai To: stufever@gmail.com Cc: linux-kernel@vger.kernel.org, Wang Shaoyan Subject: Re: [PATCH] ALSA: hda - Add CONFIG_SND_HDA_POWER_SAVE to stac_vrefout_set() In-Reply-To: <1312963264-17192-1-git-send-email-wangshaoyan.pt@taobao.com> References: <1312963264-17192-1-git-send-email-wangshaoyan.pt@taobao.com> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Wed, 10 Aug 2011 16:01:04 +0800, stufever@gmail.com wrote: > > From: Wang Shaoyan > > In commit 45eebda7, it add new function stac_vrefout_set, but it > is only used in code between CONFIG_SND_HDA_POWER_SAVE macro, so > add the macro to avoid such warning: > > sound/pci/hda/patch_sigmatel.c:676:12: warning: 'stac_vrefout_set' defined but not used > > Signed-off-by: Wang Shaoyan Applied now. Thanks. Takashi > --- > sound/pci/hda/patch_sigmatel.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c > index aa376b5..5145b66 100644 > --- a/sound/pci/hda/patch_sigmatel.c > +++ b/sound/pci/hda/patch_sigmatel.c > @@ -673,6 +673,7 @@ static int stac92xx_smux_enum_put(struct snd_kcontrol *kcontrol, > return 0; > } > > +#ifdef CONFIG_SND_HDA_POWER_SAVE > static int stac_vrefout_set(struct hda_codec *codec, > hda_nid_t nid, unsigned int new_vref) > { > @@ -696,6 +697,7 @@ static int stac_vrefout_set(struct hda_codec *codec, > > return 1; > } > +#endif > > static unsigned int stac92xx_vref_set(struct hda_codec *codec, > hda_nid_t nid, unsigned int new_vref) > -- > 1.7.4.1 >