mm: vm: Always cast pointer offsets to uintptr_t

Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
2026-04-30 19:04:39 -04:00
parent e4f47af722
commit fd7889da13
+1 -1
View File
@@ -39,7 +39,7 @@ struct vm_map {
* and vice versa. * and vice versa.
*/ */
#define pma_to_vma(pma) \ #define pma_to_vma(pma) \
PTR_OFFSET((void *)pma, bpt_kload_base()) PTR_OFFSET((void *)((uintptr_t)pma), bpt_kload_base())
#define vma_to_pma(vma) \ #define vma_to_pma(vma) \
(uintptr_t)PTR_NOFFSET(vma, bpt_kload_base()) (uintptr_t)PTR_NOFFSET(vma, bpt_kload_base())