kernel/vm: Drop team argument from vm_set_area_protection.

It's not needed and just creates confusion. Permissions checks
are done with the current team and the "kernel" parameter.
This commit is contained in:
Augustin Cavalier
2026-03-23 14:31:00 -04:00
parent c977e8a221
commit 935941e772
3 changed files with 21 additions and 20 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ status_t vm_delete_area(team_id teamID, area_id areaID, bool kernel);
status_t vm_create_vnode_cache(struct vnode *vnode, struct VMCache **_cache);
status_t vm_set_area_memory_type(area_id id, phys_addr_t physicalBase,
uint32 type);
status_t vm_set_area_protection(team_id team, area_id areaID,
status_t vm_set_area_protection(area_id areaID,
uint32 newProtection, bool kernel);
status_t vm_get_page_mapping(team_id team, addr_t vaddr, phys_addr_t *paddr);
bool vm_test_map_modification(struct vm_page *page);