Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys add missing const
details: https://anonhg.NetBSD.org/src/rev/f46b06dd2fa1
branches: trunk
changeset: 356307:f46b06dd2fa1
user: christos <christos%NetBSD.org@localhost>
date: Sat Sep 16 23:25:34 2017 +0000
description:
add missing const
diffstat:
sys/kern/kern_mutex.c | 10 +++++-----
sys/sys/mutex.h | 8 ++++----
2 files changed, 9 insertions(+), 9 deletions(-)
diffs (67 lines):
diff -r 5a1397c2be66 -r f46b06dd2fa1 sys/kern/kern_mutex.c
--- a/sys/kern/kern_mutex.c Sat Sep 16 21:47:02 2017 +0000
+++ b/sys/kern/kern_mutex.c Sat Sep 16 23:25:34 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_mutex.c,v 1.65 2017/05/01 21:35:25 pgoyette Exp $ */
+/* $NetBSD: kern_mutex.c,v 1.66 2017/09/16 23:25:34 christos Exp $ */
/*-
* Copyright (c) 2002, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
#define __MUTEX_PRIVATE
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_mutex.c,v 1.65 2017/05/01 21:35:25 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_mutex.c,v 1.66 2017/09/16 23:25:34 christos Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -805,7 +805,7 @@
* holds the mutex.
*/
int
-mutex_owned(kmutex_t *mtx)
+mutex_owned(const kmutex_t *mtx)
{
if (mtx == NULL)
@@ -826,7 +826,7 @@
* priority inheritance.
*/
lwp_t *
-mutex_owner(kmutex_t *mtx)
+mutex_owner(const kmutex_t *mtx)
{
MUTEX_ASSERT(mtx, MUTEX_ADAPTIVE_P(mtx));
@@ -841,7 +841,7 @@
* that won't work correctly for spin mutexes.
*/
int
-mutex_ownable(kmutex_t *mtx)
+mutex_ownable(const kmutex_t *mtx)
{
#ifdef LOCKDEBUG
diff -r 5a1397c2be66 -r f46b06dd2fa1 sys/sys/mutex.h
--- a/sys/sys/mutex.h Sat Sep 16 21:47:02 2017 +0000
+++ b/sys/sys/mutex.h Sat Sep 16 23:25:34 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mutex.h,v 1.21 2017/05/01 21:35:26 pgoyette Exp $ */
+/* $NetBSD: mutex.h,v 1.22 2017/09/16 23:25:35 christos Exp $ */
/*-
* Copyright (c) 2002, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -203,9 +203,9 @@
int mutex_tryenter(kmutex_t *);
-int mutex_owned(kmutex_t *);
-int mutex_ownable(kmutex_t *);
-lwp_t *mutex_owner(kmutex_t *);
+int mutex_owned(const kmutex_t *);
+int mutex_ownable(const kmutex_t *);
+lwp_t *mutex_owner(const kmutex_t *);
void mutex_obj_init(void);
kmutex_t *mutex_obj_alloc(kmutex_type_t, int);
Home |
Main Index |
Thread Index |
Old Index