[2.6 patch] sound/core/pcm.c: make snd_pcm_format_name() static

From: Adrian Bunk
Date: Mon Apr 10 2006 - 18:18:12 EST


This patch makes the needlessly global snd_pcm_format_name() static.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

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];
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/