diff options
author | 2018-06-08 15:38:52 +0000 | |
---|---|---|
committer | 2018-06-08 15:38:52 +0000 | |
commit | 9845d791983044e23a2356b6adb5c89eb6b18bb7 (patch) | |
tree | 33a38655e48b49d555f3125f88b9451ef8758cc6 | |
parent | Constipate all the struct lock_type's so they go into .rodata (diff) | |
download | wireguard-openbsd-9845d791983044e23a2356b6adb5c89eb6b18bb7.tar.xz wireguard-openbsd-9845d791983044e23a2356b6adb5c89eb6b18bb7.zip |
Constipate all the struct lock_type's so they go into .rodata
ok visa@
-rw-r--r-- | sys/arch/hppa/include/mplock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hppa/include/mplock.h b/sys/arch/hppa/include/mplock.h index db93266525a..158c1a37df9 100644 --- a/sys/arch/hppa/include/mplock.h +++ b/sys/arch/hppa/include/mplock.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mplock.h,v 1.3 2017/12/04 09:51:03 mpi Exp $ */ +/* $OpenBSD: mplock.h,v 1.4 2018/06/08 15:38:52 guenther Exp $ */ /* * Copyright (c) 2004 Niklas Hallqvist. All rights reserved. @@ -56,10 +56,10 @@ int __mp_lock_held(struct __mp_lock *, struct cpu_info *); #ifdef WITNESS -void _mp_lock_init(struct __mp_lock *, struct lock_type *); +void _mp_lock_init(struct __mp_lock *, const struct lock_type *); #define __mp_lock_init(mpl) do { \ - static struct lock_type __lock_type = { .lt_name = #mpl }; \ + static const struct lock_type __lock_type = { .lt_name = #mpl };\ _mp_lock_init((mpl), &__lock_type); \ } while (0) |