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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user