diff options
author | 2018-06-08 15:38:15 +0000 | |
---|---|---|
committer | 2018-06-08 15:38:15 +0000 | |
commit | e0c5510e7ddba29f5e83400a0ff636d5ba7c972c (patch) | |
tree | 9050ef44f49d5b4ff4332cbc5d5b3d0b31cd5b49 /sys/kern/kern_rwlock.c | |
parent | The udp control option processing was implemented three times. (diff) | |
download | wireguard-openbsd-e0c5510e7ddba29f5e83400a0ff636d5ba7c972c.tar.xz wireguard-openbsd-e0c5510e7ddba29f5e83400a0ff636d5ba7c972c.zip |
Constipate all the struct lock_type's so they go into .rodata
ok visa@
Diffstat (limited to 'sys/kern/kern_rwlock.c')
-rw-r--r-- | sys/kern/kern_rwlock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c index 97e22a5e966..eff5f167235 100644 --- a/sys/kern/kern_rwlock.c +++ b/sys/kern/kern_rwlock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_rwlock.c,v 1.36 2018/06/04 04:46:07 guenther Exp $ */ +/* $OpenBSD: kern_rwlock.c,v 1.37 2018/06/08 15:38:15 guenther Exp $ */ /* * Copyright (c) 2002, 2003 Artur Grabowski <art@openbsd.org> @@ -187,7 +187,7 @@ rw_enter_diag(struct rwlock *rwl, int flags) static void _rw_init_flags_witness(struct rwlock *rwl, const char *name, int lo_flags, - struct lock_type *type) + const struct lock_type *type) { rwl->rwl_owner = 0; rwl->rwl_name = name; @@ -205,7 +205,7 @@ _rw_init_flags_witness(struct rwlock *rwl, const char *name, int lo_flags, void _rw_init_flags(struct rwlock *rwl, const char *name, int flags, - struct lock_type *type) + const struct lock_type *type) { _rw_init_flags_witness(rwl, name, RWLOCK_LO_FLAGS(flags), type); } @@ -383,7 +383,7 @@ rw_assert_unlocked(struct rwlock *rwl) /* recursive rwlocks; */ void _rrw_init_flags(struct rrwlock *rrwl, char *name, int flags, - struct lock_type *type) + const struct lock_type *type) { memset(rrwl, 0, sizeof(struct rrwlock)); _rw_init_flags_witness(&rrwl->rrwl_lock, name, RRWLOCK_LO_FLAGS(flags), |