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

Change-Id: I69d05c90887cb2dd91361e941a6df5e92b3c157c
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
  • Loading branch information
xiaoxiang781216 committed Jun 13, 2023
1 parent 76617d6 commit 1b4e941
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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

0 comments on commit 1b4e941

Please sign in to comment.