Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Localify m_ext_free.
details: https://anonhg.NetBSD.org/src/rev/60254a51e484
branches: trunk
changeset: 831698:60254a51e484
user: maxv <maxv%NetBSD.org@localhost>
date: Tue Apr 10 15:27:35 2018 +0000
description:
Localify m_ext_free.
diffstat:
sys/kern/uipc_mbuf.c | 9 ++++-----
sys/sys/mbuf.h | 3 +--
2 files changed, 5 insertions(+), 7 deletions(-)
diffs (50 lines):
diff -r e150527cf24e -r 60254a51e484 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c Tue Apr 10 12:44:41 2018 +0000
+++ b/sys/kern/uipc_mbuf.c Tue Apr 10 15:27:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_mbuf.c,v 1.184 2018/03/21 17:03:09 maxv Exp $ */
+/* $NetBSD: uipc_mbuf.c,v 1.185 2018/04/10 15:27:35 maxv Exp $ */
/*
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.184 2018/03/21 17:03:09 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.185 2018/04/10 15:27:35 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_mbuftrace.h"
@@ -1717,12 +1717,11 @@
}
/*
- * m_ext_free: release a reference to the mbuf external storage.
+ * Release a reference to the mbuf external storage.
*
* => free the mbuf m itself as well.
*/
-
-void
+static void
m_ext_free(struct mbuf *m)
{
const bool embedded = MEXT_ISEMBEDDED(m);
diff -r e150527cf24e -r 60254a51e484 sys/sys/mbuf.h
--- a/sys/sys/mbuf.h Tue Apr 10 12:44:41 2018 +0000
+++ b/sys/sys/mbuf.h Tue Apr 10 15:27:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mbuf.h,v 1.180 2018/03/21 17:03:09 maxv Exp $ */
+/* $NetBSD: mbuf.h,v 1.181 2018/04/10 15:27:35 maxv Exp $ */
/*
* Copyright (c) 1996, 1997, 1999, 2001, 2007 The NetBSD Foundation, Inc.
@@ -864,7 +864,6 @@
void m_freem(struct mbuf *);
void m_reclaim(void *, int);
void mbinit(void);
-void m_ext_free(struct mbuf *);
void m_move_pkthdr(struct mbuf *, struct mbuf *);
bool m_ensure_contig(struct mbuf **, int);
Home |
Main Index |
Thread Index |
Old Index