Skip to content

Commit

Permalink
mm: Correct the callsite of mm_mallinfo
Browse files Browse the repository at this point in the history
forget to update in apache#9488

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
  • Loading branch information
xiaoxiang781216 committed Jun 11, 2023
1 parent 2e8560a commit e65b894
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions arch/risc-v/src/esp32c3/esp32c3_rtcheap.c
Expand Up @@ -177,7 +177,7 @@ bool esp32c3_rtcheap_heapmember(void *mem)
*
****************************************************************************/

int esp32c3_rtcheap_mallinfo(struct mallinfo *info)
struct mallinfo esp32c3_rtcheap_mallinfo(void)
{
return mm_mallinfo(g_rtcheap, info);
return mm_mallinfo(g_rtcheap);
}
2 changes: 1 addition & 1 deletion arch/risc-v/src/esp32c3/esp32c3_rtcheap.h
Expand Up @@ -136,7 +136,7 @@ bool esp32c3_rtcheap_heapmember(void *mem);
*
****************************************************************************/

int esp32c3_rtcheap_mallinfo(struct mallinfo *info);
struct mallinfo esp32c3_rtcheap_mallinfo(void);

#undef EXTERN
#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion arch/xtensa/src/esp32/esp32_imm.c
Expand Up @@ -176,7 +176,7 @@ bool xtensa_imm_heapmember(void *mem)
*
****************************************************************************/

struct mallinfo xtensa_imm_mallinfo()
struct mallinfo xtensa_imm_mallinfo(void)
{
return mm_mallinfo(g_iheap);
}
Expand Down
4 changes: 2 additions & 2 deletions arch/xtensa/src/esp32s3/esp32s3_rtcheap.c
Expand Up @@ -188,7 +188,7 @@ bool esp32s3_rtcheap_heapmember(void *mem)
*
****************************************************************************/

int esp32s3_rtcheap_mallinfo(struct mallinfo *info)
struct mallinfo esp32s3_rtcheap_mallinfo(void)
{
return mm_mallinfo(g_rtcheap, info);
return mm_mallinfo(g_rtcheap);
}
2 changes: 1 addition & 1 deletion arch/xtensa/src/esp32s3/esp32s3_rtcheap.h
Expand Up @@ -139,7 +139,7 @@ bool esp32s3_rtcheap_heapmember(void *mem);
*
****************************************************************************/

int esp32s3_rtcheap_mallinfo(struct mallinfo *info);
struct mallinfo esp32s3_rtcheap_mallinfo(void);

#undef EXTERN
#ifdef __cplusplus
Expand Down

0 comments on commit e65b894

Please sign in to comment.