Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Apr 2026 10:31:51 +0000
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 8b87f38f1531 - stable/15 - sound: Mark some snd_fmt* functions as static
Message-ID:  <69de1797.277d7.1a47061b@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=8b87f38f1531ad65c587562d27a92d6a3ee385af

commit 8b87f38f1531ad65c587562d27a92d6a3ee385af
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-04-07 15:44:15 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-04-14 10:31:42 +0000

    sound: Mark some snd_fmt* functions as static
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D56238
    
    (cherry picked from commit f369d4148b93410fe7f8ea989f66790403d23ce8)
---
 sys/dev/sound/pcm/feeder.c | 6 +++---
 sys/dev/sound/pcm/feeder.h | 3 ---
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/sys/dev/sound/pcm/feeder.c b/sys/dev/sound/pcm/feeder.c
index 2a7f54e5d30f..af6e367895a0 100644
--- a/sys/dev/sound/pcm/feeder.c
+++ b/sys/dev/sound/pcm/feeder.c
@@ -181,7 +181,7 @@ feeder_find(struct pcm_channel *c, u_int32_t type)
 #define score_val(s1)		((s1) & 0x3f00)
 #define score_cse(s1)		((s1) & 0x7f)
 
-u_int32_t
+static u_int32_t
 snd_fmtscore(u_int32_t fmt)
 {
 	u_int32_t ret;
@@ -257,13 +257,13 @@ snd_fmtbestfunc(u_int32_t fmt, u_int32_t *fmts, int cheq)
 	return best;
 }
 
-u_int32_t
+static u_int32_t
 snd_fmtbestbit(u_int32_t fmt, u_int32_t *fmts)
 {
 	return snd_fmtbestfunc(fmt, fmts, 0);
 }
 
-u_int32_t
+static u_int32_t
 snd_fmtbestchannel(u_int32_t fmt, u_int32_t *fmts)
 {
 	return snd_fmtbestfunc(fmt, fmts, 1);
diff --git a/sys/dev/sound/pcm/feeder.h b/sys/dev/sound/pcm/feeder.h
index 834df463295d..e1e91d468455 100644
--- a/sys/dev/sound/pcm/feeder.h
+++ b/sys/dev/sound/pcm/feeder.h
@@ -63,9 +63,6 @@ struct pcm_feeder {
 void feeder_register(void *p);
 struct feeder_class *feeder_getclass(u_int32_t type);
 
-u_int32_t snd_fmtscore(u_int32_t fmt);
-u_int32_t snd_fmtbestbit(u_int32_t fmt, u_int32_t *fmts);
-u_int32_t snd_fmtbestchannel(u_int32_t fmt, u_int32_t *fmts);
 u_int32_t snd_fmtbest(u_int32_t fmt, u_int32_t *fmts);
 
 int feeder_add(struct pcm_channel *c, struct feeder_class *fc,


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69de1797.277d7.1a47061b>