From 71174e19d8c93dc99221c5fe32db6a78c6a7ffb3 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 20 Apr 2025 13:39:32 +0100 Subject: [uaccess] Add explicit casts to and from userptr_t where needed Allow for the possibility of userptr_t becoming a pointer type by adding explicit casts where necessary. Signed-off-by: Michael Brown --- src/interface/efi/efi_umalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interface/efi') diff --git a/src/interface/efi/efi_umalloc.c b/src/interface/efi/efi_umalloc.c index e3f1dacc2..175ae367e 100644 --- a/src/interface/efi/efi_umalloc.c +++ b/src/interface/efi/efi_umalloc.c @@ -36,7 +36,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); */ /** Equivalent of NOWHERE for user pointers */ -#define UNOWHERE ( ~UNULL ) +#define UNOWHERE ( ( userptr_t ) ~( ( intptr_t ) 0 ) ) /** * Reallocate external memory -- cgit v1.2.3-55-g7522