These constants are defined for sibling modules, not the whole crate. No functional change.
Reviewed-by: Eliot Courtney <[email protected]> Signed-off-by: Alexandre Courbot <[email protected]> --- drivers/gpu/nova-core/gsp/cmdq.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/nova-core/gsp/cmdq.rs b/drivers/gpu/nova-core/gsp/cmdq.rs index e2b9a5383a66..2cdf8c1f7189 100644 --- a/drivers/gpu/nova-core/gsp/cmdq.rs +++ b/drivers/gpu/nova-core/gsp/cmdq.rs @@ -84,7 +84,7 @@ trait CommandElement { } /// Number of GSP pages making the [`Msgq`]. -pub(crate) const MSGQ_NUM_PAGES: u32 = 64; +pub(super) const MSGQ_NUM_PAGES: u32 = 64; // The queue pointers are wrapping `u32` counters, and the slot is // `counter % MSGQ_NUM_PAGES`. For slots to remain contiguous when a counter @@ -474,17 +474,17 @@ impl<'cmdq> Cmdq<'cmdq> { const POST_PTE_OFFSET: usize = core::mem::offset_of!(GspMem, cpuq); /// Offset of command queue ring buffer. - pub(crate) const CMDQ_OFFSET: usize = core::mem::offset_of!(GspMem, cpuq) + pub(super) const CMDQ_OFFSET: usize = core::mem::offset_of!(GspMem, cpuq) + core::mem::offset_of!(Msgq, msgq) - Self::POST_PTE_OFFSET; /// Offset of message queue ring buffer. - pub(crate) const STATQ_OFFSET: usize = core::mem::offset_of!(GspMem, gspq) + pub(super) const STATQ_OFFSET: usize = core::mem::offset_of!(GspMem, gspq) + core::mem::offset_of!(Msgq, msgq) - Self::POST_PTE_OFFSET; /// Number of page table entries for the GSP shared region. - pub(crate) const NUM_PTES: usize = size_of::<GspMem>() >> GSP_PAGE_SHIFT; + pub(super) const NUM_PTES: usize = size_of::<GspMem>() >> GSP_PAGE_SHIFT; /// Default timeout for receiving a message from the GSP. pub(super) const RECEIVE_TIMEOUT: Delta = Delta::from_secs(5); -- 2.56.1
