diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2026-04-23 17:05:54 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2026-04-23 17:05:54 +0000 |
| commit | 573e6313bc3b3d7d8da4531fbfaa2763dbe209a7 (patch) | |
| tree | f8520070b04b75aeb8d2f0697842ae4b4671275b /sys/amd64 | |
| parent | d8863680744f2de6a97ca80d8eba3755f506203c (diff) | |
Diffstat (limited to 'sys/amd64')
| -rw-r--r-- | sys/amd64/include/sf_buf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/sf_buf.h b/sys/amd64/include/sf_buf.h index 4a64928ae141..e5e23d47ae91 100644 --- a/sys/amd64/include/sf_buf.h +++ b/sys/amd64/include/sf_buf.h @@ -36,11 +36,11 @@ * That pointer references the vm_page that is "mapped" by the sf_buf. The * actual mapping is provided by the direct virtual-to-physical mapping. */ -static inline vm_offset_t +static inline void * sf_buf_kva(struct sf_buf *sf) { - return (PHYS_TO_DMAP(VM_PAGE_TO_PHYS((vm_page_t)sf))); + return ((void *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS((vm_page_t)sf))); } static inline vm_page_t |
