From c7215acf82534c9fa35e8dc427cfcf57c37e43d4 Mon Sep 17 00:00:00 2001
From: Ariff Abdullah <ariff@FreeBSD.org>
Date: Mon, 8 Jun 2009 23:24:01 +0000
Subject: [PATCH] Fix compile time warning on sparc64, thanks to strict kobj
 signatures checking.

Noticed by:	bz
---
 sys/dev/sound/sbus/cs4231.c | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/sys/dev/sound/sbus/cs4231.c b/sys/dev/sound/sbus/cs4231.c
index 7e7fc82f68d0..c3981df5448a 100644
--- a/sys/dev/sound/sbus/cs4231.c
+++ b/sys/dev/sound/sbus/cs4231.c
@@ -173,15 +173,15 @@ static void	cs4231_mixer_set_value(struct cs4231_softc *,
     const struct mix_table *, u_int8_t);
 static int	cs4231_mixer_set(struct snd_mixer *, u_int32_t, u_int32_t,
     u_int32_t);
-static int	cs4231_mixer_setrecsrc(struct snd_mixer *, u_int32_t);
+static u_int32_t	cs4231_mixer_setrecsrc(struct snd_mixer *, u_int32_t);
 static void	*cs4231_chan_init(kobj_t, void *, struct snd_dbuf *,
     struct pcm_channel *, int);
 static int	cs4231_chan_setformat(kobj_t, void *, u_int32_t);
-static int	cs4231_chan_setspeed(kobj_t, void *, u_int32_t);
+static u_int32_t	cs4231_chan_setspeed(kobj_t, void *, u_int32_t);
 static void	cs4231_chan_fs(struct cs4231_softc *, int, u_int8_t);
-static int	cs4231_chan_setblocksize(kobj_t, void *, u_int32_t);
+static u_int32_t	cs4231_chan_setblocksize(kobj_t, void *, u_int32_t);
 static int	cs4231_chan_trigger(kobj_t, void *, int);
-static int	cs4231_chan_getptr(kobj_t, void *);
+static u_int32_t	cs4231_chan_getptr(kobj_t, void *);
 static struct pcmchan_caps *
     cs4231_chan_getcaps(kobj_t, void *);
 static void	cs4231_trigger(struct cs4231_channel *);
@@ -982,7 +982,7 @@ cs4231_mixer_set(struct snd_mixer *m, u_int32_t dev, u_int32_t left,
 	return (left | (right << 8));
 }
 
-static int
+static u_int32_t
 cs4231_mixer_setrecsrc(struct snd_mixer *m, u_int32_t src)
 {
 	struct cs4231_softc *sc;
@@ -1103,7 +1103,7 @@ cs4231_chan_setformat(kobj_t obj, void *data, u_int32_t format)
 	return (0);
 }
 
-static int
+static u_int32_t
 cs4231_chan_setspeed(kobj_t obj, void *data, u_int32_t speed)
 {
 	typedef struct {
@@ -1253,7 +1253,7 @@ cs4231_chan_fs(struct cs4231_softc *sc, int dir, u_int8_t fs)
 	}
 }
 
-static int
+static u_int32_t
 cs4231_chan_setblocksize(kobj_t obj, void *data, u_int32_t blocksize)
 {
 	struct cs4231_softc *sc;
@@ -1299,13 +1299,12 @@ cs4231_chan_trigger(kobj_t obj, void *data, int go)
 	return (0);
 }
 
-static int
+static u_int32_t
 cs4231_chan_getptr(kobj_t obj, void *data)
 {
 	struct cs4231_softc *sc;
 	struct cs4231_channel *ch;
-	u_int32_t cur;
-	int ptr, sz;
+	u_int32_t cur, ptr, sz;
 
 	ch = data;
 	sc = ch->parent;