Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Avoid warnings for a local CTASSERT
details: https://anonhg.NetBSD.org/src/rev/2a1b08eb239a
branches: trunk
changeset: 789985:2a1b08eb239a
user: martin <martin%NetBSD.org@localhost>
date: Sat Sep 14 13:46:52 2013 +0000
description:
Avoid warnings for a local CTASSERT
diffstat:
sys/kern/kern_descrip.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 06fdbbe80fd4 -r 2a1b08eb239a sys/kern/kern_descrip.c
--- a/sys/kern/kern_descrip.c Sat Sep 14 13:46:30 2013 +0000
+++ b/sys/kern/kern_descrip.c Sat Sep 14 13:46:52 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_descrip.c,v 1.220 2013/09/05 12:23:07 pooka Exp $ */
+/* $NetBSD: kern_descrip.c,v 1.221 2013/09/14 13:46:52 martin Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.220 2013/09/05 12:23:07 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.221 2013/09/14 13:46:52 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1323,7 +1323,9 @@
fdp->fd_himap = fdp->fd_dhimap;
fdp->fd_lomap = fdp->fd_dlomap;
+ __CT_LOCAL_PROLOGUE
CTASSERT(sizeof(fdp->fd_dfdfile[0]) >= sizeof(fdfile_t));
+ __CT_LOCAL_EPILOGUE
for (i = 0, ffp = fdp->fd_dt->dt_ff; i < NDFDFILE; i++, ffp++) {
*ffp = (fdfile_t *)fdp->fd_dfdfile[i];
(void)fdfile_ctor(NULL, fdp->fd_dfdfile[i], PR_WAITOK);
Home |
Main Index |
Thread Index |
Old Index