malloc: Use mcheck.h header instead of local declaration

Include <mcheck.h> and remove the local declaration of
mcheck_on_ramrelocation() to use the proper header file.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
Simon Glass
2025-12-02 09:18:57 +00:00
parent c17d68b0fb
commit f22cc09203
2 changed files with 4 additions and 1 deletions

View File

@@ -33,6 +33,7 @@
#include <log.h>
#include <malloc.h>
#include <mapmem.h>
#include <mcheck.h>
#include <os.h>
#include <post.h>
#include <relocate.h>
@@ -723,7 +724,6 @@ static int reloc_bloblist(void)
return 0;
}
void mcheck_on_ramrelocation(size_t offset);
static int setup_reloc(void)
{
if (!(gd->flags & GD_FLG_SKIP_RELOC)) {

View File

@@ -48,4 +48,7 @@ void mcheck_check_all(void);
*/
enum mcheck_status mprobe(void *__ptr);
/* Called during RAM relocation to reset the heap registry */
void mcheck_on_ramrelocation(size_t offset);
#endif