From e0aaac970c9c295b9afe0d20096b7d0fe29ddba5 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sun, 23 Jan 2022 20:24:02 +0200 Subject: Kernel/Storage: Don't declare NVMeQueue constructor explicit Also, declare it as a private method. --- Kernel/Storage/NVMe/NVMeQueue.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Kernel/Storage') diff --git a/Kernel/Storage/NVMe/NVMeQueue.h b/Kernel/Storage/NVMe/NVMeQueue.h index 9140213c59..fdec1be7a4 100644 --- a/Kernel/Storage/NVMe/NVMeQueue.h +++ b/Kernel/Storage/NVMe/NVMeQueue.h @@ -31,7 +31,6 @@ class NVMeQueue : public IRQHandler public: static ErrorOr> try_create(u16 qid, u8 irq, u32 q_depth, OwnPtr cq_dma_region, NonnullRefPtrVector cq_dma_page, OwnPtr sq_dma_region, NonnullRefPtrVector sq_dma_page, Memory::TypedMapping db_regs); ErrorOr create(); - explicit NVMeQueue(u16 qid, u8 irq, u32 q_depth, OwnPtr cq_dma_region, NonnullRefPtrVector cq_dma_page, OwnPtr sq_dma_region, NonnullRefPtrVector sq_dma_page, Memory::TypedMapping db_regs); bool is_admin_queue() { return m_admin_queue; }; void submit_sqe(NVMeSubmission&); u16 submit_sync_sqe(NVMeSubmission&); @@ -41,6 +40,8 @@ public: void disable_interrupts() { disable_irq(); }; private: + NVMeQueue(u16 qid, u8 irq, u32 q_depth, OwnPtr cq_dma_region, NonnullRefPtrVector cq_dma_page, OwnPtr sq_dma_region, NonnullRefPtrVector sq_dma_page, Memory::TypedMapping db_regs); + virtual bool handle_irq(const RegisterState&) override; bool cqe_available(); -- cgit v1.2.3