From 27afd0e5e3cdc71e1196aea96d99a40a564f18e0 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 23 Jan 2023 02:52:28 +0800 Subject: [PATCH] mm/mempool: Fix the minor style issue Signed-off-by: Xiang Xiao --- include/nuttx/mm/mempool.h | 14 +++++++------- mm/mempool/mempool_multiple.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/nuttx/mm/mempool.h b/include/nuttx/mm/mempool.h index 8e4236cedc..f2344ee682 100644 --- a/include/nuttx/mm/mempool.h +++ b/include/nuttx/mm/mempool.h @@ -44,10 +44,10 @@ typedef CODE FAR void *(*mempool_alloc_t)(FAR struct mempool_s *pool, typedef CODE void (*mempool_free_t)(FAR struct mempool_s *pool, FAR void *addr); -typedef CODE FAR void *(*mempool_multiple_alloc_t)(FAR void *args, +typedef CODE FAR void *(*mempool_multiple_alloc_t)(FAR void *arg, size_t alignment, size_t size); -typedef CODE void (*mempool_multiple_free_t)(FAR void *args, FAR void *addr); +typedef CODE void (*mempool_multiple_free_t)(FAR void *arg, FAR void *addr); #if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL) struct mempool_procfs_entry_s @@ -90,12 +90,12 @@ struct mempool_s #if CONFIG_MM_BACKTRACE >= 0 struct list_node alist; /* The used block list in mempool */ #else - size_t nalloc; /* The number of used block in mempool */ + size_t nalloc; /* The number of used block in mempool */ #endif - spinlock_t lock; /* The protect lock to mempool */ - sem_t waitsem; /* The semaphore of waiter get free block */ - size_t nexpend; /* The number of expend memory for mempool */ - size_t totalsize; /* Total size of the expend for mempoll */ + spinlock_t lock; /* The protect lock to mempool */ + sem_t waitsem; /* The semaphore of waiter get free block */ + size_t nexpend; /* The number of expend memory for mempool */ + size_t totalsize; /* Total size of the expend for mempoll */ #if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL) struct mempool_procfs_entry_s procfs; /* The entry of procfs */ #endif diff --git a/mm/mempool/mempool_multiple.c b/mm/mempool/mempool_multiple.c index afa6a5e979..119581c969 100644 --- a/mm/mempool/mempool_multiple.c +++ b/mm/mempool/mempool_multiple.c @@ -50,7 +50,7 @@ struct mpool_dict_s struct mempool_multiple_s { - FAR struct mempool_s * pools; /* The memory pool array */ + FAR struct mempool_s *pools; /* The memory pool array */ size_t npools; /* The number of memory pool array elements */ size_t expandsize; /* The number not will use it to init erery * pool expandsize @@ -86,7 +86,7 @@ struct mempool_multiple_s * Private Functions ****************************************************************************/ -static inline struct mempool_s * +static inline FAR struct mempool_s * mempool_multiple_find(FAR struct mempool_multiple_s *mpool, size_t size) { size_t right;