From 6ec844459387badccab6421a0196b138a3d872e9 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 8 May 2017 15:47:50 +0000 Subject: add a compile time assertion MSIZE == sizeof(struct mbuf) ok kettenis mpi tom --- sys/kern/uipc_mbuf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/kern') diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 2dd51c51c81..9795f36918e 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.245 2017/02/07 07:00:21 dlg Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.246 2017/05/08 15:47:49 tedu Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -161,6 +161,8 @@ mbinit(void) int i; unsigned int lowbits; + CTASSERT(MSIZE == sizeof(struct mbuf)); + m_pool_allocator.pa_pagesz = pool_allocator_multi.pa_pagesz; nmbclust_update(); -- cgit v1.2.3