From: Adrian Bunk <bunk@stusta.de>
To: perex@suse.cz
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] sound/core/pcm.c: make snd_pcm_format_name() static
Date: Tue, 11 Apr 2006 00:18:01 +0200 [thread overview]
Message-ID: <20060410221801.GK2408@stusta.de> (raw)
This patch makes the needlessly global snd_pcm_format_name() static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
include/sound/pcm.h | 1 -
sound/core/pcm.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
--- linux-2.6.17-rc1-mm2-full/include/sound/pcm.h.old 2006-04-10 23:34:28.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/include/sound/pcm.h 2006-04-10 23:34:38.000000000 +0200
@@ -898,7 +898,6 @@
const unsigned char *snd_pcm_format_silence_64(snd_pcm_format_t format);
int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int frames);
snd_pcm_format_t snd_pcm_build_linear_format(int width, int unsignd, int big_endian);
-const char *snd_pcm_format_name(snd_pcm_format_t format);
void snd_pcm_set_ops(struct snd_pcm * pcm, int direction, struct snd_pcm_ops *ops);
void snd_pcm_set_sync(struct snd_pcm_substream *substream);
--- linux-2.6.17-rc1-mm2-full/sound/core/pcm.c.old 2006-04-10 23:32:17.000000000 +0200
+++ linux-2.6.17-rc1-mm2-full/sound/core/pcm.c 2006-04-10 23:32:42.000000000 +0200
@@ -196,7 +196,7 @@
FORMAT(U18_3BE),
};
-const char *snd_pcm_format_name(snd_pcm_format_t format)
+static const char *snd_pcm_format_name(snd_pcm_format_t format)
{
return snd_pcm_format_names[format];
}
next reply other threads:[~2006-04-10 22:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-10 22:18 Adrian Bunk [this message]
2006-04-11 10:38 ` [2.6 patch] sound/core/pcm.c: make snd_pcm_format_name() static 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=20060410221801.GK2408@stusta.de \
--to=bunk@stusta.de \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@suse.cz \
/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