From: Takashi Iwai <tiwai@suse.de>
To: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] alsa: ac97_patch make functions static
Date: Mon, 01 Sep 2008 08:39:48 +0200 [thread overview]
Message-ID: <s5h3akk74jv.wl%tiwai@suse.de> (raw)
In-Reply-To: <1220041920.23563.0.camel@brick>
At Fri, 29 Aug 2008 13:32:00 -0700,
Harvey Harrison wrote:
>
> Only used in ac97_codec by including ac97_patch.c directly, effectively static
>
> Found by sparse:
> sound/pci/ac97/ac97_patch.c:3551:5: warning: symbol 'patch_vt1617a' was not declared. Should it be static?
> sound/pci/ac97/ac97_patch.c:3767:5: warning: symbol 'patch_vt1618' was not declared. Should it be static?
>
> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Thanks, applied now.
Takashi
> ---
> sound/pci/ac97/ac97_patch.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/pci/ac97/ac97_patch.c b/sound/pci/ac97/ac97_patch.c
> index d0cab1d..6ce3cbe 100644
> --- a/sound/pci/ac97/ac97_patch.c
> +++ b/sound/pci/ac97/ac97_patch.c
> @@ -3548,7 +3548,7 @@ static const struct snd_kcontrol_new snd_ac97_controls_vt1617a[] = {
> },
> };
>
> -int patch_vt1617a(struct snd_ac97 * ac97)
> +static int patch_vt1617a(struct snd_ac97 * ac97)
> {
> int err = 0;
> int val;
> @@ -3764,7 +3764,7 @@ static const struct snd_kcontrol_new snd_ac97_controls_vt1618[] = {
> }
> };
>
> -int patch_vt1618(struct snd_ac97 *ac97)
> +static int patch_vt1618(struct snd_ac97 *ac97)
> {
> return patch_build_controls(ac97, snd_ac97_controls_vt1618,
> ARRAY_SIZE(snd_ac97_controls_vt1618));
> --
> 1.6.0.366.gf9ffa8
>
>
>
prev parent reply other threads:[~2008-09-01 6:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-29 20:32 Harvey Harrison
2008-09-01 6:39 ` 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=s5h3akk74jv.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=akpm@linux-foundation.org \
--cc=harvey.harrison@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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®