mm/mempool: Fix the minor style issue

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-01-23 02:52:28 +08:00 committed by Petro Karashchenko
parent 7bd7daa659
commit 27afd0e5e3
2 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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;