1
0
Fork 0
forked from suyu/suyu

Merge pull request #3777 from lioncash/warn

page_table: Remove unused captures
This commit is contained in:
Rodrigo Locatti 2020-04-23 21:47:54 -03:00 committed by GitHub
commit f24c67877b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -854,7 +854,7 @@ ResultCode PageTable::LockForDeviceAddressSpace(VAddr addr, std::size_t size) {
}
block_manager->UpdateLock(addr, size / PageSize,
[perm](MemoryBlockManager::iterator block, MemoryPermission perm) {
[](MemoryBlockManager::iterator block, MemoryPermission perm) {
block->ShareToDevice(perm);
},
perm);
@ -876,7 +876,7 @@ ResultCode PageTable::UnlockForDeviceAddressSpace(VAddr addr, std::size_t size)
}
block_manager->UpdateLock(addr, size / PageSize,
[perm](MemoryBlockManager::iterator block, MemoryPermission perm) {
[](MemoryBlockManager::iterator block, MemoryPermission perm) {
block->UnshareToDevice(perm);
},
perm);