summaryrefslogtreecommitdiff
path: root/Kernel/Storage
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-02-19 23:15:10 +0100
committerAndreas Kling <kling@serenityos.org>2023-02-21 00:54:04 +0100
commitb5cef78e356551af06381afeb061b5a409f6a8ff (patch)
treeb651c70cfb8cbf2e358a60f05f7f0a00fa272423 /Kernel/Storage
parent68c97812993c77f131b1fe614c853c1aea395bf2 (diff)
downloadserenity-b5cef78e356551af06381afeb061b5a409f6a8ff.zip
Kernel: Make NVMeQueue const-correct internally
Store the DMA R/W page PhysicalPage object as an NNRP<T const>.
Diffstat (limited to 'Kernel/Storage')
-rw-r--r--Kernel/Storage/NVMe/NVMeQueue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Storage/NVMe/NVMeQueue.h b/Kernel/Storage/NVMe/NVMeQueue.h
index 2c1afddf53..8b930ac618 100644
--- a/Kernel/Storage/NVMe/NVMeQueue.h
+++ b/Kernel/Storage/NVMe/NVMeQueue.h
@@ -77,6 +77,6 @@ private:
NonnullRefPtrVector<Memory::PhysicalPage> m_sq_dma_page;
Span<NVMeCompletion> m_cqe_array;
Memory::TypedMapping<DoorbellRegister volatile> m_db_regs;
- NonnullRefPtr<Memory::PhysicalPage> m_rw_dma_page;
+ NonnullRefPtr<Memory::PhysicalPage const> m_rw_dma_page;
};
}