From 6db295481b879a684f4b09cf7ee00b9de24fb4ee Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Fri, 13 Jan 2023 15:24:56 +0400 Subject: [PATCH] fs/mmap/fs_rammap.c: Remove void * arithmetic Signed-off-by: Jukka Laitinen --- fs/mmap/fs_rammap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/mmap/fs_rammap.c b/fs/mmap/fs_rammap.c index 16ea9376598..222f9f40c67 100644 --- a/fs/mmap/fs_rammap.c +++ b/fs/mmap/fs_rammap.c @@ -62,7 +62,7 @@ static int unmap_rammap(FAR struct task_group_s *group, * simulate the unmapping. */ - offset = start - entry->vaddr; + offset = (uintptr_t)start - (uintptr_t)entry->vaddr; if (offset + length < entry->length) { ferr("ERROR: Cannot umap without unmapping to the end\n");