From: claudio Date: Mon, 3 Jun 2024 14:34:19 +0000 (+0000) Subject: Remove lock_class_sched_lock from lock_classes since the corresponding X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=69bcbd5ece8badb73503c4613f00b87b690cc839;p=openbsd Remove lock_class_sched_lock from lock_classes since the corresponding entry in enum lock_class_index was removed in sys/_lock.h You get fireworks if the lock_classes array and enum lock_class_index get out of sync. --- diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index b8d208313a6..9f0919013b2 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_witness.c,v 1.52 2024/05/03 13:47:31 visa Exp $ */ +/* $OpenBSD: subr_witness.c,v 1.53 2024/06/03 14:34:19 claudio Exp $ */ /*- * Copyright (c) 2008 Isilon Systems, Inc. @@ -438,11 +438,6 @@ static struct lock_class lock_class_kernel_lock = { .lc_flags = LC_SLEEPLOCK | LC_RECURSABLE | LC_SLEEPABLE }; -static struct lock_class lock_class_sched_lock = { - .lc_name = "sched_lock", - .lc_flags = LC_SPINLOCK | LC_RECURSABLE -}; - static struct lock_class lock_class_mutex = { .lc_name = "mutex", .lc_flags = LC_SPINLOCK @@ -461,7 +456,6 @@ static struct lock_class lock_class_rrwlock = { static struct lock_class *lock_classes[] = { &lock_class_kernel_lock, - &lock_class_sched_lock, &lock_class_mutex, &lock_class_rwlock, &lock_class_rrwlock,