From 6e4ddf78bb8bd7c06fb5b5b3a43c65248a5a6778 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Tue, 3 Jan 2023 15:06:39 +0400 Subject: [PATCH] include/nuttx/mm/map.h: Change mm_map_entry "priv" into union type To be able to directly store also other than pointer types Signed-off-by: Jukka Laitinen --- include/nuttx/mm/map.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/nuttx/mm/map.h b/include/nuttx/mm/map.h index ffb4d18fbc..f845054e34 100644 --- a/include/nuttx/mm/map.h +++ b/include/nuttx/mm/map.h @@ -49,7 +49,11 @@ struct mm_map_entry_s off_t offset; int prot; int flags; - FAR void *priv; + union + { + FAR void *p; + int i; + } priv; /* Drivers which register mappings may also * implement the unmap function to undo anything done in mmap.