From df2bfb9a1ae5873283f644111ca4ef378fbd3c1a Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 27 Aug 2019 20:22:40 -0600 Subject: arch/x86/postcar: unexpose postcar_commit_mtrrs() symbol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit postcar_commit_mtrrs() isn't used outside the postcar_loader compilation unit. Make it static to reduce API surface area. Additionally the return value was not being utilized. Modify the return type to be void to align with the current usage. Change-Id: If07f34467941d00de731489867e485cfff80ea63 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/c/coreboot/+/35130 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh Reviewed-by: Paul Menzel Reviewed-by: Kyösti Mälkki --- src/arch/x86/include/arch/romstage.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/arch/x86/include') diff --git a/src/arch/x86/include/arch/romstage.h b/src/arch/x86/include/arch/romstage.h index 7816a7c0bc..2ac225875f 100644 --- a/src/arch/x86/include/arch/romstage.h +++ b/src/arch/x86/include/arch/romstage.h @@ -57,12 +57,6 @@ void postcar_frame_add_romcache(struct postcar_frame *pcf, int type); */ void postcar_frame_common_mtrrs(struct postcar_frame *pcf); -/* - * Push used MTRR and Max MTRRs on to the stack - * and return pointer to stack top. - */ -void *postcar_commit_mtrrs(struct postcar_frame *pcf); - /* * fill_postcar_frame() is called after raminit completes and right before * calling run_postcar_phase(). Implementation should call postcar_frame_add_mtrr() -- cgit v1.2.3