jlaitine commented on code in PR #8026: URL: https://github.com/apache/nuttx/pull/8026#discussion_r1065404972
########## fs/mmap/fs_rammap.h: ########## @@ -53,29 +35,28 @@ * - There are not access privileges. */ -struct fs_rammap_s -{ - struct fs_rammap_s *flink; /* Implements a singly linked list */ - FAR void *addr; /* Start of allocated memory */ - size_t length; /* Length of region */ - off_t offset; /* File offset */ -}; +#ifndef __FS_MMAP_FS_RAMMAP_H +#define __FS_MMAP_FS_RAMMAP_H -/* This structure defines all "mapped" files */ +/**************************************************************************** + * Included Files + ****************************************************************************/ -struct fs_allmaps_s -{ - mutex_t lock; /* Provides exclusive access the list */ - struct fs_rammap_s *head; /* List of mapped files */ -}; +#include <nuttx/config.h> + +#include <sys/types.h> +#include <nuttx/mutex.h> Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org