From 1dd7a11ec4853b39e81f861414c113c886ed7774 Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Wed, 28 Mar 2018 20:21:10 -0600 Subject: amd/common/block/pi: Make agesa_heap_base() static Convert agesa_heap_base() to static since it's unused outside of heapmanager.c. Change-Id: I3ee162985ca1ea36461ea413416d98451a700f8c Signed-off-by: Marshall Dawson Reviewed-on: https://review.coreboot.org/25457 Tested-by: build bot (Jenkins) Reviewed-by: Richard Spiegel --- src/soc/amd/common/block/include/amdblocks/agesawrapper.h | 2 -- src/soc/amd/common/block/pi/heapmanager.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/soc/amd') diff --git a/src/soc/amd/common/block/include/amdblocks/agesawrapper.h b/src/soc/amd/common/block/include/amdblocks/agesawrapper.h index 44ddba2018..986d6f8be6 100644 --- a/src/soc/amd/common/block/include/amdblocks/agesawrapper.h +++ b/src/soc/amd/common/block/include/amdblocks/agesawrapper.h @@ -63,6 +63,4 @@ void SetNbEnvParams(GNB_ENV_CONFIGURATION *params); void SetFchMidParams(FCH_INTERFACE *params); void SetNbMidParams(GNB_MID_CONFIGURATION *params); -void *agesa_heap_base(void); - #endif /* __AGESAWRAPPER_H__ */ diff --git a/src/soc/amd/common/block/pi/heapmanager.c b/src/soc/amd/common/block/pi/heapmanager.c index 79c8403f3e..a469a45f69 100644 --- a/src/soc/amd/common/block/pi/heapmanager.c +++ b/src/soc/amd/common/block/pi/heapmanager.c @@ -19,7 +19,7 @@ #include #include -void *agesa_heap_base(void) +static void *agesa_heap_base(void) { return cbmem_add(CBMEM_ID_RESUME_SCRATCH, BIOS_HEAP_SIZE); } -- cgit v1.2.3