git: c525db0c44b7 - main - vm_glue: Use the right type for size arguments to {user,kern}acc()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Oct 2026 13:07:19 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=c525db0c44b7db430b67fdd276f0a22c2f8e9f61
commit c525db0c44b7db430b67fdd276f0a22c2f8e9f61
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-10-27 16:47:36 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-10-28 13:06:58 +0000
vm_glue: Use the right type for size arguments to {user,kern}acc()
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
---
sys/vm/vm_extern.h | 4 ++--
sys/vm/vm_glue.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys/vm/vm_extern.h b/sys/vm/vm_extern.h
index 799b89ce2fc8..6c2c6c4821e7 100644
--- a/sys/vm/vm_extern.h
+++ b/sys/vm/vm_extern.h
@@ -83,8 +83,8 @@ void kmem_init(vm_offset_t, vm_offset_t);
void kmem_init_zero_region(void);
void kmeminit(void);
-bool kernacc(void *, int, int);
-bool useracc(void *, int, int);
+bool kernacc(void *, size_t, int);
+bool useracc(void *, size_t, int);
int vm_fault(vm_map_t map, vm_offset_t vaddr, vm_prot_t fault_type,
int fault_flags, vm_page_t *m_hold);
void vm_fault_copy_entry(vm_map_t, vm_map_t, vm_map_entry_t, vm_map_entry_t,
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
index 02e1c993529e..4c9b628d9dad 100644
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -125,7 +125,7 @@
* space.
*/
bool
-kernacc(void *addr, int len, int rw)
+kernacc(void *addr, size_t len, int rw)
{
boolean_t rv;
vm_offset_t saddr, eaddr;
@@ -157,7 +157,7 @@ kernacc(void *addr, int len, int rw)
* used in conjunction with this call.
*/
bool
-useracc(void *addr, int len, int rw)
+useracc(void *addr, size_t len, int rw)
{
boolean_t rv;
vm_prot_t prot;