diff options
Diffstat (limited to 'include/sys/rwlock.h')
-rw-r--r-- | include/sys/rwlock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sys/rwlock.h b/include/sys/rwlock.h index 6407e632d..83106846c 100644 --- a/include/sys/rwlock.h +++ b/include/sys/rwlock.h @@ -163,6 +163,8 @@ rw_tryenter(krwlock_t *rwlp, krw_t rw) rwlp->rw_owner = current; } break; + default: + BUG_ON(1); } return result; @@ -193,6 +195,8 @@ rw_enter(krwlock_t *rwlp, krw_t rw) BUG_ON(rwlp->rw_owner != NULL); rwlp->rw_owner = current; break; + default: + BUG_ON(1); } } |