mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
Kernel: Make KCOVDevice::ioctl() return KResult
Recent ioctl() changes broke this, this commit fixes that and the build.
This commit is contained in:
parent
713b18b7a6
commit
e76af0fe16
4 changed files with 13 additions and 13 deletions
|
@ -15,7 +15,7 @@ KCOVInstance::KCOVInstance(ProcessID pid)
|
|||
state = UNUSED;
|
||||
}
|
||||
|
||||
int KCOVInstance::buffer_allocate(size_t buffer_size_in_entries)
|
||||
KResult KCOVInstance::buffer_allocate(size_t buffer_size_in_entries)
|
||||
{
|
||||
// first entry contains index of last PC
|
||||
this->m_buffer_size_in_entries = buffer_size_in_entries - 1;
|
||||
|
@ -40,7 +40,7 @@ int KCOVInstance::buffer_allocate(size_t buffer_size_in_entries)
|
|||
if (!this->has_buffer())
|
||||
return ENOMEM;
|
||||
|
||||
return 0;
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
void KCOVInstance::buffer_add_pc(u64 pc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue