Kernel: Specify template paramenters where they cannot be deduced
This commit is contained in:
parent
7f029b2713
commit
b5aae34d86
|
@ -240,7 +240,7 @@ namespace Kernel
|
|||
return BAN::Error::from_errno(ENOMEM);
|
||||
auto region = BAN::UniqPtr<FramebufferMemoryRegion>::adopt(region_ptr);
|
||||
|
||||
TRY(region->initialize({ m_vaddr, m_vaddr + BAN::Math::div_round_up(m_size, PAGE_SIZE) * PAGE_SIZE }));
|
||||
TRY(region->initialize({ m_vaddr, m_vaddr + BAN::Math::div_round_up<uintptr_t>(m_size, PAGE_SIZE) * PAGE_SIZE }));
|
||||
|
||||
return BAN::UniqPtr<MemoryRegion>(BAN::move(region));
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace Kernel
|
|||
|
||||
for (uint64_t i = 0; i < sector_count;)
|
||||
{
|
||||
uint16_t count = BAN::Math::min(sector_count - i, m_dma_region->size() / m_block_size);
|
||||
uint16_t count = BAN::Math::min<uint64_t>(sector_count - i, m_dma_region->size() / m_block_size);
|
||||
|
||||
NVMe::SubmissionQueueEntry sqe {};
|
||||
sqe.opc = NVMe::OPC_IO_READ;
|
||||
|
@ -90,7 +90,7 @@ namespace Kernel
|
|||
|
||||
for (uint64_t i = 0; i < sector_count;)
|
||||
{
|
||||
uint16_t count = BAN::Math::min(sector_count - i, m_dma_region->size() / m_block_size);
|
||||
uint16_t count = BAN::Math::min<uint16_t>(sector_count - i, m_dma_region->size() / m_block_size);
|
||||
|
||||
memcpy(reinterpret_cast<void*>(m_dma_region->vaddr()), buffer.data() + i * m_block_size, count * m_block_size);
|
||||
|
||||
|
|
Loading…
Reference in New Issue