git: 1a715cbba276 - stable/15 - virtio/p9fs: Define the channel list mutex as static

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Wed, 08 Jul 2026 18:09:59 UTC
The branch stable/15 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=1a715cbba276d422cf015d921c39df1933b3ee05

commit 1a715cbba276d422cf015d921c39df1933b3ee05
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-06-24 16:54:10 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-07-08 18:09:35 +0000

    virtio/p9fs: Define the channel list mutex as static
    
    No functional change intended.
    
    MFC after:      1 week
    
    (cherry picked from commit 2586f9f459adc6610957ba0d74a167b85fe24ac7)
---
 sys/dev/virtio/p9fs/virtio_p9fs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/virtio/p9fs/virtio_p9fs.c b/sys/dev/virtio/p9fs/virtio_p9fs.c
index f612a36b66aa..3f06a90ca981 100644
--- a/sys/dev/virtio/p9fs/virtio_p9fs.c
+++ b/sys/dev/virtio/p9fs/virtio_p9fs.c
@@ -76,7 +76,7 @@ struct vt9p_softc {
 /* Global channel list, Each channel will correspond to a mount point */
 static STAILQ_HEAD( ,vt9p_softc) global_chan_list =
     STAILQ_HEAD_INITIALIZER(global_chan_list);
-struct mtx global_chan_list_mtx;
+static struct mtx global_chan_list_mtx;
 MTX_SYSINIT(global_chan_list_mtx, &global_chan_list_mtx, "9pglobal", MTX_DEF);
 
 static struct virtio_feature_desc virtio_9p_feature_desc[] = {