[PATCH 09/16] efi: types: add efi_intn_t/efi_uintn_t definition

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Dec 11 12:30:00 PST 2025


To make porting code from U-Boot easier, let's define these types
instead of having to change all incoming code to use size_t/ssize_t.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 include/efi/types.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/efi/types.h b/include/efi/types.h
index 0d6d6c8b05b9..f157f7ffe106 100644
--- a/include/efi/types.h
+++ b/include/efi/types.h
@@ -13,6 +13,8 @@
 #include <linux/uuid.h>
 
 typedef unsigned long efi_status_t;
+typedef size_t efi_uintn_t;
+typedef ssize_t efi_intn_t;
 typedef wchar_t efi_char16_t;		/* UNICODE character */
 typedef u64 efi_physical_addr_t;	/* always, even on 32-bit systems */
 
-- 
2.47.3




More information about the barebox mailing list