Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Move a CTASSERT to global scope (easiest way to avo...
details: https://anonhg.NetBSD.org/src/rev/2bd67ae8ddea
branches: trunk
changeset: 789993:2bd67ae8ddea
user: martin <martin%NetBSD.org@localhost>
date: Sat Sep 14 20:24:22 2013 +0000
description:
Move a CTASSERT to global scope (easiest way to avoid gcc 4.8.1 local unused
typedef warnings)
diffstat:
sys/kern/kern_lock.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 86ed0471c0bc -r 2bd67ae8ddea sys/kern/kern_lock.c
--- a/sys/kern/kern_lock.c Sat Sep 14 20:20:09 2013 +0000
+++ b/sys/kern/kern_lock.c Sat Sep 14 20:24:22 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lock.c,v 1.154 2013/04/27 08:12:34 mlelstv Exp $ */
+/* $NetBSD: kern_lock.c,v 1.155 2013/09/14 20:24:22 martin Exp $ */
/*-
* Copyright (c) 2002, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.154 2013/04/27 08:12:34 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.155 2013/09/14 20:24:22 martin Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -127,11 +127,11 @@
kernel_lock_init(void)
{
- CTASSERT(CACHE_LINE_SIZE >= sizeof(__cpu_simple_lock_t));
__cpu_simple_lock_init(kernel_lock);
kernel_lock_dodebug = LOCKDEBUG_ALLOC(kernel_lock, &_kernel_lock_ops,
RETURN_ADDRESS);
}
+CTASSERT(CACHE_LINE_SIZE >= sizeof(__cpu_simple_lock_t));
/*
* Print debugging information about the kernel lock.
Home |
Main Index |
Thread Index |
Old Index