From 4314c25cf2a60f7692821b10a6e759d24ae1a1b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Thu, 18 Aug 2022 21:46:28 +0200 Subject: Kernel: Require lock rank for Spinlock construction All users which relied on the default constructor use a None lock rank for now. This will make it easier to in the future remove LockRank and actually annotate the ranks by searching for None. --- Kernel/Bus/VirtIO/Queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Bus/VirtIO/Queue.h') diff --git a/Kernel/Bus/VirtIO/Queue.h b/Kernel/Bus/VirtIO/Queue.h index 12a5940e15..6563779866 100644 --- a/Kernel/Bus/VirtIO/Queue.h +++ b/Kernel/Bus/VirtIO/Queue.h @@ -96,7 +96,7 @@ private: QueueDriver* m_driver { nullptr }; QueueDevice* m_device { nullptr }; NonnullOwnPtr m_queue_region; - Spinlock m_lock; + Spinlock m_lock { LockRank::None }; friend class QueueChain; }; -- cgit v1.2.3