From 5ce2751d6d9d1d160e532ce3a44274c395c82217 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 14 Jul 2021 17:12:49 +0200 Subject: [PATCH] soc/amd/common/block/cpu/mca: move function prototypes to local header Since those functions are implemented and used only inside the common MCA(X) code, there's no need to have them in the header file that gets included in the SoC-specific code. Change-Id: Ia84e149d67ac7d80de595379c73a6cf08730719d Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/coreboot/+/56309 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/soc/amd/common/block/cpu/mca/mca.c | 1 + src/soc/amd/common/block/cpu/mca/mca_common.c | 1 + src/soc/amd/common/block/cpu/mca/mca_common_defs.h | 2 ++ src/soc/amd/common/block/cpu/mca/mcax.c | 1 + src/soc/amd/common/block/include/amdblocks/mca.h | 2 -- 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/soc/amd/common/block/cpu/mca/mca.c b/src/soc/amd/common/block/cpu/mca/mca.c index c7d3e6f711..2d91894491 100644 --- a/src/soc/amd/common/block/cpu/mca/mca.c +++ b/src/soc/amd/common/block/cpu/mca/mca.c @@ -7,6 +7,7 @@ #include #include #include +#include "mca_common_defs.h" static void mca_print_error(unsigned int bank) { diff --git a/src/soc/amd/common/block/cpu/mca/mca_common.c b/src/soc/amd/common/block/cpu/mca/mca_common.c index 0a375089f2..f029966dc7 100644 --- a/src/soc/amd/common/block/cpu/mca/mca_common.c +++ b/src/soc/amd/common/block/cpu/mca/mca_common.c @@ -2,6 +2,7 @@ #include #include +#include "mca_common_defs.h" void check_mca(void) { diff --git a/src/soc/amd/common/block/cpu/mca/mca_common_defs.h b/src/soc/amd/common/block/cpu/mca/mca_common_defs.h index 41d73d8fe2..8142371664 100644 --- a/src/soc/amd/common/block/cpu/mca/mca_common_defs.h +++ b/src/soc/amd/common/block/cpu/mca/mca_common_defs.h @@ -6,6 +6,8 @@ #include #include +void mca_check_all_banks(void); +void build_bert_mca_error(struct mca_bank_status *mci); enum cper_x86_check_type error_to_chktype(struct mca_bank_status *mci); void fill_generic_section(cper_proc_generic_error_section_t *sec, struct mca_bank_status *mci); diff --git a/src/soc/amd/common/block/cpu/mca/mcax.c b/src/soc/amd/common/block/cpu/mca/mcax.c index cb01e1d6f6..fecac0a11f 100644 --- a/src/soc/amd/common/block/cpu/mca/mcax.c +++ b/src/soc/amd/common/block/cpu/mca/mcax.c @@ -6,6 +6,7 @@ #include #include #include +#include "mca_common_defs.h" static void mca_print_error(unsigned int bank) { diff --git a/src/soc/amd/common/block/include/amdblocks/mca.h b/src/soc/amd/common/block/include/amdblocks/mca.h index 70a83ab7f7..c84f23215a 100644 --- a/src/soc/amd/common/block/include/amdblocks/mca.h +++ b/src/soc/amd/common/block/include/amdblocks/mca.h @@ -12,8 +12,6 @@ struct mca_bank_status { }; void check_mca(void); -void mca_check_all_banks(void); -void build_bert_mca_error(struct mca_bank_status *mci); bool mca_has_expected_bank_count(void); bool mca_is_valid_bank(unsigned int bank); const char *mca_get_bank_name(unsigned int bank);