From 0a885da43464ab47818f974942ffe53adf2a58e7 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Tue, 10 Jan 2023 14:39:38 +0400 Subject: [PATCH] syscall: Always add munmap into syscalls Munmap interface is always enabled just like mmap is Signed-off-by: Jukka Laitinen --- include/sys/syscall_lookup.h | 5 +---- syscall/syscall.csv | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/sys/syscall_lookup.h b/include/sys/syscall_lookup.h index 57645b2e99..fdfbb710a9 100644 --- a/include/sys/syscall_lookup.h +++ b/include/sys/syscall_lookup.h @@ -248,10 +248,7 @@ SYSCALL_LOOKUP(fchown, 3) SYSCALL_LOOKUP(utimens, 2) SYSCALL_LOOKUP(lutimens, 2) SYSCALL_LOOKUP(futimens, 2) - -#if defined(CONFIG_FS_RAMMAP) - SYSCALL_LOOKUP(munmap, 2) -#endif +SYSCALL_LOOKUP(munmap, 2) #if defined(CONFIG_PSEUDOFS_SOFTLINKS) SYSCALL_LOOKUP(symlink, 2) diff --git a/syscall/syscall.csv b/syscall/syscall.csv index f41e0650fd..ecf735fe89 100644 --- a/syscall/syscall.csv +++ b/syscall/syscall.csv @@ -68,7 +68,7 @@ "mq_timedreceive","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","ssize_t","mqd_t","FAR char *","size_t","FAR unsigned int *","FAR const struct timespec *" "mq_timedsend","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","mqd_t","FAR const char *","size_t","unsigned int","FAR const struct timespec *" "mq_unlink","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","FAR const char *" -"munmap","sys/mman.h","defined(CONFIG_FS_RAMMAP)","int","FAR void *","size_t" +"munmap","sys/mman.h","","int","FAR void *","size_t" "nx_mkfifo","nuttx/fs/fs.h","defined(CONFIG_PIPES) && CONFIG_DEV_FIFO_SIZE > 0","int","FAR const char *","mode_t","size_t" "nx_pthread_create","nuttx/pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","pthread_trampoline_t","FAR pthread_t *","FAR const pthread_attr_t *","pthread_startroutine_t","pthread_addr_t" "nx_pthread_exit","nuttx/pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","noreturn","pthread_addr_t"